url rewriting
Hi,
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext context = HttpContext.Current;
if (context.Request.FilePath.ToString().StartsWith("/hotels-in-"))
{
context.RewritePath("country.aspx");
}
}
this is my code in global.asax.cs file
http://........../hotels-in-India //url is like this
Not Found
The requested document was not found on this server.
just its showing like this
this code is working in local system but when i uploaded the project to server its not working what to do??........
please help me...thx
Bechir BejaouiPosted Feb 11, 2009, 3:47 PM
Start>Configuration panel>.Net x.x version Configuration
Expand the workstation tree node then expand the permission set you will discover that the permisson given in a local machine is not the same given to the internet and remote context
So you have to contact the administrator of the remote server and ask him to give you the required permission sets