程序在vs下正常运行,放到iis上说找不到文件
时间:2011-09-05
来源:互联网
程序在vs下正常运行,可是到iis上提示说找不到/view/conflictsearch/
前台
JScript code
后台
C# code
在iis上调用的时候抛出异常
System.Web.HttpException (0x80004005): 文件“/View/ConflictSearch/”不存在。 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 在 System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath) 在 Ext.Net.HandlerMethods.GetHandlerMethods(HttpContext context, String requestPath) 在 Ext.Net.DirectRequestModule.ProcessRequest(HttpApplication app, HttpRequest request)
前台
JScript code
function nodeLoad() { var ippt = Ext.getCmp("ip").getRawValue(); var dppt = Ext.getCmp("dp").getRawValue(); Ext.net.DirectMethods.NodeLoad(ippt, dppt, { success: function (result) { var data = eval("(" + result + ")"); // Ext.getCmp("tpConflictSolution").remove(Ext.getCmp("tpConflictSolution").root); var rootnode = new Ext.tree.AsyncTreeNode(); rootnode.setId("0"); rootnode.setText("冲突原理"); Ext.getCmp("tpConflictSolution").setRootNode(rootnode); Ext.getCmp("tpConflictSolution").root.loadNodes(data); }, failure: function (errorMsg) { Ext.Msg.alert('Failure', errorMsg); } }); }
后台
C# code
[DirectMethod] public static string NodeLoad(string ip, string dp) { Ext.Net.TreeNodeCollection nodes = new Ext.Net.TreeNodeCollection(); if (ip != "" && dp != "") { ConflictMgr con = new ConflictMgr(); nodes = con.GetTheoriesList(ip, dp); } //if (!string.IsNullOrEmpty(nodeID)) //{ // for (int i = 1; i < 6; i++) // { // AsyncTreeNode asyncNode = new AsyncTreeNode(); // asyncNode.Text = nodeID + i; // asyncNode.NodeID = nodeID + i; // nodes.Add(asyncNode); // } // for (int i = 6; i < 11; i++) // { // Ext.Net.TreeNode treeNode = new Ext.Net.TreeNode(); // treeNode.Text = nodeID + i; // treeNode.NodeID = nodeID + i; // treeNode.Leaf = true; // nodes.Add(treeNode); // } //} return nodes.ToJson(); }
在iis上调用的时候抛出异常
System.Web.HttpException (0x80004005): 文件“/View/ConflictSearch/”不存在。 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) 在 System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) 在 System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath) 在 Ext.Net.HandlerMethods.GetHandlerMethods(HttpContext context, String requestPath) 在 Ext.Net.DirectRequestModule.ProcessRequest(HttpApplication app, HttpRequest request)
作者: fnfuqqq 发布时间: 2011-09-05
发错地方了,ASP.NET版块的问题,ASP和它完全不同。
作者: theforever 发布时间: 2011-09-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28