Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.0 Error - 500.19 Internal Server Error

I am currently on a shared hosting plan with iis 7.0

I have an asp.net mvc application in the wwwroot of my hosting. Now I made a virtual directory to store my webservice in(I don't want to have to host this on a sub domain and pay extra)

However when I put my web service code in my virtual directory and try to run it I get this

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x80070005
Config Error    Cannot read configuration file due to insufficient permissions
Config File \\?\C:\HostingSpaces\int\Site.com\wwwroot\web.config
Requested URL   http://www.Site.com:80/VirtualDirectory/Webservice.asmx
Physical Path   C:\HostingSpaces\int\Site.com\wwwroot\VirutalDirectory\Webservice.asmx
Logon Method    Not yet determined
Logon User  Not yet determined
Config Source

   -1: 
    0: 

I don't know what the probelm is nor how to fix it.

like image 765
chobo2 Avatar asked Jan 13 '10 05:01

chobo2


People also ask

How do I fix internal server error in IIS?

IIS error The error 500.19 is an internal server error often occurring on a server using Microsoft IIS software. It indicates that the configuration data for the page is invalid. To solve the issue, delete the malformed XML element from the Web. config file or from the ApplicationHost.

Where is the IIS config file?

The configuration files for IIS 7 and later are located in your %WinDir%\System32\Inetsrv\Config folder, and the primary configuration files are: ApplicationHost. config - This configuration file stores the settings for all your Web sites and applications.

What is ApplicationHost config file?

ApplicationHost. config is the root file of the configuration system when you are using IIS 7 and above. It includes definitions of all sites, applications, virtual directories and application pools, as well as global defaults for the web server settings (similar to machine.


3 Answers

You should check the permission of the user account of the apppool. Or you can check the security property of the folder(C:\HostingSpaces\int\Site.com\wwwroot). Ensure the account of the apppool of IIS can read the folder at least.

like image 140
sky100 Avatar answered Sep 29 '22 21:09

sky100


This can also be due to IIS needing an extra plugin like the URL rewrite module rule

like image 35
Daniel Little Avatar answered Sep 29 '22 21:09

Daniel Little


You have your permissions set incorrectly. From within DotNetPanel go to the file manager and set the permissions for the virtual directory by clicking the "Lock" icon.

like image 31
user244255 Avatar answered Sep 29 '22 21:09

user244255