Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Acces is denied:Loading a generated DLL
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Acces is denied:Loading a generated DLL
Miscellaneous
Thread ID:
00804393
Message ID:
00804393
Views:
62
My system build in runtime a dll of functions (writed by the users), and i need to plug them inside the system for call this functions. Also, i put a reference to 'VFPToolkitNET_VB' because this also need call old VFP code (is pased to the ASP:NET and then a .VB file is generated with the exact VFP functions). So, when try to call to 'VFPToolkitNET_VB' a security error happend...

This system is hosted in a Win2003 Server, no domain controler but part of a domain.

This is part of the code (this call the function)

If FEngine.Compile() Then


FEngine.Run()

' Get the type from the assembly

ModType = FEngine.Assembly.GetType(FEngine.RootNamespace + ".scriptcode", True, True)

' Obtener el metodo

method = ModType.GetMethod("EvaluarFuncion")

'Agregar parametros

If IsNothing(Parametros) = False Then

ReDim Argumentos(Parametros.Count - 1)

Dim oEntrada As DictionaryEntry

i = Parametros.Count - 1

For Each oEntrada In Parametros

Argumentos(i) = oEntrada.Value

i = i - 1

Next

End If

oResultado = method.Invoke(Nothing, Argumentos) '=====ERROR:.................................................................HERE

lError = False

Return oResultado

End If

I can generate in disk rigth the DLL but when i try to call a single funtion, this error appear:


Assembly Load Trace: The following information can be helpful to determine why the assembly 'VFPToolkitNET_VB' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = VFPToolkitNET_VB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///D:/Proyectos/ActiveNet/SitioWeb
LOG: Initial PrivatePath = bin
Calling assembly : FuncionesActive2000_2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: VFPToolkitNET_VB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/activenet/4596655c/6c177962/VFPToolkitNET_VB.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/activenet/4596655c/6c177962/VFPToolkitNET_VB/VFPToolkitNET_VB.DLL.
LOG: Attempting download of new URL file:///D:/Proyectos/ActiveNet/SitioWeb/bin/VFPToolkitNET_VB.DLL.




Stack Trace:


[FileLoadException: Access is denied: 'VFPToolkitNET_VB'.]
FuncionesActive2000_2.ENCABEZADO_FACTURASMESValorPorDefecto() +0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess) +0
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess) +422
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +23
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +14
srvConstructorFormsNET.TScriptVB.Evaluar(String NombreFuncion, Hashtable Parametros, Object& oFuncion) in D:\Proyectos\Clases\srvConstructorFormsNET\TScriptVB.vb:119
srvConstructorFormsNET.TDataManager.ResolverFuncion(String lstrNombre, Object ValorPorDefecto, Char TipoDatos) in D:\Proyectos\Clases\srvConstructorFormsNET\TDataManager.vb:363
srvConstructorFormsNET.srvConstructorFormsNET.TAdminForms.Nuevo() in D:\Proyectos\Clases\srvConstructorFormsNET\BuildFormsNET.vb:718
ActiveNet.BarraNavegacion.btnNuevo_Click(Object sender, ImageClickEventArgs e) in D:\Proyectos\ActiveNet\SitioWeb\BarraNavegacion.ascx.vb:85
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Reply
Map
View

Click here to load this message in the networking platform