StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
TargetParameterCountException when running the DDT via a c#...
TargetParameterCountException when running the DDT via a c# application
Post Reply
Like
0
TargetParameterCountException when running the DDT via a c#...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Cory Cookson
Cory Cookson
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 30,
Visits: 416
Hi all,
We have created a custom application which deploys a DDT package. This has worked fine until the 1.7.3 upgrade.
The application does implement the
ISynchronizeInvoke
interface.
We are seeing that OnPreDeploymentScriptExecutionStarted gets fired off through the Invoke method (actually using a dynamicInvoke) and then a short time later Invoke is called again with an ErrorReached method.
Below is the error:
TargetParameterCountException
Parameter count mismatch.
Source : mscorlib
Stack Trace:
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at OHR.DeployDDT.DDTDeployment.Invoke(Delegate method, Object[] args) in C:\Projects\SYSTOC.NET\MAIN\Utilities\CommandLineDDT\OHR.CommandLineDDT\DDTDeployment.cs:line 642
at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.OnPreDeployScriptExecutionStarted(Object sender, EventArgs e)
at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.ExecutePreProfileScripts()
at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.EnsureDatabases()
at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.DeployMetaDataThread()
Any help you can give would be greatly appreciated.
-Cory
Cory Cookson
Software Developer
Occupational Health Research
Tags
DDT
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
TargetParameterCountException when running the DDT via a c#...
Cory Cookson
-
14 Years Ago
Hi Cory. Isn't there any parameter being missed?
Ivan George Borges
-
14 Years Ago
Hi Ivan and thanks for the reply, No we don't call anything directly...
Cory Cookson
-
14 Years Ago
Hi Cory. Version 1.7.3 has introduced some new porperties and events....
Ivan George Borges
-
14 Years Ago
here is a code snippet but really it's just from the...
Cory Cookson
-
14 Years Ago
Working on it, Cory. Trying to check if changes on 1.7.3 demanded new...
Ivan George Borges
-
14 Years Ago
Cory, there were events that get raised, but they use the...
Ivan George Borges
-
14 Years Ago
At this time setting InvokeRequired to False has resolved the issue...
Cory Cookson
-
13 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search