secure link issue
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server Setup > secure link issue




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    secure link issue  
Sabari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-07-04 02:37 PM

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.





[ Post a follow-up to this message ]



    Re: secure link issue  
Sabari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-07-04 02:37 PM

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.CommerceApplicatio
n.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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:16 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register