Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cannot use a leading .. to exit above the top directoryCannot use a leading .. to exit above the top directory
Previous
 
Next
New Post
4/6/2008 7:18 AM
 

I'm developing a custom module that has been working great for the last year and a half. I wanted to share it with others but didn't want to give away the source code to just anybody so I went through the steps to create a compiled module. The compiled module installs OK and runs OK up to a point when I get the above error message. It obviously has to do with a url rewrite as this error message points out:

AssemblyVersion: 04.05.00
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /DotNetNuke45/Default.aspx?tabid=55&error=Cannot+use+a+leading+..+to+exit+above+the+top+directory.&content=0
AbsoluteURL: /DotNetNuke45/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke45/
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: eb71ed7a-8bfb-4cdc-bfb6-33d738edd73a
InnerException: Unhandled Error:
FileName: D:\DotNetNuke\DotNetNuke45\Library\HttpModules\UrlRewrite\UrlRewriteModule.vb
FileLineNumber: 185
FileColumnNumber: 13
Method: DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.Web.HttpException: Not Foundat DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) in D:\DotNetNuke\DotNetNuke45\Library\HttpModules\UrlRewrite\UrlRewriteModule.vb:line 185at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)--- End of inner exception stack trace ---

I get this message on a page containing a datagrid with info from the database plus an edit link. The error message only shows when there is data in the datgrid - when the grid is empty it shows just fine. I've been through the code with Visual Studio 2005 and can't seem to find the cause but it shows up when executing the code in PortalModuleBase.vb at line 758 and statement "MyBase.Render(output)".

When I turn off friendly urls the code executes beautifully but I don't want a module that will only work with friendly urls turned off.

I'm hoping somebody has had a similar problem and come up with a solution. To reiterate - this error only shows when executing code from the compiled module and friendly urls turned on. When using the source (with or without friendly urls) and with friendly urls turned off with the compiled code the module executes normally.

Any ideas?

Mike


Kist Enterprises
www.kistenterprises.com
 
New Post
4/10/2008 4:43 PM
 

Hi Mike,

I don't have a copy of the 4.5 UrlRewriteModule, so my help will have to remain general in nature. 

You're having a problem on line 185 of UrlRewriteModule.vb.  Step one is to load up this file and see what's going on on that line.  It might provide you enough context to figure out what generated url is causing the problem.

If that doesn't give you enough context, I suggest adding debugging code to help diagnose the problem.  Recompile UrlRewriteModule, deploy the new version, and see what you get.

Debugging code will most likely add a HOST_


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cannot use a leading .. to exit above the top directoryCannot use a leading .. to exit above the top directory


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out