Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have done url masking and in that, I have ViewPage with parameter i.e, Viewpage-paramerter.aspx
and I rewrite that url as Viewpage.aspx?parameter, using Intelligencia.UrlRewriter.dll .
For that I have done changes in web.config file as follows:

C#
<blockquote class="quote"><div class="op">Quote:</div>
<rewriter>
 <rewrite url="View-(.+).aspx" to="~/View.aspx?MyTitleId1=$1"/>
 </rewriter> 
</blockquote>


And this web application is working fine on my local machine but after uploading on IIS 8 isis giving error as follos:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed,
had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled
correctly.
Posted
Updated 6-Apr-15 23:24pm
v2
Comments
deepankarbhatnagar 7-Apr-15 4:58am    
At local machine you have to rewrite the path with '.' instead of '/'
rupali4 7-Apr-15 5:25am    
It is working properly on local machine but giving error in IIS8
Suvendu Shekhar Giri 7-Apr-15 5:38am    
What do you mean by saying Local Machine and IIS8? Are you talking about IIS in server?
rupali4 7-Apr-15 5:39am    
IIS means IIS on server
rupali4 7-Apr-15 6:16am    
is something to be done in MIME?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900