Click here to Skip to main content
15,888,968 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Form DataGrid Pin
ankita patel24-Sep-03 8:37
ankita patel24-Sep-03 8:37 
GeneralRe: Windows Form DataGrid Pin
devvvy24-Sep-03 8:47
devvvy24-Sep-03 8:47 
GeneralRe: Windows Form DataGrid Pin
ankita patel24-Sep-03 11:48
ankita patel24-Sep-03 11:48 
GeneralRe: Windows Form DataGrid Pin
sumeat24-Sep-03 14:32
sumeat24-Sep-03 14:32 
GeneralRe: Windows Form DataGrid Pin
devvvy24-Sep-03 17:41
devvvy24-Sep-03 17:41 
GeneralVS.NET does not see my assemblies Pin
Le centriste24-Sep-03 8:10
Le centriste24-Sep-03 8:10 
GeneralRe: VS.NET does not see my assemblies Pin
James T. Johnson24-Sep-03 9:15
James T. Johnson24-Sep-03 9:15 
GeneralSystem.UnauthorizedAccessException Pin
Le centriste24-Sep-03 8:08
Le centriste24-Sep-03 8:08 
I have an application (BizTalk Server 2004, running as Administrator) that accesses custom components, which are referenced in my project (a class library project).

What happens is that my custom class is correctly loaded by the application, which custom class access another assembly. This last assembly loads another assembly using the following code:

Assembly  assembly = Assembly.Load(assemblyName);
IComponent result = (IComponent) assembly.CreateInstance(className);


The first line of code works , but the second one throws the exception. Here is the stack trace:

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName)


Tx

Michel


--------

"I say no to drugs, but they don't listen."
- Marilyn Manson
GeneralRe: System.UnauthorizedAccessException Pin
ich_bins25-Sep-03 0:01
ich_bins25-Sep-03 0:01 
GeneralRe: System.UnauthorizedAccessException Pin
Le centriste25-Sep-03 3:02
Le centriste25-Sep-03 3:02 
GeneralMouseHover logic Pin
Arun Bhalla24-Sep-03 7:43
Arun Bhalla24-Sep-03 7:43 
GeneralRe: MouseHover logic Pin
J. Dunlap24-Sep-03 8:27
J. Dunlap24-Sep-03 8:27 
GeneralRe: MouseHover logic Pin
Arun Bhalla24-Sep-03 10:23
Arun Bhalla24-Sep-03 10:23 
GeneralRe: MouseHover logic Pin
J. Dunlap24-Sep-03 10:54
J. Dunlap24-Sep-03 10:54 
GeneralRe: MouseHover logic Pin
Arun Bhalla24-Sep-03 11:02
Arun Bhalla24-Sep-03 11:02 
GeneralRe: MouseHover logic Pin
J. Dunlap24-Sep-03 11:11
J. Dunlap24-Sep-03 11:11 
GeneralRe: MouseHover logic Pin
Arun Bhalla24-Sep-03 11:18
Arun Bhalla24-Sep-03 11:18 
GeneralRe: MouseHover logic Pin
J. Dunlap24-Sep-03 11:19
J. Dunlap24-Sep-03 11:19 
GeneralRe: MouseHover logic Pin
Arun Bhalla24-Sep-03 11:23
Arun Bhalla24-Sep-03 11:23 
GeneralLimiting characters entered into a textbox Pin
ecopilot24-Sep-03 6:24
ecopilot24-Sep-03 6:24 
GeneralRe: Limiting characters entered into a textbox Pin
Wjousts24-Sep-03 6:41
Wjousts24-Sep-03 6:41 
GeneralMore data binding wierdness Pin
Wjousts24-Sep-03 5:36
Wjousts24-Sep-03 5:36 
Generalcanonicalize a URL Pin
24-Sep-03 5:12
suss24-Sep-03 5:12 
GeneralRe: canonicalize a URL Pin
J. Dunlap24-Sep-03 8:50
J. Dunlap24-Sep-03 8:50 
GeneralRe: canonicalize a URL Pin
Blake Coverett24-Sep-03 13:39
Blake Coverett24-Sep-03 13:39 

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.