Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Friendly Url Pr...Friendly Url Pr...The requested Url does not return any valid contentThe requested Url does not return any valid content
Previous
 
Next
New Post
7/10/2010 9:40 PM
 

We are writing some custom ASP.NET code that will reside inside a DNN site but will not be "integrated" with DNN.

We have a test page that we created located at /aspx_code/hello1.aspx. When we attempt to browse to this page we get:

404 Url Not Found
The requested Url (http://dev.advantage.host.comstar.biz/aspx_code/hello1.aspx) does not return any valid content.

This code works on another DNN site, but one that is NOT using the iFinity Friendly URL provider. How can we reference custom pages like this (especially via DNN Iframe modules) without getting errors?

Thanks!

 
New Post
7/11/2010 2:31 AM
 

If you have pages within a dnn site but not to be rewritten, then the module should detect that they are actual pages and just process the request.

If this process isn't working, and you don't want DNN to do anything with these pages, construct a regex pattern to exclude them and append it to the end of the 'ignoreRegex' field.

Ie, if they are all in your aspx_code path, then add |aspx_code to the end of the ignoreRegex attribute, and that will ignore all requests for that directory.


Chief Software Hacker
 
New Post
7/13/2010 5:49 PM
 

I'm assuming that you actually meant that I should add the attribute ignoreFileTypesRegex??

I added ignoreFileTypesRegex="|/aspx_code/" to the iFinity.FriendlyUrl PROVIDER section in my Web.Config file and that seemed to cure my problem.

If I'm right I just want to make sure that this thread is not misleading to the next person that reads this. ;-)

Greg

 
New Post
7/14/2010 2:05 AM
 

That's correct, but I thought that you would have had the full value in the attribute (which doesn't matter if you don't, because it picks up the default).

I would actually recommend using this value:

(?<!linkclick\.aspx.+)(?:\.pdf$|\.gif$|\.png($|\?)|\.css$|\.js($|\?)|\.jpg$|\.html$|\.htm$|\.axd($|\?)|\.swf$|\.flv$|\.ico$|\.xml($|\?)|\.txt$|/aspx_code/)

Which is the default value plus the modified version.


Chief Software Hacker
 
New Post
7/27/2010 10:20 PM
 

It's BAAAAAAAACK.

In my config file I have:

<add name="iFinity.FriendlyUrl" type="iFinity.DNN.Modules.FriendlyUrl.DNNFriendlyUrlProvider, iFinity.FriendlyUrlProvider" includePageName="true" regexMatch="[^\+a-zA-Z0-9 _-]" urlFormat="HumanFriendly" redirectUnfriendly="true" doNotRedirect="SearchResults;" checkForDupUrls="true" forceLowerCase="false" redirectWrongCase="false" replaceSpaceWith="_" logCacheMessages="false" ignoreFileTypesRegex="|/aspx_code/" >

If I REMOVE ignoreFileTypesRegex="|/aspx_code/, then the site comes up. With it in, it blows with "an error has occurred" (repeated twice). The site was working fine until last week. The only thing that has changed was the installation of the monthly Microsoft updates.

I upgraded to DNN 5.4.4 today in case it was some bug in DNN that had been corrected. No luck. Same error.


 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Friendly Url Pr...Friendly Url Pr...The requested Url does not return any valid contentThe requested Url does not return any valid content


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.