文件上传不适用于实时服务器 [英] File Uploding does not work on live server

查看:81
本文介绍了文件上传不适用于实时服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用filezilla上传文件



和错误是





'/'应用程序中的服务器错误。 

运行时错误

描述:服务器上发生了应用程序错误。此应用程序的当前自定义错误设置可防止远程查看应用程序错误的详细信息(出于安全原因)。但是,它可以由运行在本地服务器计算机上的浏览器查看。

详细信息:要在远程计算机上查看此特定错误消息的详细信息,请创建< customErrors > 标记位于当前Web应用程序根目录中的web.config配置文件中。此< customErrors > 标记应该然后将其mode属性设置为Off。


<! - Web.Config配置文件 - >

< 配置 >
< system.web >
< customErrors mode = / >
< / system。网站 >
< / configuration >

注意:您看到的当前错误页面可以替换为自定义错误页面通过修改应用程序的< customErrors > 配置标记指向自定义错误页面URL。


<! - Web.Config配置文件 - >

< 配置 >
< system.web >
< customErrors mode = RemoteOnly defaultRedirect = mycustompage.htm < span class =code-keyword> / >
< / system.web >
< / configuration >







将Img上传到任何文件夹时出现同样错误



plz帮我

解决方案

转到服务器管理面板....删除存储图像的文件夹的readonly属性.... / blockquote>

替换 web.config 文件的代码



< configuration>< br /> 
< system.web>< br />
< customErrors mode =RemoteOnlydefaultRedirect =mycustompage.htm/>< ; br />
< /system.web>< br />
< / configuration>




$ b以下行$ b $



< configuration>< br /> 
< sy stem.web>< br />
< customerrors mode =Off/>< br />
< /system.web>< br />
< ; /结构>


i am using filezilla to upload files

and error is


Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>




Same error while uploading Img in to any folder

plz help me

解决方案

go to server admin panel....remove readonly property of this folder where images are stored ....


Replace your code of web.config file

<configuration><br />
    <system.web><br />
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/><br />
    </system.web><br />
</configuration>



by the following lines

<configuration><br />
    <system.web><br />
        <customerrors mode="Off" /><br />
    </system.web><br />
</configuration>


这篇关于文件上传不适用于实时服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆