dbTalk Databases Forums  

Fatal execution engine error during assignment creation

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Fatal execution engine error during assignment creation in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dwaine
 
Posts: n/a

Default Fatal execution engine error during assignment creation - 09-18-2004 , 07:27 PM






receiving the error
"An unhandled exception of type 'System.ExecutionEngineException' occurred
in SQLHelper.exe"

at the end of the following lines in VB.NET (VS2003/1.1):
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As DTSCustTasks.DynamicPropertiesTask
oTask = goPackage.Tasks.New("DTSDynamicPropertiesTask")
oTask.Name = "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3 = oTask.CustomTask

oCustomTask3.Name = "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

oAssignment = oCustomTask3.Assignments.New 'Error occurs HERE

how else would I create an assignment?

any help would be greatly appreciated!


Reply With Quote
  #2  
Old   
dwaine
 
Posts: n/a

Default RE: Fatal execution engine error during assignment creation - 09-18-2004 , 08:07 PM






btw,
the prev mentioned code was taken from the VB6 code generated by the SaveAs
in sql server 2000 and adapted to VB.NET. This code works fine in VB6 on the
same machine. Is this another example of LESS functionality in .NET than its
older brother?,

Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As DTSCustTasks.DynamicPropertiesTask
Set oTask = goPackage.Tasks.New("DTSDynamicPropertiesTask")
oTask.Name = "DTSTask_DTSDynamicPropertiesTask_1"
Set oCustomTask3 = oTask.CustomTask

oCustomTask3.Name = "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

Set oAssignment = oCustomTask3.Assignments.New


"dwaine" wrote:

Quote:
receiving the error
"An unhandled exception of type 'System.ExecutionEngineException' occurred
in SQLHelper.exe"

at the end of the following lines in VB.NET (VS2003/1.1):
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As DTSCustTasks.DynamicPropertiesTask
oTask = goPackage.Tasks.New("DTSDynamicPropertiesTask")
oTask.Name = "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3 = oTask.CustomTask

oCustomTask3.Name = "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

oAssignment = oCustomTask3.Assignments.New 'Error occurs HERE

how else would I create an assignment?

any help would be greatly appreciated!


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Fatal execution engine error during assignment creation - 09-20-2004 , 01:50 PM



Just to let you know i am looking into this and can repro in C#, VB.Net.


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know




Reply With Quote
  #4  
Old   
dwaine
 
Posts: n/a

Default Re: Fatal execution engine error during assignment creation - 09-23-2004 , 12:03 PM



Just curious, Allan, if you had any luck in your research? Also, curious why
no MS rep has joined the discussion. I thought they'd be interested.

I find it unfortunate that an RCW completely fails, where a vb6 component
has no problems. This has put a damper on a .NET project I've been working
on to manage DTS packages in bulk. For now I'm using a simple VB6 dll to
subsidise .NET functionality, but the original idea was a completely managed
assembly.

"Allan Mitchell" wrote:

Quote:
Just to let you know i am looking into this and can repro in C#, VB.Net.


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know





Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default RE: Fatal execution engine error during assignment creation - 09-24-2004 , 10:43 AM



OK So I know why this doesn't work now.

Don't thank me though thank Gert Drapers for finding the
error for me.

http://support.microsoft.com/default.aspx?scid=kb;en-
us;839884

Thanks Gert once again.


Quote:
-----Original Message-----
btw,
the prev mentioned code was taken from the VB6 code
generated by the SaveAs
in sql server 2000 and adapted to VB.NET. This code
works fine in VB6 on the
same machine. Is this another example of LESS
functionality in .NET than its
older brother?,

Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As DTSCustTasks.DynamicPropertiesTask
Set oTask = goPackage.Tasks.New
("DTSDynamicPropertiesTask")
oTask.Name = "DTSTask_DTSDynamicPropertiesTask_1"
Set oCustomTask3 = oTask.CustomTask

oCustomTask3.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As
DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

Set oAssignment = oCustomTask3.Assignments.New


"dwaine" wrote:

receiving the error
"An unhandled exception of
type 'System.ExecutionEngineException' occurred
in SQLHelper.exe"

at the end of the following lines in VB.NET
(VS2003/1.1):
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As
DTSCustTasks.DynamicPropertiesTask
oTask = goPackage.Tasks.New
("DTSDynamicPropertiesTask")
oTask.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3 = oTask.CustomTask

oCustomTask3.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As
DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

oAssignment =
oCustomTask3.Assignments.New 'Error occurs HERE

how else would I create an assignment?

any help would be greatly appreciated!

.


Reply With Quote
  #6  
Old   
dwaine
 
Posts: n/a

Default RE: Fatal execution engine error during assignment creation - 09-27-2004 , 10:33 AM



Thanks for the info, don't know how I missed this one.

"Allan Mitchell" wrote:

Quote:
OK So I know why this doesn't work now.

Don't thank me though thank Gert Drapers for finding the
error for me.

http://support.microsoft.com/default.aspx?scid=kb;en-
us;839884

Thanks Gert once again.


-----Original Message-----
btw,
the prev mentioned code was taken from the VB6 code
generated by the SaveAs
in sql server 2000 and adapted to VB.NET. This code
works fine in VB6 on the
same machine. Is this another example of LESS
functionality in .NET than its
older brother?,

Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As DTSCustTasks.DynamicPropertiesTask
Set oTask = goPackage.Tasks.New
("DTSDynamicPropertiesTask")
oTask.Name = "DTSTask_DTSDynamicPropertiesTask_1"
Set oCustomTask3 = oTask.CustomTask

oCustomTask3.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As
DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

Set oAssignment = oCustomTask3.Assignments.New


"dwaine" wrote:

receiving the error
"An unhandled exception of
type 'System.ExecutionEngineException' occurred
in SQLHelper.exe"

at the end of the following lines in VB.NET
(VS2003/1.1):
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup

Dim oCustomTask3 As
DTSCustTasks.DynamicPropertiesTask
oTask = goPackage.Tasks.New
("DTSDynamicPropertiesTask")
oTask.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3 = oTask.CustomTask

oCustomTask3.Name
= "DTSTask_DTSDynamicPropertiesTask_1"
oCustomTask3.Description = "Dynamic Properties"

Dim oAssignment As
DTSCustTasks.DynamicPropertiesTaskAssignment
'------- An Assignment is defined here

oAssignment =
oCustomTask3.Assignments.New 'Error occurs HERE

how else would I create an assignment?

any help would be greatly appreciated!

.



Reply With Quote
Reply




Thread Tools
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.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.