我第一次与IIS

我有一个家庭networking,我正在玩IIS。 我已经开发了一个ASP.NET应用程序使用Visual Studio 2010,并希望将其部署到我的Windows 2008 R2的Web服务器。 但是我从来没有用过IIS,也不知道我在做什么。 任何人都有好的url? 我想要做的就是将我的Web应用程序发布到Web服务器上并运行它。 应该很简单吧? 我没有域名,只是一个工作组。

谢谢,马克。

编辑

我试图发布在Visual Studio中的网站,我得到了这个输出:

------ 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 ========== 

有任何想法吗? 镁是networking服务器的名称。 如果我从我的工作站浏览到网站,我会得到:

 Server Error 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. 

编辑2

如果我浏览到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 

编辑3

现在,我已经成功地将应用程序映射到驱动器并简单地发布到映射驱动器,将应用程序传输到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 

任何想法 – 哇这似乎很难。

这是为VS2005,但过程是类似的: 部署ASP.NET Web应用程序

编辑:
如果你从电脑(镁)浏览到网站,它会给你一个更详细的错误。 否则,你将不得不通过IIS日志来弄清楚到底发生了什么。 可能就像IUSR_Magnesium没有对文件夹的读取权限一样简单。

编辑2:
该错误表明你没有该目录的默认文件(即index.asp,或default.asp;无论它被configuration为)。 如果您的应用程序没有实现默认的文档function,它不起作用。

(我不得不承认,你正在接近我在ASP.NET应用程序方面的知识的极限,但是如果你无法正常工作, Stack Overflow的专家将会知道更多。

好的,我解决了。 第一个问题是在Web服务器上的权限。 我授予了写入到Web服务器的权利,映射了一个驱动器,并能够发布罚款。 错误“HTTP错误500.21 – 内部服务器错误”已使用此页上的过程修复。 感谢克里斯的帮助 – 现在已经开始运行了。