HighTechTalks DotNet Forums  

SQL ASSEMBLY DLL CALLING OTHER DLL OBJECT

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss SQL ASSEMBLY DLL CALLING OTHER DLL OBJECT in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
sergio_gomes@hotmail.com
 
Posts: n/a

Default SQL ASSEMBLY DLL CALLING OTHER DLL OBJECT - 04-26-2007 , 11:27 AM






Hi, I have to call a COM object in an SQL job.
I build an assembly from a dll i created but i can't call the COM object from SQL.

sample:
Dim type As System.Type = System.Type.GetTypeFromProgID("Excel.Application")

error:
Msg 6522, Level 16, State 1, Procedure sp_MyCLRProcs, Line 0
A .NET Framework error occurred during execution of user defined routine or aggregate 'sp_MyCLRProcs':
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
System.Security.SecurityException:
at System.Security.CodeAccessSecurityEngine.ThrowSecu rityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at System.Security.CodeAccessSecurityEngine.ThrowSecu rityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at System.Security.CodeAccessSecurityEngine.CheckSetH elper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
at System.Security.CodeAccessSecurityEngine.CheckSetH elper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)
at Integracao_DocsAbertos.Integra_DocsAbertos(String ID)

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.