Can't debug .cshtml when using local IIS

时间:2016-10-20 12:51:04

标签: asp.net iis razor

I have a problem regarding all of my Projects when trying to Debug .cshtml files when the application is hosted on a local IIS.

I always get the Message that the symbols aren't loaded:

enter image description here

Debugging the controller works fine though.

When debugging the application with IIS Express everything works as expected.

Here is how my Application is configured:

enter image description here

Every help is appreciated, because i am starting to freak out over that problem...

Edit: I am using VS 2015 Enterprise and IIS 7.5

1 个答案:

答案 0 :(得分:1)

iis视图文件的位置路径与编码路径不同。在iis中创建虚拟目录并从项目文件夹设置路径。