![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am executing a DTS package from asp.net. It works successfully when the code and PackageEventsSink class declaration is in the aspx file however when the code is compilied into a dll I get the error 'Execution was canceled by user'. Does anyone have any ideas as to what the problem could be? Thanks, Suzanne |
#3
| |||
| |||
|
|
Are you using Events? If you google on this message then you will see a response from Euan Garden re: wherever you pass pbCancel ByRef then you must set it to False in the event handler. There are others who have had this error (JP) and have yet to find a solution. I have yet to have it even with packages that fail on other people's Servers. I am always on the lookout for code that fails everytime -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Suzanne Boyle" <suzanneboyle2000 (AT) NOSPAMyahoo (DOT) co.uk> wrote in message news:OPpwEcQ4DHA.3596 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hi, I am executing a DTS package from asp.net. It works successfully when the code and PackageEventsSink class declaration is in the aspx file however when the code is compilied into a dll I get the error 'Execution was canceled by user'. Does anyone have any ideas as to what the problem could be? Thanks, Suzanne |
#4
| |||
| |||
|
|
I am using events and do set the pbCancel to false in the OnQueryCancel event handler. I even tried re-creating the package to make sure no bugs had been compilied into it as was mentioned in another post. "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:eQ4fOjQ4DHA.1724 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Are you using Events? If you google on this message then you will see a response from Euan Garden re: wherever you pass pbCancel ByRef then you must set it to False in the event handler. There are others who have had this error (JP) and have yet to find a solution. I have yet to have it even with packages that fail on other people's Servers. I am always on the lookout for code that fails everytime -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Suzanne Boyle" <suzanneboyle2000 (AT) NOSPAMyahoo (DOT) co.uk> wrote in message news:OPpwEcQ4DHA.3596 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hi, I am executing a DTS package from asp.net. It works successfully when the code and PackageEventsSink class declaration is in the aspx file however when the code is compilied into a dll I get the error 'Execution was canceled by user'. Does anyone have any ideas as to what the problem could be? Thanks, Suzanne |
![]() |
| Thread Tools | |
| Display Modes | |
| |