0

I've got a MVC project that works fine in IIS Express in development, and works fine when I publish from VS 2012 to a root level web site on a server (IIS 6.1), but when I try to deploy it in a directory below "Default Web Site", for example "Default Web Site\MySite", the views aren't found properly. It appears that the views are being searched for at "Default Web Site\Views", a level above where they should be, at "Default Web Site\MySite\Views".

I've confirmed that this is what is happening my copying my Views directory up one level and then the application runs fine.

How do I fix this so the that application searches for Views in the proper directory?

Publish Web Dialog

4

1 に答える 1

0

mvc アプリケーションを仮想ディレクトリにデプロイしますか、それともアプリケーションを iis にデプロイしますか?
編集:
Web アプリを受け取るために MyServer を準備しますか? サーバー自体にアクセスできますか?

于 2013-09-18T19:03:43.210 に答える