小编Ken*_*Ard的帖子

VirtualPath在当前应用程序根目录之外

背景:使用VB.NET后端的ASP.NET Webforms应用程序.

我刚刚从Visual Studio 2010升级到Visual Studio 2013和.NET 4.5.1.此代码以前用于Visual Studio 2005和.NET 2.0.但自从升级后我得到了这个错误.

在ASCX用户控件中.

<script language="javascript" type="text/javascript">
<!--
function SetItem_<%Response.Write(m_strJSAlias)%>(strValue) {
     $("#<%Response.Write(txtShop.ClientID)%>").attr('value',strValue);
    __doPostBack('frmCorpPortal_Form','');
    void FocusOnNext_<%response.Write(m_strJSAlias)%>;
}
Run Code Online (Sandbox Code Playgroud)

我们现在得到了以前从未得到过的错误:

VirtualPath was outside the current application root.
Parameter name: virtualPath 
Description: An unhandled exception occurred during the execution of the current web request.    Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: VirtualPath was outside the current application root.
Parameter name: virtualPath


Line …
Run Code Online (Sandbox Code Playgroud)

asp.net webforms visual-studio-2013 browser-link

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

AngularJS与.NET MVC捆绑缩小错误

我一直在.NET MVC网站内开发一个大型AngularJS应用程序.如果使用Bundle Optimiazation功能,它是否会成功地进行测试,我已经走了很久没有测试?

BundleTable.EnableOptimizations = True
Run Code Online (Sandbox Code Playgroud)

当然,它失败了.我一直在玩Order I捆绑我的脚本,并确保我使用字符串文字作为我的控制器名称(我不是,这是我需要做的很多重新考虑因素).

但是如果没有角度"Unknown Provider"错误,我无法将我的Core Scripts送到Minifiy.

这是确切的错误:未捕获错误:[$ injector:modulerr] [ http://errors.angularjs.org/1.3.14/ $ injector/modulerr?p0 = ppAccount&p1 =错误... redScripts%3Fv%3DknV3wkCOg32ajaw4GwiRSrTXdo8Ue7MRIn65CPYa1b81%3A1%3A379851 )] 1

这是我的捆绑配置失败:

            bundles.Add(new ScriptBundle("~/bundles/PilotPartnerRequiredScripts")
      .Include(
          "~/UI/js/jquery/jquery-2.1.3.js",
          "~/UI/js/plugins/jquery-ui/jquery-ui.js",
          "~/UI/js/bootstrap/bootstrap.js",
          "~/UI/js/plugins/pace/pace.min.js",
          "~/UI/js/plugins/slimscroll/jquery.slimscroll.js",
          "~/UI/js/inspinia.js",
          "~/UI/js/angular/angular.js",
          "~/UI/js/ui-router/angular-ui-router.js",
          "~/UI/js/bootstrap/ui-bootstrap-tpls-0.12.1.js",
          "~/UI/js/angular/angular-resource.js",
          "~/UI/js/angular/angular-sanitize.js",
          "~/UI/js/angular/angular-route.js",
          "~/UI/js/plugins/switchery/switchery.js",
           "~/UI/js/plugins/angular-ui-switch/angular-ui-switch.js",
           "~/UI/js/plugins/angularLocalStorage/angular-local-storage.js",
           "~/UI/js/plugins/ngDialog/ngDialog.js",
           "~/Scripts/ngTags/ng-tags-input.js",
           "~/Scripts/uiSortable/sortable.js",
           "~/Scripts/kendo/2014.3.1119/kendo.all.min.js",
           "~/Scripts/xeditable/xeditable.js"
Run Code Online (Sandbox Code Playgroud)

对于我的生活,我无法弄清楚哪个依赖关系没有得到解决.我觉得如果我可以将其缩小到特定的依赖关系,我知道我可以解决这个问题.

有没有办法找到导致问题的特定模块?

有关如何使这项工作的任何建议?

谢谢您的帮助.

asp.net-mvc bundle angularjs

4
推荐指数
1
解决办法
2742
查看次数