Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net XML分析错误:找不到元素?_Asp.net - Fatal编程技术网

Asp.net XML分析错误:找不到元素?

Asp.net XML分析错误:找不到元素?,asp.net,Asp.net,我有一个关于IIS和ASP.Net的问题 我迁移到一个新的服务器,在那里我必须运行一个上传/下载应用程序。这个应用程序在一个旧服务器上运行得很好,现在我得到了一些解析错误,我没有从哪里得到它。 当我尝试上传一些文件时,它会工作,我也有一个连接,登录系统也会工作。但是如果我尝试上传一些文件,就会出现这个解析错误。起初我认为这一定是一些权限问题,但在我添加了一些用户权限之后,这就没有什么意义了 XML分析错误: 未找到元素位置:行号1,第1列: 这是我的upload.aspx文件: <%@ P

我有一个关于IIS和ASP.Net的问题

我迁移到一个新的服务器,在那里我必须运行一个上传/下载应用程序。这个应用程序在一个旧服务器上运行得很好,现在我得到了一些解析错误,我没有从哪里得到它。 当我尝试上传一些文件时,它会工作,我也有一个连接,登录系统也会工作。但是如果我尝试上传一些文件,就会出现这个解析错误。起初我认为这一定是一些权限问题,但在我添加了一些用户权限之后,这就没有什么意义了

XML分析错误:

未找到元素位置:行号1,第1列:

这是我的upload.aspx文件:

<%@ Page language="c#" Codebehind="DMUpload.aspx.cs" AutoEventWireup="false" Inherits="DownloadManager.DMUpload" EnableSessionState="ReadOnly"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
        <title>DMUpload</title>
        <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
        <meta content="C#" name="CODE_LANGUAGE">
        <meta content="JavaScript" name="vs_defaultClientScript">
        <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
        <LINK href="StyleSheet.css" type="text/css" rel="stylesheet">
  </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" onsubmit="uploadpop(this);" method="post" encType="multipart/form-data"
            runat="server">
            <TABLE class="navigation" id="tbNavigation" cellSpacing="0" cellPadding="0" width="100%"
                border="0">
                <TR>
                    <TD align="right"><asp:panel id="Panel4" runat="server" CssClass="panelButtons" Width="800px">
<asp:button id=btSave tabIndex=3 runat="server" CssClass="butt" Text="Speichern"></asp:button>
<asp:button id=btBack tabIndex=3 runat="server" CssClass="butt" Text="Zurück"></asp:button>
<asp:button id=btLogout tabIndex=3 runat="server" CssClass="butt" Text="Logout"></asp:button>
                        </asp:panel></TD>
                </TR>
                <tr>
                    <TD align="left"><asp:panel id="Panel1" runat="server" CssClass="panelBreadcrumb"></asp:panel><asp:label id="lbBreadCrumb" runat="server" Font-Bold="True"></asp:label></TD>
                </tr>
            </TABLE>
            &nbsp;
            <asp:label id="lbWarten" style="Z-INDEX: 103; LEFT: 24px; POSITION: absolute; TOP: 248px" runat="server"
                Height="40px" ForeColor="Red" Font-Size="Medium" Width="536px">bitte warten...</asp:label><asp:panel id="panelUpload" style="Z-INDEX: 104; LEFT: 24px; POSITION: absolute; TOP: 96px"
                runat="server" Height="104px" Width="528px">
<asp:label id=Label1 runat="server" Width="304px">Dateiauswahl:</asp:label><INPUT 
id=uploadFile1 style="WIDTH: 536px; HEIGHT: 22px" type=file size=70 
runat="server"> <INPUT id=uploadFile2 style="WIDTH: 536px; HEIGHT: 22px" 
type=file size=70 runat="server"> <INPUT id=uploadFile3 
style="WIDTH: 536px; HEIGHT: 22px" type=file size=70 runat="server"> <INPUT 
id=uploadFile4 style="WIDTH: 536px; HEIGHT: 22px" type=file size=70 
runat="server"> <INPUT id=uploadFile5 style="WIDTH: 536px; HEIGHT: 22px" 
type=file size=70 runat="server">
            </asp:panel></form>
        <script language="javascript">

            document.getElementById("lbWarten").style.visibility = "hidden";

            function uploadpop(inForm)
            {
                document.getElementById("lbWarten").style.visibility = "visible";

                if(inForm.uploadFile1 != null)
                {
                    if(    inForm.uploadFile1.value !="" 
                        || inForm.uploadFile2.value !="" 
                        || inForm.uploadFile3.value !="" 
                        || inForm.uploadFile4.value !="" 
                        || inForm.uploadFile5.value !="")
                    {
                        strUniqueID = Math.floor(Math.random() * 1000000) * ((new Date()).getTime() % 1000);                
                        thePos = inForm.action.indexOf("?");
/*
                        if (thePos >= 0)
                            inForm.action = inForm.action.substring(0, thePos);
                        inForm.action += "?guid=" + strUniqueID + "&cancel=1";
*/
                        if (thePos >= 0)
                            inForm.action += "&guid=" + strUniqueID + "&cancel=1";
                        else
                            inForm.action += "?guid=" + strUniqueID + "&cancel=1";

                        window.open("DMProgressBar.aspx?guid=" + strUniqueID,"","toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,height=275,width=600,top=70,left=100");
                    }
                }               
                inForm.submit();
                return true;
            }

            function ClearInput()
            {
                node = document.getElementById("panelUpload");
                if(node != null)
                {
//                  node.removeNode(true);
                    node.parentNode.removeChild(node);
                }
                return true;
            }

        </script>
    </body>
</HTML>

DMUpload
被咬的疣。。。
Dateiauswahl:
document.getElementById(“lbWarten”).style.visibility=“hidden”;
函数上传POP(通知)
{
document.getElementById(“lbWarten”).style.visibility=“可见”;
if(notify.uploadFile1!=null)
{
如果(notify.uploadFile1.value!“”
||inForm.uploadFile2.value!=“”
||inForm.uploadFile3.value!“”
||inForm.uploadFile4.value!=“”
||inForm.uploadFile5.value!=“”)
{
strUniqueID=Math.floor(Math.random()*1000000)*((新日期()).getTime()%1000);
thePos=inForm.action.indexOf(“?”);
/*
如果(POS>=0)
inForm.action=inForm.action.substring(0,thePos);
inForm.action+=“?guid=“+strUniqueID+”&cancel=1”;
*/
如果(POS>=0)
inForm.action+=“&guid=“+strUniqueID+”&cancel=1”;
其他的
inForm.action+=“?guid=“+strUniqueID+”&cancel=1”;
window.open(“DMProgressBar.aspx?guid=“+strUniqueID,”,“工具栏=0,滚动条=0,位置=0,状态=0,菜单栏=0,可调整大小=0,高度=275,宽度=600,顶部=70,左侧=100”);
}
}               
通知。提交();
返回true;
}
函数ClearInput()
{
node=document.getElementById(“panelUpload”);
如果(节点!=null)
{
//node.removeNode(true);
node.parentNode.removeChild(节点);
}
返回true;
}
我真的不明白,为什么它不起作用

aspx上载必须将文件发送到名为uploads的临时文件夹中,并且在上载文件后,必须将其发送到oder文件夹中,该文件夹根据用户权限保留。我注意到文件被上传并保存在临时文件夹中,但随后什么都没有发生,我收到了,就像我说的,一个解析错误

我不知道有什么问题,我真的需要一些帮助


还有一件事,如果我尝试在localhost下运行应用程序,我什么也得不到,只有网站的主页

原因如下

应用程序所在的文件夹未将组“Everyone”设置为只读模式。在添加“所有人”后,效果很好

请查看更多详细信息


嗯,我已经修好了。我认为这是一个绑定问题,我只是写了一个本地主机ip地址,然后开始像一个魔咒一样工作!!我面临着一个类似的问题。什么对你有效???。你在地址栏而不是本地主机上写了IP地址,你是说??