Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server SDK > FIX: code fix t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 256 of 274
Post > Topic >>

FIX: code fix to get StarterSite working on something other than

by Philippe Lavoie <philippe.lavoie@[EMAIL PROTECTED] > Nov 17, 2006 at 02:39 PM

Hi

If like me you want to use the StarterSite on something other than ****t 
80, you will have to fix the App_Code\SiteContext.cs file.

Replace line 248, from

	    builder.****t = -1; // Removes the ****t

to
             if(secure)
             {
                 builder.****t = HttpContext.Current.Request.Url.****t == 
443 ? -1 : HttpContext.Current.Request.Url.****t;
             }
             else
             {
                 builder.****t = HttpContext.Current.Request.Url.****t == 
80 ? -1 : HttpContext.Current.Request.Url.****t;
             }
             return builder.Uri;

Cheers

Phil
 




 1 Posts in Topic:
FIX: code fix to get StarterSite working on something other than
Philippe Lavoie <phili  2006-11-17 14:39:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:31:35 CST 2008.