Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > secure link issue
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 3rd August 10:03
cpsabari
External User
 
Posts: 1
Default secure link issue



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.
  Reply With Quote


  sponsored links


2 3rd August 10:03
scotte-隁q&zz
External User
 
Posts: 1
Default secure link issue



This may seem obvious, but maybe it's worth mentioning. Did you either try browsing away from that page and coming back, or closing that browser session all together? If you'd just made that change, I've seen IE do things like keep the page cached within the same browser session, or if it's a postback, then the value for that href won't get reset. Otherwise, it sounds like you've done everything correctly to me.

- Scott

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.
  Reply With Quote
3 3rd August 10:03
cpsabari
External User
 
Posts: 1
Default secure link issue


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_Enable HTTPS");
~~~~~~~~~~~~~~~~~

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.CommerceA pplication.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.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666