Hello
can anyone please help me with this issue.
i have finished chapter 4.
When I run the project i get the error - TargetInvocationException was unhandled by user code.
The following line of code is higlighted in yellow:
Code:
objectType.InvokeMember(LoadMethodName, BindingFlags.InvokeMethod, null, listObject, _methodParameters.ToArray());
tha line should load the object.
I think there is a problem in the web.config file.
I have the following settings for the web.config file
Code:
<connectionStrings>
<add name="EAD_ConnString" connectionString="Server=win4zjrzd08qt7; Initial Catalog=EAD;" providerName=""/>
</connectionStrings>
The EAD_ConnString is a string defined in the DBHelper file and is passed as parameter in the ConnectionStrings method of the ConfigurationManager class as follow
Code:
public class DBHelper
{
private const string EAD_CONNSTRING_KEY = "EAD_ConnString";
public static string GetEADConnectionString()
{
return
ConfigurationManager.ConnectionStrings[EAD_CONNSTRING_KEY].ConnectionString;
}
}
Please help me if you can as i can not run the application and therefore can not test anything.
Thank you
Regards
MattHoff