This is a migrated thread and some comments may be shown as answers.
Error setting ToolsFile.xml as an embedded resource
1 Answer 36 Views
This is a migrated thread and some comments may be shown as answers.
Andrew Benson
Top achievements
Rank 2
Andrew Benson asked on 12 Oct 2009, 10:35 AM
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:  
   
 

1 Answer, 1 is accepted

Sort by
0
Andrew Benson
Top achievements
Rank 2
answered on 12 Oct 2009, 06:02 PM
Never mind. I resolved the issue by using the LoadToolsFile method after retrieving the XML web resource via a WebRequest.

Asked by
Andrew Benson
Top achievements
Rank 2
Answers by
Andrew Benson
Top achievements
Rank 2
Share this question
or