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:
- Copy the folder of the project to inetpub/wwwroot folder.
- In IIS management, created a website. 开发者_运维知识库Gave the path of the website from step 1.
- 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"
精彩评论