Developer forum

Forum » Development » Error in Dynamicweb.dll

Error in Dynamicweb.dll


Reply

It seems that since v. 240 you have add'd the possible to request a page without .aspx extention which is great. However there's an bug there. If you reuqest an page without .aspx with eigther ø or æ or å , it will not add .aspx in your rewritepath code.

I temporarely fixed this by adding the following code in global.asax.cs under Application_BeginRequest

 

 strURLLowerede = Server.UrlDecode(Request.RawUrl.ToLower());     

     

if (strURLLowerede.Contains("ø") || strURLLowerede.Contains("æ") || strURLLowerede.Contains("å"))
{
if(!strURL.EndsWith(".aspx"))
Context.RewritePath(strURL + ".aspx");
}

 


Replies

 
Reply

It appears this also includes special signs as ´ over ó for instance etc.

 
Nicolai Høeg Pedersen
Reply
jed@dkis.dk wrote:

It seems that since v. 240 you have add'd the possible to request a page without .aspx extention which is great. However there's an bug there. If you reuqest an page without .aspx with eigther ø or æ or å , it will not add .aspx in your rewritepath code.

I temporarely fixed this by adding the following code in global.asax.cs under Application_BeginRequest

 

 strURLLowerede = Server.UrlDecode(Request.RawUrl.ToLower());     

     

if (strURLLowerede.Contains("ø") || strURLLowerede.Contains("æ") || strURLLowerede.Contains("å"))
{
if(!strURL.EndsWith(".aspx"))
Context.RewritePath(strURL + ".aspx");
}

 


 

Hi Jais

 

Its correct that we are working on a solution without .aspx - but it has not been officially released since we have issues before it will work.

 

Your solution is a "dangerous" hack since it will not handle querystring parameters.

 
Reply

Hey Nicolai, thanks for your respond, yes i'm aware that the current solution does not take Querystrings into consideration, however i made something similar with some customSolutions prio 240 , with some small adjustment should work :)

 

However it's great that you are aware of the problem and working on it - thumbs up :).

If possible can you give us or me a heads up before it will be implanted in a service release, so i dont get a chock when my code suddenly doesent work anymore :)

//Thanks

 
Nicolai Høeg Pedersen
Reply
jed@dkis.dk wrote:

Hey Nicolai, thanks for your respond, yes i'm aware that the current solution does not take Querystrings into consideration, however i made something similar with some customSolutions prio 240 , with some small adjustment should work :)

 

However it's great that you are aware of the problem and working on it - thumbs up :).

If possible can you give us or me a heads up before it will be implanted in a service release, so i dont get a chock when my code suddenly doesent work anymore :)

//Thanks


 

Hi Jais

 

It should be released somewhere in september... But keep an eye on release documents from us - it will be there.

 

You must be logged in to post in the forum