开发者

asp.net website deployment in IIS

I have a very simple website which displays Hello World. I tried to deploy this project on the server. These are the steps I followed:

  1. Copy the folder of the project to inetpub/wwwroot folder.
  2. In IIS management, created a website. 开发者_运维知识库Gave the path of the website from step 1.
  3. Gave the application pool as .NET 3.5

After doing the above, while browsing the page, I received the error- Type not found in web.config.


Check to see if you can browse a simple image there. that is, copy a jpg to the root of your web site and try to open it.

paste your web.config, that would be a help.

(app pool is set from advanced options in inetmgr program)


Add all website(or application.exe) files to the IIS Virtual Directory instead of wwwrootfolder. (IIS virutal directory is created by you while configuring IIS server)

Or

  • New Website
  • Under Locations Click on "Browse"
  • Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server)
  • Open manually using Explorer drag and
  • add all you files to the "solution explorer"
  • then "Yes to all"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜