我目前使用的是IIS 7.0共享主机计划。
我在托管的wwwroot中有一个asp.net mvc应用程序。现在我创建了一个虚拟目录来存储我的webservice(我不想将其托管在子域上并支付额外费用)
但是当我将我的Web服务代码放入虚拟目录并尝试运行它时,我会得到这个错误:
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:
我不知道问题出在哪里,也不知道如何修复它。