2013-01-17 59 views

回答

5

我发现,在我的web.config,我有以下行:

<compilation 
    debug="true" targetFramework="4.0" 
    assemblyPostProcessorType="Microsoft.VisualStudio.Enterprise.Common.AspPerformanceInstrumenter, Microsoft.VisualStudio.Enterprise.AspNetHelper, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 

的assemblyPostProcessorType属性是造成问题。我假设它对动态生成的剃须刀组件进行了一些处理,以打破调试。

所以我只是删除了属性得到:

<compilation debug="true" targetFramework="4.0" /> 
相关问题