问题描述
我目前正在使用 iis 7.0 的共享主机计划
I am currently on a shared hosting plan with iis 7.0
我在主机的 wwwroot 中有一个 asp.net mvc 应用程序.现在我创建了一个虚拟目录来存储我的网络服务(我不想在子域上托管它并支付额外费用)
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)
但是,当我将 Web 服务代码放在我的虚拟目录中并尝试运行它时,我得到了这个
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:HostingSpacesintSite.comwwwrootweb.config
Requested URL http://www.Site.com:80/VirtualDirectory/Webservice.asmx
Physical Path C:HostingSpacesintSite.comwwwrootVirutalDirectoryWebservice.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.
推荐答案
你应该检查apppool的用户帐户的权限.或者您可以检查文件夹的安全属性(C:HostingSpacesintSite.comwwwroot).确保 IIS 的 apppool 的帐户至少可以读取该文件夹.
You should check the permission of the user account of the apppool. Or you can check the security property of the folder(C:HostingSpacesintSite.comwwwroot). Ensure the account of the apppool of IIS can read the folder at least.
这篇关于IIS 7.0 错误 - 500.19 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!