Access Denied for %windir%/TEMP

Last post 09-08-2005, 5:50 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  09-08-2005, 4:05 PM 10252

    Access Denied for %windir%/TEMP

    Has this problem been resolved?  I am using file version: 4.5.0.0, Description is: CuteEditor 4.5.0.1 Build 2005-07-10

    It is the demo version.  It works fine on my local machine, but bombs when I copy it to a local server.


    The full error is:
    Server Error in '/CuteSoft_Client' Application.
    --------------------------------------------------------------------------------

    In Not Full-Trusted Application,Editor Setting Can't Be Saved,And The EditorSetting Can't Be Restored After The Application Restarted. -- Access Denied for %windir%/TEMP
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: In Not Full-Trusted Application,Editor Setting Can't Be Saved,And The EditorSetting Can't Be Restored After The Application Restarted. -- Access Denied for %windir%/TEMP

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:


    [ArgumentException: In Not Full-Trusted Application,Editor Setting Can't Be Saved,And The EditorSetting Can't Be Restored After The Application Restarted. -- Access Denied for %windir%/TEMP ]
       CuteEditor.EditorSetting.a(String A_0) +332
       CuteEditor.EditorSetting..ctor(Editor editor, String hash) +173
       CuteEditor.EditorSetting.GetFromHash(HttpContext context, Editor editor, String hash) +112
       CuteEditor.EditorSetting.GetFromContext(HttpContext context, Boolean bthrow) +63
       CuteEditor.Impl.ResourceContext.LoadResources(HttpContext context, Editor editor, CultureInfo culture) +64
       CuteEditor.EditorUtilityPage.OnInit(EventArgs e) +93
       System.Web.UI.Control.InitRecursive(Control namingContainer) +241
       System.Web.UI.Page.ProcessRequestMain() +197

     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
  •  09-08-2005, 5:36 PM 10255 in reply to 10252

    Re: Access Denied for %windir%/TEMP

    I added the CuteSoft_Client\bin\CuteEditor.dll to the GAC
    then I set the security to "Low Trust"
    then I modifed CuteSoft_Client\CuteEditor\Web.config to:
    <configuration>
     <system.web>
      <authorization>
       <allow users="*" />
      </authorization>
      <httpHandlers>
       <add path="*.jpeg" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.jpg" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.gif" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.png" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.jpeg.aspx" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.jpg.aspx" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.gif.aspx" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
       <add path="*.png.aspx" verb="GET" type="CuteEditor.Impl.EditorImageFileHandler,cuteeditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null" />
      </httpHandlers>
     </system.web>
    </configuration>

    Then I modified CuteSoft_Client\CuteEditor\Dialogs\Web.config to:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.web>
            <compilation defaultLanguage="c#">
                <assemblies>
                    <add assembly="CuteEditor, Version=4.5.0.0, Culture=neutral, PublicKeyToken=3858aa6802b1223a, Custom=null"/>
                </assemblies>
            </compilation>
            <pages autoEventWireup='false' />
        </system.web>
    </configuration>

    And now it works...

    Should I have the heebeegeebies about putting this into a production environment?

  •  09-08-2005, 5:50 PM 10257 in reply to 10255

    Re: Access Denied for %windir%/TEMP

    It looks like you need to make the above changes in your server.
     
    Keep me posted.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML