just deployed a asp.net 3.5 apllication to my Win 2008 R2 server
It is using extension less url, access files without .aspx extension. I am not using any third pay tool. using native url rewrite feature
Example:
website.com/Name1
website.com/Name2
I deployed to virtual directory in server it is working Ex: http://my IP address/url/Anyname
once deployed to website it is not working http://website.com/Anyname throwing 404
both are same files, in virtual directory it is working but in website it is not working
If I create virutal directory inside my website
lie website.com/VDir/Name1 also it is working
but it is not working directly in website
runAllManagedModulesForAllRequests value set to true
kumar_jac
Member
129 Points
31 Posts
Application working fine in Virtual directory but not working in Website throwing IIS 404 Error -...
Feb 05, 2012 01:20 PM|LINK
Hi,
just deployed a asp.net 3.5 apllication to my Win 2008 R2 server
It is using extension less url, access files without .aspx extension. I am not using any third pay tool. using native url rewrite feature
Example:
website.com/Name1
website.com/Name2
I deployed to virtual directory in server it is working Ex: http://my IP address/url/Anyname
once deployed to website it is not working http://website.com/Anyname throwing 404
both are same files, in virtual directory it is working but in website it is not working
If I create virutal directory inside my website
lie website.com/VDir/Name1 also it is working
but it is not working directly in website
runAllManagedModulesForAllRequests value set to true
<modules runAllManagedModulesForAllRequests="true">
M.Krishna kumar
--------------------
My Favorite Website:
Free Online Exam and free Certification website http://www.RankSheet.com (asp.net, sql server, C#, VB.net ...)
RDO
Member
309 Points
285 Posts
Re: Application working fine in Virtual directory but not working in Website throwing IIS 404 Err...
Feb 05, 2012 01:24 PM|LINK
I believe the problem is the way you are using url rewrite. What version of IIS are you on for both development and web server?
Try removing the url rewrite and running your site. If it loads as website.com/name1.aspx then you will know this is the cause.
Post back your finding and any error messages
Christian Forum