PC Review


Reply
Thread Tools Rate Thread

CompilerResults.CompiledAssembly throws file not found

 
 
=?Utf-8?B?V0c=?=
Guest
Posts: n/a
 
      2nd Apr 2007
I have the following code...

string js = ReadFile(path);
JScriptCodeProvider p = new JScriptCodeProvider();
CompilerParameters cp = new CompilerParameters();
cp.GenerateExecutable = false;
cp.GenerateInMemory = true;
cp.CompilerOptions = "/t:library";
CompilerResults r = p.CompileAssemblyFromSource(cp, js);
System.Reflection.Assembly a = r.CompiledAssembly; // File not found
exception

What am I doing wrong. The error happens no matter which javascript file I
load so I am pretty surte it is not a problem in the script.

Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
404 Not Found - Not Found The requested URL /_vti_bin/shtml.exe/_vti_rpcwas not found on this server cinerama Microsoft Frontpage 1 6th Jan 2008 06:24 PM
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws "The specified network name is no longe Daniel Microsoft Dot NET 3 8th Sep 2005 07:54 AM
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws "The specified network name is no longe Daniel Microsoft Dot NET Framework 1 8th Sep 2005 04:11 AM
MS Oracle Client - OCI throws "Specified module could not be found =?Utf-8?B?bXJwcmFiYQ==?= Microsoft ADO .NET 4 17th Sep 2004 05:35 AM
HttpWebRequest.GetResponse throws error on "Not Found" Dan Microsoft ASP .NET 1 16th Mar 2004 02:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 PM.