IIS 7 and Above
Server Error in '/WS6' Application
Last post Aug 14, 2017 03:08 AM by Yuk Ding
Aug 11, 2017 01:28 PM|georgedk4|LINK
Please bear with me - i am from a PHP/Apache background but i have been asked to look at why a .NET/IIS application is not running. I am receiving the following error message when visiting the URL via localhost or via the domain name:-
Server Error in '/WS6' Application
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.vbhtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /WS6/s2.vbhtml
So its trying to run a vbhtml file. I have set this up as a standalone website and then as an application of a parent website and i keep receiving that error message. I have also made the following setting changes:-
- Ensured that all users have full access to the WS6 folder;
- Ensured that .NET framework v4.0 - is running. It definitely is as the error page says so at the bottom;
- Under "ASP" i can see that "Script Language" is set to "VBScript" - i believe thats ok;
- Under "Handler Mappings", i can see a whole series of settings for VB - e.g. "vbhtml-integrated-4.0", "vbhtml-ISAPI-4.0_64bit" etc;
- Under "Request Filtering", i have ensured that ".vbhtml" is allowed;
- Under "MIME Types", I have added and enabled the ".vbhtml" and set its MIME type to "application/octet-stream";
- Under "Directory Browsing", i have enabled and disabled it to no avail;
- Under "Default Document", i have added "myfile.vbhtml" and pushed it to the top;
Each time i was stopping the server, starting it back up again and then revisiting the page and every single time i received the same error message.
I have also checked the IIS error logs and i am continually receiving 403 forbidden HTTP error codes.
Can anyone guide me in the right direction please (bearing in mind i don't have a background in .NET)...
Aug 11, 2017 02:16 PM|lextm|LINK
You would have to check why there is a request to /WS6/s2.vbhtml.
*.vbhtml is used as page template for ASP.NET MVC (aka Razor), so such files should never be called explicitly. The proper calls to follow MVC conventions and be "/controller/action".
Aug 11, 2017 02:30 PM|georgedk4|LINK
A POST request is made to /WS6/s2.vbhtml whenever someone logs into their software program. That code is then supposed to take the contents of the POST and add it to a MS-SQL database on the same server. The application contains the following
And thats it - there are no other files than that....
Aug 11, 2017 02:55 PM|lextm|LINK
The folder structure seems to indicate that it is not ASP.NET MVC, but another project type.
Can you post to http://forums.asp.net to review with other ASP.NET experts? They might tell you what project type it is, and what extra configuration is needed before hosting on IIS.
Aug 14, 2017 03:08 AM|Yuk Ding|LINK
Could you explain which kind of .net application are you using? The .vbhtml seem to be the razor view file for ASP.NET MVC project. You shouldn't access the vbhtml directly but the action method in controller. So if you need the separate web page , you'd
better use .aspx instead of .vbhtml. This link provide the steps to deploy your web application to IIS:
So just ensure your application could run from visual studio and then try to publish it to IIS.
In addition, please check whether the asp.net feature in turn windows features on or off/world wide web services/application development feature/ has been installed and you have selected the application pool integrated mode.
Remember to check the handler like vbhtml-Integrated-4.0 was displayed in handler mapping.