Error setting ToolsFile.xml as an embedded resource

2 posts, 0 answers
  1. Andrew Benson
    Andrew Benson avatar
    14 posts
    Member since:
    Jan 2005

    Posted 12 Oct 2009 Link to this post

    I'm getting the following error in when I try to set the toolsfile as an embedded resource. The resource can be accessed by requesting the URL directly, so I know I have that configured correctly.

    Below is the error message I'm getting. Any thoughts?

    Edit: The embedded resource is located in an assembly with the server control that is loading the embedded resource:
    • A web site uses a custom server control with an encapsulated radeditor
    • The server control is contained in separate assembly
    • The server control sets the ToolsFile property to using the GetWebResource method

    Heres's the ref. in assemblyinfo.vb:

     

    <Assembly: WebResource(

    "[AssemblyName].FullToolsFile.xml", "text/xml")>

     

    I've tried creating the toolsfile.xml with and without the XML declaration. There is no difference in the error.
     

    Server Error in '/Support.SyscomGM.com' Application.  
    --------------------------------------------------------------------------------  
     
    '~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path.   
    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.Web.HttpException: '~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path.  
     
    Source Error:   
     
     
    Line 470:  
    Line 471:           If Not String.IsNullOrEmpty(EditorToolsFile) Then  
    Line 472:               HtmlEditor.ToolsFile = EditorToolsFile 
    Line 473:           Else  
    Line 474:  
       
     
  2. Andrew Benson
    Andrew Benson avatar
    14 posts
    Member since:
    Jan 2005

    Posted 12 Oct 2009 Link to this post

    Never mind. I resolved the issue by using the LoadToolsFile method after retrieving the XML web resource via a WebRequest.

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