如何在 IIS 上设置 ASP.NET 应用程序
我已经将一个包含网站的整个文件夹从 Web 服务器复制到另一台计算机。从原始服务器我可以轻松运行 Web 应用程序。现在我需要知道我到底需要做什么才能在第二台计算机上运行该应用程序。我认为 IIS 有一些特殊的考虑因素。我必须在 IIS 中设置什么以及如何设置?
I've copied a whole folder which keeps a website inside from a web server to another computer.From the original server I can easily run the web application. Now I need to know what exactly I have to do in order to be able to run the application on the second computer too. I think there are some special considerations with IIS. What and how do I have to set up in IIS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请按照以下步骤操作。
Follow these steps.
根据您使用的 IIS 版本,需要考虑一些注意事项。了解您使用的是 6 还是 7 会很有帮助。
如果您未满 7 岁,则需要将站点复制到 IIS 目录(通常为 wwwroot),然后通过选择应用程序池等在 IIS 中设置基本设置。应用程序池通常(但并非总是)由 .Net Framework 设置。您可能需要设置默认页面并将其设置为应用程序。有许多博客和网站会告诉您如何设置此基本功能,但它们特定于您的应用程序。
There are some considerations to make depending on which version of IIS you are using. It would be helpful to know if you are using 6 or 7.
If you are under 7, you need to copy the site to your IIS directory (typically wwwroot) and then setup the basic settings in IIS by choosing your application pool and such. Application pools are typically (but not always) setup by .Net Framework. You may need to setup your default page and set it as an application. There are many blogs and sites out there that will tell you how to setup this basic functionality but are specific to your application.
用于配置 IIS
1. 首先,在“程序和功能”中,转到“打开和关闭 Windows 功能”...其中勾选 IIS 下的所有内容...转到子文件夹并勾选所有位置的所有内容
转到 Internet Explorer>;设置>互联网选项>高级> 取消勾选显示友好的http错误消息选项
转到IIS管理器
一个。在默认应用程序池中>高级设置>设置 true 启用 32 位程序选项
b.转到 Asp>设置>展开调试属性>将有一个错误消息选项,某些第二个最后或最后一个选项可能为 false...将其设置为 true..应用更改
仅在 Internet Explorer 中运行 vbscript 和 asp(弹出窗口的开发人员选项中的边缘 10)< /p>
For configuring IIS
1. Firstly, in Programs and features go to Turn on and off windows features...in that tick everything under IIS..go to sub folder and tick everything everywhere
Go to Internet Explorer> Setting> Internet Options> Advanced> untick Show friendly http error messages option
Go to IIS manager
a. In default application pool> advanced settings > Set true enable 32-bit program option
b. Go to Asp> setting> expand debugging properties> there will an option of error messages some 2nd last or last option that would be false...set it to true..apply changes
Run vbscript and asp only in Internet Explorer (edge 10 in developer options for pop ups)