Coding tips, programming hacks and sharing knowledge.
When you come across the error "Unable to create virtual directory" in Visual Studio. Follow steps mentioned below to create a virtual directory.
1. Go to Web Properties. (Right click on your project and select Properties or press Alt+Enter)
2. Select "Use local IIS Web server".
3. Click "Create Virtual Directory".
Following is the snapshot depicting the same.
While working with a json file today I got the following error from server: HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the exten...
Guide to set up IIS on your system either through Web PI or manually.
I had to redirect one particular page to different destination for an application. I wanted to do this via web.config only. This is what I did: <location path=&quo...
If you want to apply 301 (Redirect permanent) for all http requests to https you need to add the following section in your system.webserver section of your web.config fil...
If you are facing 404 error while accessing iso extension file this blog will help you. You need to add following code in your web.config: <remove fileExtension=&q...
While using the File.Move method to move a file from one location to other: File.Move(oldPath, newPath); I was getting the following exception: Access to the path is deni...