Server Error : launching SSIS using a webservice and Asp.net

Hey guys,

I have a webservice set up on the same box where my SSIS packages sit at. I have an ASP.net app which calls the webservice. The webservice in turn invokes the ssis package and , I run it on file system.

i keep getting this error

System.Web.Services.Protocols.SoapException was unhandled by user code
Message="Server was unable to process request. ---> That assembly does not allow partially trusted callers."
Source="System.Web.Services"
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at CallDummyWebServ.com.bls.cmndev2.LaunchSSISPackageServiceCS.LaunchPackage(String sourceType, String sourceLocation, String packageName) in D:\Projects\CallDummyWebServ\CallDummyWebServ\Web References\com.bls.cmndev2\Reference.cs:line 78
at CallDummyWebServ._Default.btnSayHello_Click(Object sender, EventArgs e) in D:\Projects\CallDummyWebServ\CallDummyWebServ\Default.aspx.cs:line 26
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I tried to set up the impersonation on both the asp.net 2.0 config and web.config .. but the problem is stil haunting me .. any help or suggestions would be greatly appreciated.





Answer this question

Server Error : launching SSIS using a webservice and Asp.net

  • BurritoSmith

    Vivek Varma wrote:
    Hey Michael . you were right the assemblies calling it had to be fully trusted .. running the webservice under an admin account fixed it .. thanks though ..

    Just to make sure - you do understand the difference between the Windows user account security and .NET code-based security Your code does not need to run under Windows admin to call into SSIS (unless it does any admin stuff), but the code does need "full trust" .NET permissions.



  • Dnieto23

    And to add more info .. I have changed the identity of the application pool the web app is assigned to.

  • sofakng

    Hey Michael . you were right the assemblies calling it had to be fully trusted .. running the webservice under an admin account fixed it .. thanks though ..

  • i00

    I don't see any SSIS-specific error in this call stack. Can you post the code you are using, and find out exactly where it fails

    "Server was unable to process request. ---> That assembly does not allow partially trusted callers." looks like some error unrelated to SSIS, or you are trying to call SSIS from partially trusted caller (if "that assembly" referenced by the error message is SSIS runtime), which is indeed not supported.

  • Server Error : launching SSIS using a webservice and Asp.net