Server Error in App Resource Can't be found, URL is correct but href is not working in .net

Channel:
Subscribers:
8,250
Published on ● Video Link: https://www.youtube.com/watch?v=FytXNWZHQTM



Category:
Guide
Duration: 3:24
2,724 views
8


3rd Solution, Correct path in href but can't navigate in .net. Please try the solution explained in this video and please try two more methods relating to this error explained in other two videos, you can find the link at the end of this video. “Server Error in '/' Application” error?
How to resolve “Server Error in '/' Application” error?
When you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error.
You may get this error when trying to browse an asp.net application.

The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS."

However, this error occurs primarily out of 2 scenarios.

When you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error. The debug information you get as mentioned above, is applicable to this scenario.
To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.

When you have sub-directories in your application, you can have web.config file for the sub-directory. However, there are certain properties which cannot be set in the web.config of the sub-directory such as authentication, session state (you may see that the error message shows the line number where the authentication or sessionstate is declared in the web.config of the sub-directory). The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application (as mentioned in the above point).
Mostly we have the practice of adding web.config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we wish to protect the admin pages from unathorized users).
#dilipmj







Tags:
How to set start url in visual studio
Http 404
Server error in '/' application resource cannot be found
Url is not working in asp.net
Url is correct but cant neviagte
How to
Resource not found
Right url but page is not found
404
Cant redirect in asp.net
Resource cannot be found
Server error in '/' application
Solution for server errror in '/' application
How to fix server error in '/' application ?
Server error in '/' application solution
Error
'/'