Friday, November 7, 2014

Internet Information Services 8.5, Windows server 2012 R2, asp.net 4.5.1 error "The resource cannot be found."


After configuring my application in IIS, I was continuously getting this error "The resource cannot be found." while requesting any aspx files. Images and html files were opening just fine


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. 

Requested URL: /myapp/Index.aspx


It turned out that I have created the website and pointed the folder as f:
ie; the in the site, the physical path was pointing to f:
It started working after I changed f: to f:\

I didn't care about this as nobody was supposed to access the site directly; they all will go to a sub application folder. I had then proceeded to create my application myapp under this site and copy all the application files over. Unfortunately, the application refused to execute any aspx code with this odd error "The resource cannot be found." in any subfolders (sub applications under main site) until I fixed the path of the main site as f:\


No comments:

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...