简体   繁体   English

在iis中发布asp.net应用程序本地

[英]publish asp.net application localy in iis

i'm trying to publish asp.net app localy on my computer: 我正在尝试在我的计算机上发布asp.net应用本地化:

In the iis i right-click the "sites" and selected "Add website" In site name i wrote: www.mysite.com Physical path: i created new folder named "www" on my c driver Type: http IP address: all unassigned port:80 host name: www.mysite.com 在iis中,我右键单击“站点”,然后选择“添加网站”。在站点名称中,我写道:www.mysite.com物理路径:我在c驱动程序上创建了名为“ www”的新文件夹。类型:http IP地址:all未分配的端口:80主机名:www.mysite.com

in visual studio: I selected build-> publish get the message that both the built and the publish succeeded. 在Visual Studio中:我选择build-> publish以获得消息,表示build和publish成功。 In "select publish target" i pressed "custom" and created new profile publish method: file system target location: c:\\www 在“选择发布目标”中,按下“自定义”并创建新的配置文件发布方法:文件系统目标位置:c:\\ www

and still when i write the url in chrome or explorer i get url not found (the computer is not connected to the internet) what am i doing wrong? 而且当我在chrome或Explorer中写URL时,仍然找不到URL(计算机未连接到互联网),我在做什么错?

In IIS Manager --> Application Pools 在IIS管理器中->应用程序池

check if your added website application pool status has been started or not? 检查您添加的网站应用程序池状态是否已启动?

Also check whether your .NET Framework version is 4.0 or not for added website in application pool? 还检查应用程序池中添加的网站的.NET Framework版本是否为4.0? If not double click and change the options. 如果不是,请双击并更改选项。

IF you're not using http://localhost , then DNS is missing. 如果您不使用http://localhost ,则缺少DNS。

You need to map whatever "web site name" ( www.mysite.com ) you used to: 您需要映射以前用来映射的任何“网站名称”( www.mysite.com ):

  • your local loopback ip, 127.0.0.1 , or ; 您的本地回送ip, 127.0.0.1 ;
  • whatever local IP your router/dhcp service provided your local machine), or ; 您的路由器/ dhcp服务提供的本地计算机提供的任何本地IP),
  • if you want to be fancy and assign multiple IPs to your machine, then assign one to the site 如果您想花很多钱并为计算机分配多个IP,请为站点分配一个

Finally, map any of the above to your hosts file . 最后,将以上任何内容映射到您的hosts文件

Hth.. 心连心..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM