相关疑难解决方法(0)

如何在VS.NET 2013中禁用__vwd/js/artery?

我已升级到VS.NET 2013,现在,每次我开始在IIS中调试ASP.NET MVC4应用程序时,如何创建__vwd/js/artery,这个脚本会干扰我的RequireJS设置并且它会崩溃jQuery参考.

有谁知道我怎么能摆脱这个脚本?

__vwd/JS /动脉

window.vwdTempJQuery = window.jQuery = window.$;
window.jQuery = window.$ = null;
window.vwdTempJSON = window.JSON;

*! jQuery v1.8.2 jquery.com | jquery.org/license */

.....

// Restore original jQuery references.
window.jQuery = window.$ = window.vwdTempJQuery;
window.vwdTempJQuery = null;
// Restore original JSON.
if (window.JSON !== window.vwdTempJSON)
    window.JSON = window.vwdTempJSON;

....
Run Code Online (Sandbox Code Playgroud)

LE:它已在Visual Studio 2013 RTM中修复

visual-studio asp.net-mvc-4

160
推荐指数
2
解决办法
4万
查看次数

System.InvalidOperationException:堆栈为空

运行Visual Studio 2013中构建的ASP.NET 4.x应用程序后,我得到以下异常.

我试图通过删除页面检查器程序集来禁用PageInspector

<assemblies>
    <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</assemblies>
Run Code Online (Sandbox Code Playgroud)

并将此配置添加到应用程序设置

<appSettings>
    <add key="PageInspector:ServerCodeMappingSupport" value="Disabled"/>
</appSettings>
Run Code Online (Sandbox Code Playgroud)

什么都没有帮助.

[/Pages/TargetPage.aspx] System.Web.HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown. ---> System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Stack empty.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Stack`1.Pop()
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject)
   at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, …
Run Code Online (Sandbox Code Playgroud)

asp.net asp.net-4.0 visual-studio-2013

24
推荐指数
4
解决办法
3万
查看次数