I found some problems when I try to deploy my ASP.NET website into wwwroot directory of IIS7 service. It isn't work. The characteristic of my website is include 3 projects together. one is a website, one is a business logic layer project and the last is data layer project. Two project wrote with C# and needs to compile to be Dynamic Link Library (DLL) file that needs to use in a website project. However, when I try to deploy, the code get fatal error with message that it cannot find the link reference such as com.swdev package which I import to ASP.NET code. I cannot find the good keywords that should be use to googling the solution for me. This is my step
- Zip website folder on development machine
- extract to folder inside wwwroot
- start IIS7 service, Ms SQL Express
- Open IE7 with http://localhost/deploydirectory/
Next, I try to use VS.NET command of website -- publish the website. I just see it after try to deploy with the first way. Now I get publish website which has dll file inside the folder. I zip the package and deploy on wwwroot again. I still not working.
The last, I found that I must goto IIS Management (Control Panel > Administrator Tools > Internet Information Service Management) and click "Convert Application" at the deployment folder. (This will be binding the folder with ASP.NET framework which default isn't). Now, it working!. ^_^
Reference Website: