Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
QuestionNumeric function Pin
mostafa_h24-Feb-06 1:07
mostafa_h24-Feb-06 1:07 
AnswerRe: Numeric function Pin
Green Fuze24-Feb-06 2:26
Green Fuze24-Feb-06 2:26 
AnswerRe: Numeric function Pin
Wjousts24-Feb-06 3:07
Wjousts24-Feb-06 3:07 
GeneralRe: Numeric function Pin
mostafa_h24-Feb-06 4:08
mostafa_h24-Feb-06 4:08 
GeneralRe: Numeric function Pin
Dan Neely24-Feb-06 4:32
Dan Neely24-Feb-06 4:32 
GeneralRe: Numeric function Pin
mostafa_h24-Feb-06 5:14
mostafa_h24-Feb-06 5:14 
GeneralRe: Numeric function Pin
Wjousts24-Feb-06 10:44
Wjousts24-Feb-06 10:44 
QuestionReferenced assembly from dynamically generated assembly. Pin
janman24-Feb-06 0:03
janman24-Feb-06 0:03 
Hi,

I am using CSharpCodeProvider for the first time (.NET 1.1 & VS2003). My application has been used without problems for a few weeks.

Now I started using an external assembly (PortController.NET) from the generated assembly.
I can access the generated assembly (create objects and call methods) but when it reaches the poing where it uses PortController.NET (creating new object) I get the exception:
File or assembly name PortController.NET, or one of its dependencies, was not found.

But it works when executed through the debugger!?

My code looks like this:

ICodeCompiler comp = (new CSharpCodeProvider().CreateCompiler());<br />
CompilerParameters cp = new CompilerParameters();<br />
cp.ReferencedAssemblies.Add("system.dll");<br />
cp.ReferencedAssemblies.Add(@"C:\Program Files\PortController.NET\PortController.NET.dll");<br />
cp.GenerateExecutable = false;<br />
cp.GenerateInMemory = true;<br />
<br />
CompilerResults cr = comp.CompileAssemblyFromFile(cp, filepath);


In VS2003 PortController.NET is listed in the .NET list (for adding references) so I guess it's in the GAC.

Any suggestions?



Thanks,
Jan
AnswerRe: Referenced assembly from dynamically generated assembly. Pin
Nicholas Butler24-Feb-06 5:43
sitebuilderNicholas Butler24-Feb-06 5:43 
GeneralRe: Referenced assembly from dynamically generated assembly. Pin
janman24-Feb-06 8:22
janman24-Feb-06 8:22 
Questionc# or c#.net Pin
ranzask23-Feb-06 23:49
ranzask23-Feb-06 23:49 
AnswerRe: c# or c#.net Pin
Dario Solera24-Feb-06 0:35
Dario Solera24-Feb-06 0:35 
AnswerRe: c# or c#.net Pin
Ingo24-Feb-06 0:35
Ingo24-Feb-06 0:35 
AnswerRe: c# or c#.net Pin
Dan Neely24-Feb-06 2:05
Dan Neely24-Feb-06 2:05 
GeneralRe: c# or c#.net Pin
Dario Solera24-Feb-06 0:40
Dario Solera24-Feb-06 0:40 
QuestionCan't connect directly to peer Pin
kendao23-Feb-06 23:30
kendao23-Feb-06 23:30 
AnswerRe: Can't connect directly to peer Pin
Nicholas Butler23-Feb-06 23:36
sitebuilderNicholas Butler23-Feb-06 23:36 
AnswerRe: Can't connect directly to peer Pin
Divyang Mithaiwala24-Feb-06 2:50
Divyang Mithaiwala24-Feb-06 2:50 
QuestionCustomizing Tree Node Pin
gubber23-Feb-06 23:24
gubber23-Feb-06 23:24 
AnswerRe: Customizing Tree Node Pin
mav.northwind23-Feb-06 23:36
mav.northwind23-Feb-06 23:36 
AnswerRe: Customizing Tree Node Pin
Nicholas Butler23-Feb-06 23:47
sitebuilderNicholas Butler23-Feb-06 23:47 
AnswerRe: Customizing Tree Node Pin
gubber23-Feb-06 23:54
gubber23-Feb-06 23:54 
QuestionCustomize Toolbar Pin
Maqsood Ahmed23-Feb-06 22:22
Maqsood Ahmed23-Feb-06 22:22 
QuestionLDAP cache to increase the performance in C# ASP.net Pin
urcode23-Feb-06 22:04
urcode23-Feb-06 22:04 
QuestionZedGraph Help Please Pin
Jeyakumar_indian23-Feb-06 21:14
Jeyakumar_indian23-Feb-06 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.