Hello ,
I have developed a website in asp.net 2.0 and used Formrewriter.cs for URL rewriting. It works fine in IIS 6 but it is not working in IIS 7.
It gives following error
Server Error in Application "DEFAULT WEB SITE"
Internet Information Services 7.5
Error Summary
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information
| IIS Web Core |
| MapRequestHandler |
| StaticFile |
| 0x80070002 |
| http://localhost:80/Convinience Shopping/M__23 |
| E:\IN_OUT\InOutProj\Convinience Shopping\M__23 |
| Anonymous |
| Anonymous |
Most likely causes:
- The directory or file specified does not exist on the Web server.
- The URL contains a typographical error.
- A custom filter or module, such as URLScan, restricts access to the file.
Things you can try:
- Create the content on the Web server.
- Review the browser URL.
- Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
Links and More InformationThis error means that the file or directory does not exist on the server. Create the file or directory and try the request again. View more information »
Suthish NairPosted Nov 6, 2011, 12:54 PM
Sonali, try these blogs..
http://improve.dk/archive/2006/12/11/making-url-rewriting-on-iis7-work-like-iis6.aspx
http://improve.dk/archive/2009/10/14/how-to-do-url-rewriting-on-iis-7-properly.aspx
http://blogs.iis.net/ruslany/archive/2009/04/08/10-url-rewriting-tips-and-tricks.aspx
Sonali KhadePosted Nov 5, 2011, 5:54 AM
My website is developed in ASP.net 2.0
I am working on windows 7 ultimate OS
Sonali KhadePosted Nov 5, 2011, 5:42 AM
My URL rewriting code is working properly in IIS 6 but i want to know the setting of IIS 7 to implement the same.
I have used Formrewriter.cs method for URL rewriting.