问题
I was deploying an MVC application in IIS resides in 2003 server.I don't have Visual studio installed or web deploy rather .net framework and required stuffs are installed over there.I just created a virtual directory under default website and mapped my website file by using alias.Then configured default application pool with corresponding framework .Then when i browsed i was not able to throw web application. Can.Can any body suggest me the simple steps i required to install MVC application in IIS over windows 2003 server. Remember i don't have webdeploy or visual studio installed rather than the .net frame work .When i googled every where they are mentioning about web deploy or one click publish from visual studio
UPDATE
i have VS installed on my system,if you can guide me something which i can create a package in my system and deploy it in web server is appreciated.I came from winform background where we create setup file for installation
回答1:
Visual Studio lets you publish to File System. I set this up on my dev machine to a specific folder (outside of my project). Then I right-click on my project to publish and my project files get copied to this folder.
- Right-click project > Publish...
- New Profile (File System)
- Set path
- Publish
Now all the required files are in a correct folder structure. This just needs to be copied (FTP) to the deployment location.
For a new website:
- In IIS Default Web Site > create a new web application.
- Set alias and path to virtual directory
- Set App Pool
- Copy my published directory to the virtual directory
What it looks like on the webserver
C:/Web/MyMvcProj
/bin
/Content
/Scripts
/Views
Global.asax
Web.config
来源:https://stackoverflow.com/questions/30088285/how-to-deploy-mvc-application-in-2003-server-iis