+ -
当前位置:首页 → 问答吧 → 程序在vs下正常运行,放到iis上说找不到文件

程序在vs下正常运行,放到iis上说找不到文件

时间:2011-09-05

来源:互联网

程序在vs下正常运行,可是到iis上提示说找不到/view/conflictsearch/
前台
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

热门下载

更多