|
Home > Archive > Commerce Server Solution Sites > February 2004 > secure link issue
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Sabari 2004-02-07, 9:39 am |
| Hello,
I applied a trial SSL certificate in out staging environment. However,
the CommerceApplication.BuildUrl doesnt seem to generate the https
link for an image.
These are the steps I did.
1) Installed trial SSL (from verisign) on the IIS webserver.
2) Modified CommerceServer Manager -> Commerce Sites -> Retail2002 ->
Applications -> HOST/Retail2002 -> Properties. Checked 'Enable HTTPs'
and reset IIS.
There is a link for the Login page in the home page whose URL is
generated as :
hli_topbarsignin.NavigateUrl =
CommerceApplication.BuildUrl("Login.aspx", returnURL, true)
Since the third param is set as TRUE, I assume the url generated
should be https://<url> but it is still showing http://<url>.
Any idea what should be checked to resolve this ?
The staging env is as follows :
2 Webservers load balanced using NLB.
1 SQL server.
OS = Windows 2003
Commerce Server 2002 + SP2
I also checked the values of f_EnableHTTPS property in the MSCS Admin
database and it is set to 1.
Thanks
Sabari.
| |
| Sabari 2004-02-07, 9:39 am |
| ok, i narrowed down the problem to a single line in Application.cs.
There is a method called IsHttpsEnabled and there is statement
~~~~~~~~~~~~~~~~~~
CommerceApplication.HttpsEnabled = (int)
CommerceApplication.ApplicationResources("f_EnableHTTPS");
~~~~~~~~~~~~~~~~~
It is this line which is failing. The exception message I get is :
System.NullReferenceException: Object reference not set to an instance
of an object. at Microsoft.CommerceServer.Site.Components.CommerceApplication.get_IsHttpsEnabled()
I've no clue how CommerceApplication.ApplicationResources() works. I
dont think the source code for that is available but if I'm wrong,
please correct me. I verified the MSCS_Admin tables and the value of
f_EnableHTTPS is 1 in both ResourceProps and ExtendedProps table.
Does anyone know why this function is failing ? Any pointers/help is
really appreciated.
Thanks
Sabari.
cpsabari@netscape.net (Sabari) wrote in message news:<b2a23a7.0401201131.39514ff@posting.google.com>...
> Hello,
>
> I applied a trial SSL certificate in out staging environment. However,
> the CommerceApplication.BuildUrl doesnt seem to generate the https
> link for an image.
>
> These are the steps I did.
>
> 1) Installed trial SSL (from verisign) on the IIS webserver.
> 2) Modified CommerceServer Manager -> Commerce Sites -> Retail2002 ->
> Applications -> HOST/Retail2002 -> Properties. Checked 'Enable HTTPs'
> and reset IIS.
>
> There is a link for the Login page in the home page whose URL is
> generated as :
>
> hli_topbarsignin.NavigateUrl =
> CommerceApplication.BuildUrl("Login.aspx", returnURL, true)
>
> Since the third param is set as TRUE, I assume the url generated
> should be https://<url> but it is still showing http://<url>.
>
> Any idea what should be checked to resolve this ?
>
> The staging env is as follows :
> 2 Webservers load balanced using NLB.
> 1 SQL server.
> OS = Windows 2003
> Commerce Server 2002 + SP2
>
> I also checked the values of f_EnableHTTPS property in the MSCS Admin
> database and it is set to 1.
>
> Thanks
> Sabari.
|
|
|
|
|