all groups > dotnet clr > march 2007 >
You're in the

dotnet clr

group:

Attempt to access the method failed exception


Attempt to access the method failed exception bernaba
3/26/2007 7:21:52 AM
dotnet clr:
Hello

i have a dll in GAC i'm loading this dynamically at run time, with the
following code

assembly = Assembly.Load("DynamicDll, Version=1.0.0.0,
Culture=neutral, publicKeyToken=d7fb0eda5160caf3" );
Type type = assembly.GetType("DynamicDll.DynamicClass");
object[] arguments = new object[] { txtUserText.Text };
object ibaseObject = Activator.CreateInstance(type);

i have developed a console application, the code runs successfully,
but i have another situation that i'm trying to develop .Net component
(Activex) that trying to access this dll from the client machine GAC
the code fails in the last line (Activator.CreateInstance(type);) with
the "Attempt to access the method failed"

any advice?

Thanks,
Bernaba
Re: Attempt to access the method failed exception bernaba
3/26/2007 8:51:01 AM
[quoted text, click to view]

i found the error and i fixed it

Thanks,
Bernaba
Re: Attempt to access the method failed exception Phill W.
3/27/2007 12:22:21 PM
[quoted text, click to view]

Good for you!

Care to share /what/ the problem was?
What you /did/ to fix it?

Just in case, you know, someone else happens to have the same problem??

Regards,
AddThis Social Bookmark Button