Open File - Server Error in '/' Application.

2 posts, 0 answers
  1. Chief
    Chief avatar
    5 posts
    Member since:
    Jul 2010

    Posted 20 Jan 2011 Link to this post

    I have one file server 2008 r2 and IIS 6.1 on it. I am trying to create a file server manager system using the file explorer control.

    First thing that my web application is on the folder wwwroot/fileservermanager/ and 
    I created a virtual directory under wwwroot/fileservermanager/ as wwwroot/fileservermanager/depo01/ 

    /depo01/   is the D:/ of my physical drive and 

    I am impersonating users as many ways and successfull 

    <system.web>   
        <authentication mode="Windows"/>
            <identity impersonate="true"/>
    <system.web/>

    After publishing the web page I can impersonate the users and access the specific folders by file explorer and can perform upload, delete, create new folder operations but when i try Open the files I get the error 

    Server Error in '/depo01' 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: An error occurred loading a configuration file: Failed to start monitoring changes to 'D:\teknik_as\web.config' because access is denied.

    Source Error: 

    [No relevant source lines]

    Source File: D:\teknik_as\web.config    Line: 



    I dont have a web.config file under D:\teknik_as\   because this is the File Server folder that I m trying to open the files 

    Is there a way to show a virtual directory as a folder under the project folders without any problems ?

    web.config file
    <?xml version="1.0"?>
    <configuration>
        <configSections>
        </configSections>
        <appSettings>
            <add key="Telerik.Skin" value="Windows7"/>
            <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled"/>
            <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled"/>
        </appSettings>
        <system.web>
            <compilation debug="true" targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
            <pages>
                <controls>
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
                </controls>
            </pages>
            <httpHandlers>
                <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
                <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
            </httpHandlers>
            <httpModules>
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
                <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
            </httpModules>
            <httpRuntime maxRequestLength="102400" executionTimeout="3600"/>
            <authentication mode="Windows">
            </authentication>
        <identity impersonate="true"/>
        </system.web>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
        <location path="FileExpl">
            <system.web>
                <authorization>
                    <deny users="?"/>
                </authorization>
            </system.web>
        </location>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules runAllManagedModulesForAllRequests="true">
                <remove name="RadUploadModule"/>
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
                <remove name="RadCompression"/>
                <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
            </modules>
            <handlers>
                <remove name="ChartImage_axd"/>
                <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
                <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
                <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
                <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
                <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
                <remove name="Telerik_RadUploadProgressHandler_ashx"/>
                <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
                <remove name="Telerik_Web_UI_WebResource_axd"/>
                <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
            </handlers>
            <security>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="104857600"/>
                </requestFiltering>
            </security>
        </system.webServer>
        <system.serviceModel>
            <bindings />
            <client />
        </system.serviceModel>
    </configuration>


    file explorer viewpaths 

    RadFileExplorer1.InitialPath = Page.ResolveUrl("~/depo01/TEKNIK_AS/");
     
    String paths = Page.ResolveUrl("~/depo01/TEKNIK_AS/");
     
    RadFileExplorer1.Configuration.ViewPaths = new String[] { paths };
    RadFileExplorer1.Configuration.DeletePaths = new String[] { paths };
    RadFileExplorer1.Configuration.UploadPaths = new String[] { paths };
      
    /depo01/ is the virtual path, and I need help pls!
  2. Chief
    Chief avatar
    5 posts
    Member since:
    Jul 2010

    Posted 21 Jan 2011 Link to this post

    my answer is in this link 

    Read this link and solve same problem

    IIS FORUMS
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top