我有一个家庭网络,并且在玩IIS。我已经使用visual 2010开发了一个ASP.NET应用程序,并希望将它部署到我的windows 2008 R2 web服务器上。然而,我以前从未使用过IIS,也不知道自己在做什么。有人有好的网址吗?我所要做的就是将我的web应用程序发布到web服务器并运行它。应该很简单对吧?我没有域名,只是一个工作组。
谢谢,马克。
我试图在Visual中发布网站,并在输出中得到了如下结果:
------ Build started: Project: C:\...\test\, Configuration: Debug Any CPU ------
Pre-compiling Web Site
Building directory '/test/App_Code/'.
Building directory '/test/controls/'.
Building directory '/test/'.
Pre-compilation Complete
------ Publish started: Project: C:\...\test\, Configuration: Debug Any CPU ------
Connecting to site http://magnesium:888...
Error: The operation could not be completed
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========有什么想法吗?镁是web服务器的名称。如果我从工作站浏览到网站,就会得到:
Server Error
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.如果我浏览到web服务器上的站点,就会得到以下输出:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory. Detailed Error Information
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL http://localhost:888/
Physical Path D:\sites\test
Logon Method Anonymous
Logon User Anonymous 现在,通过映射驱动器并简单地发布到映射驱动器,我成功地将应用程序传输到web服务器。当我在服务器上浏览到它时,我会得到以下错误:
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list Detailed Error Information
Module IIS Web Core
Notification ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code 0x8007000d
Requested URL http://magnesium:888/default.aspx
Physical Path D:\sites\test\default.aspx
Logon Method Anonymous
Logon User Anonymous 任何想法-哇,这似乎很难。
发布于 2010-08-02 19:51:55
这是针对VS2005的,但流程类似:部署ASP.NET网络应用程序
编辑:
如果你从电脑上浏览到网站(镁),它会给你一个更详细的错误。否则,您将不得不挖掘IIS日志,才能准确地了解到底发生了什么。可能就像IUSR_Magnesium没有读取文件夹的权限一样简单。
编辑2:
该错误表示您没有该目录的默认文档(即index.asp或default.asp;不管它配置为什么)。如果您的应用程序没有实现默认的文档功能,那么它就无法工作。
(我不得不承认,你已经接近了我在ASP.NET应用程序方面的知识极限;但如果你不能做到这一点,堆栈溢出的专家们就会知道得更多。)
发布于 2010-08-04 20:12:29
好吧,我解决了。第一个问题是web服务器的权限。我授予了写入web服务器的权限,映射了一个驱动器,并且能够很好地发布。使用此页面上的过程修复了"HTTP 500.21 -内部服务器错误“错误。谢谢克里斯的帮助-现在一切都好了。
https://serverfault.com/questions/166397
复制相似问题