简体   繁体   中英

publish asp.net application localy in iis

i'm trying to publish asp.net app localy on my computer:

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

in visual studio: I selected build-> publish get the message that both the built and the publish succeeded. In "select publish target" i pressed "custom" and created new profile publish method: file system target location: 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?

In IIS Manager --> Application Pools

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? If not double click and change the options.

IF you're not using http://localhost , then DNS is missing.

You need to map whatever "web site name" ( www.mysite.com ) you used to:

  • your local loopback ip, 127.0.0.1 , or ;
  • whatever local IP your router/dhcp service provided your local machine), or ;
  • if you want to be fancy and assign multiple IPs to your machine, then assign one to the site

Finally, map any of the above to your hosts file .

Hth..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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