[英]How can I deploy an asp.net application using Visual Studio 2008
我正在尝试使用IIS发布一个网站,我创建了一个虚拟目录,并在此目录中添加了所有网页并配置了虚拟目录,但我仍然无法运行我的Web应用程序。
Here is the step by step method to deploy an asp.net application 以下是部署asp.net应用程序的分步方法
http://www.15seconds.com/issue/030806.htm http://www.15seconds.com/issue/030806.htm
Please post any error message 请发布任何错误消息
确保您正在运行正确的asp.net版本...检查是否在asp.net选项卡中是否为v 1将其更改为v2
你能不能让我知道错误信息。(检查最小设置,如startUp页面,版本,尝试使用向导发布等)
In Visual studio, click on project , Properties , Web . 在Visual Studio中,单击项目 , 属性 , Web 。 Under Servers , select Use local IIS Web server , then on Create virtual Directory .
在服务器下 ,选择“ 使用本地IIS Web服务器” ,然后选择“ 创建虚拟目录” Now, when you debug, the page should open in IIS, and Visual studio has taken care of most of the grudge work of setting up the IIS, all you will probably have to change is the security settings under IIS.
现在,当你调试时,页面应该在IIS中打开,并且Visual Studio已经处理了设置IIS的大部分怨恨工作,你可能需要改变的只是IIS下的安全设置。 Hope this helps.
希望这可以帮助。
If it is IIS7 check that your application has enough permissions to run: 如果是IIS7,请检查您的应用程序是否具有足够的运行权限:
IIS Actions Pane: IIS操作窗格:
The question doesn't say what exactly the error is but you mentioned that you just created the virtual directory. 问题并没有说明错误是什么,但你提到你刚刚创建了虚拟目录。 Did you make it an web application?
你有没有把它变成一个Web应用程序? For IIS 6 follow this link - Create and Configure Local ASP.NET Web Sites .
对于IIS 6 ,请单击此链接 - “创建和配置本地ASP.NET网站” 。 In IIS7 just right click on it and convert it to application.
在IIS7中,只需右键单击它并将其转换为应用程序。
If its already a website, did you choose the correct framework? 如果它已经是一个网站,你选择了正确的框架吗? normally when you create a website it ill be assigned the default app-pool.
通常当你创建一个网站时,它会被分配默认的应用程序池。 If you have installed multiple dotnet then you might check which framework is in default app-pool.
如果您已经安装了多个dotnet,那么您可以检查哪个框架在默认应用程序池中。 Then change the default app-pool to the correct version that is required by your website, or create a new app-pool.
然后将默认应用程序池更改为您的网站所需的正确版本,或创建新的应用程序池。
There can be multiple reasons so if you could provide the error message then it would be easier to resolve the problem. 可能有多种原因,如果您可以提供错误消息,那么解决问题会更容易。
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.