Register   Login
     
  Latest Posts  
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 12/03/2008 11:01 PM
RE: Remove CAPTCHA when logged in?
by ba on 12/03/2008 10:22 PM
Admin and Host Users and Captcha
by ba on 12/03/2008 10:14 PM
RE: Notification on comment and multiple authors
by ba on 12/03/2008 8:54 PM
RE: How do I - templates
by cptkoi on 12/03/2008 8:19 PM
Notification on comment and multiple authors
by ba on 12/03/2008 8:14 PM
Private Messages 1.07 - Potential Display Name Bug
by blob150 on 12/03/2008 5:16 PM
Removal of "Actions" section...
by jlatulippe on 12/03/2008 5:08 PM
RE: MultiSelect Search on Multiple Checkbox
by smcculloch on 12/03/2008 3:46 PM
RE: Property Agent Latest Filter
by erikvb on 12/03/2008 3:45 PM
  Forums  
Subject: Bug? URL's Port lost.
Prev Next
You are not authorized to post a reply.

Author Messages
Victor SergienkoUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

8/27/2007 7:44 AM  

I'm runing DNN in local development server from Visual Studio.

It runs fine until I instal Friendly URL module: debugger's IE gets redirected from http://localhost:50271/dotnetnuke to http://localhost/dotnetnuke.

It seems to me that the module eats the port number, am I right?

It works fine with DNN's module.

Thanks.

Victor SergienkoUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

8/28/2007 1:32 AM  
I believe I found the cause, though not sure the fix idea is correct.
It's in UrlRewriteModule.vb, lines 312-332, strURL is replaced with objPortalAliasInfo.HTTPAlias piece. objPortalAliasInfo.HTTPAlias does NOT have port info (objPortalAliasController.GetPortalAliasArrayByPortalID bug?), while PortalAlias is correct here and has the port.
So I use PortalAlias instead of objPortalAliasInfo.HTTPAlias, is this correct?
Victor SergienkoUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

8/28/2007 1:36 AM  
Like this:

If arrPortalAliases.Count > 0 Then
Dim strURL As String = Request.Url.AbsolutePath
Dim RealPortalAlias As String = PortalAlias ' objPortalAliasInfo.HTTPAlias
If RealPortalAlias Is Nothing Or RealPortalAlias = "" Then
RealPortalAlias = objPortalAliasInfo.HTTPAlias
End If
'Get the first Alias
objPortalAliasInfo = CType(arrPortalAliases(0), PortalAliasInfo)
If app.Request.Url.AbsoluteUri.ToLower.StartsWith("https://") Then
strURL = "https://" & RealPortalAlias.Replace("*.", "")
Else
strURL = "http://" & RealPortalAlias.Replace("*.", "")
End If
Victor SergienkoUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

8/28/2007 2:09 AM  
...and it still doesn't work for me: I get several requests redirected to http://localhost:50271/DotNetNuke/
and then IE says "Cannot display a web page".
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


8/28/2007 5:29 AM  
Yep, I'm aware of this issue, i'm upgrading this for DNN 4.6 at the moment, it will be fixed as part of that.

Scott McCulloch
Site Administrator
Victor SergienkoUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

8/29/2007 11:13 AM  
Maybe another thing to look at.
I managed to crash it after session timeout, clicking on some menu URL.

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +215
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +98
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3394
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > Bug? URL's Port lost.



ActiveForums 3.7