lekha126 / stacked

Automatically exported from code.google.com/p/stacked
0 stars 0 forks source link

Url Rewrite failing #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Any link that activates URL rewrite, ie .user and .quiz pages
2. Gives 404 Page not found error
3.

What is the expected output? What do you see instead?
It is supposed to rewrite to the correct page. for example ~/a.quiz should 
go to item.aspx?id=a but it is not.

What version of the product are you using? On what operating system?
latest revision with SQL DB patch provided from other issue

Please provide any additional information below.

Original issue reported on code.google.com by affan05@gmail.com on 21 Feb 2009 at 12:07

GoogleCodeExporter commented 8 years ago
You need to configure IIS to make all requests hit ASP.NET process instead of 
only 
some of them ("*.aspx", etc).

Open your IIS Manager => 
stacked website properties => 
configuration => 
double click ".asax" extension => 
select Executable path, copy it to clipboard (should be sth like 
"c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll") =>
Cancel =>
Under "Wildcat aplication maps, click INSERT =>
Paste path to "Executable:" textbox =>
Uncheck "Verify that file exists" =>
OK => OK => OK =>

Should work now.

Original comment by e...@devel4.net on 9 Mar 2009 at 10:46

GoogleCodeExporter commented 8 years ago
The solution in Comment 1 didn't work for me in IIS7. I would still get a 404 
and the 
error would say that the StaticFile handler was still being used. 

I was able to resolve the issue by following the steps described on this page 
http://www.improve.dk/blog/2006/12/11/making-url-rewriting-on-iis7-work-like-iis
6

Original comment by sanjazu...@gmail.com on 29 Jul 2009 at 2:20

GoogleCodeExporter commented 8 years ago
I managed to fix the issue by adding this to the config

<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>

    <modules runAllManagedModulesForAllRequests="true">
            <add name="UrlRewriter" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
        </modules>
   </system.webServer>

Original comment by ndnz...@gmail.com on 4 Aug 2015 at 12:04