简体   繁体   中英

Publish a website on IIS server

I designed a web application using asp.net . Now I want to publish this site on IIS server using a static IP address.

The steps that I did as follows:

  1. under IIS sites folder I created a new site.
  2. I selected the website name, application pool, physical path of the web app folder, the protocol (HTTP) , public IP address and the port(80). Then , I tried to browse and I got this error :

    "The requested page cannot be accessed because the related configuration data for the page is invalid."

Could you please help me to identify the problem or which steps I missed.

Either the pool .netframework version is not correct (maybe it needs v4.0 while your pool is only v2.0) or the mode is not correct (classic or integrated). One addional factor is Sharing the publish folder, (right click the folder with windows explorer > Properties > Sharing > Make it shared for "everyone" read & write.

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