Error Running Form


Author
Message
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I get the following error when I run my project and since I am a newbie I am not sure where to start on this one.

TIA Terry Bottorff



System.InvalidOperationException was unhandled

Message="An error occurred creating the form. See Exception.InnerException for details. The error is: An error occurred while creating a new DataLayer for the business object."

Source="Lighting"

StackTrace:

at Lighting.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190

at Lighting.My.MyProject.MyForms.get_Customers()

at Lighting.Customers.Main() in C:\Documents and Settings\Terry\My Documents\Visual Studio 2005\Projects\Lighting\Lighting\Customers.Designer.vb:line 2

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()



Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I looks as though you have not setup your connection string in the DataSources collection.  It is trying to create a DataLayer which uses the DataSOurces collection.  You can use the Connection String Wizard or manually add a connection to the data sources.  This will be done in the AppMain.vb or program.cs file depending on which language you are using.  You will want to provide this in the SetDataSources method.  There is quite a bit of documentation regarding setting up a connection string (as well as a number of other posts here on the forum).  But the very first thing to look at would be your connection string in the SetDataSources method of the AppMain.vb file.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search