无法运行uploadify的asp.net
问题描述:
我从下载示例代码/演示:无法运行uploadify的asp.net
http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html
,当我尝试运行任何ASPX文件,我刚刚从下面的消息服务器:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 46: ASP.NET to identify an incoming user.
Line 47: -->
Line 48: <authentication mode="Windows"/>
Line 49: <!--
Line 50: The <customErrors> section enables configuration
Source File: C:\Inetpub\wwwroot\test_uploader\uploadify\web.config Line: 48
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
任何人都知道为什么会发生这种情况?我通常可以在这台服务器上运行asp.net 2.0和以上的web表单。
答
你会得到这个错误,因为你已经在一个子目录中放置了一个web.config,这包含了应该在那里的会话,除非你在iis的这个子目录中定义了一个新的应用程序/池asp.net。
从你的问题,这里是你的web.config的路径,但这必须是一个目录,或根本不存在,或删除不能在那里的行。
C:\Inetpub\wwwroot\test_uploader\uploadify\web.config
上传文件的目录是虚拟目录? '此错误可能是由于虚拟目录没有被配置为IIS中的应用程序引起的。'其次,IIS_User已经读取了文件夹和文件的\写入权限? – 2012-01-13 10:26:59