So I believe this problem started when I deleted a dataset and brought it back into Visual Studio 2013. I'm using a mysql backend with this application, so I have the dotconnect for mysql extension. The connection string I was using worked perfectly fine until I redid the dataset. Here is my app.config:
(Don't worry, this application is on an intranet with no internet connection whatsoever, that's why I left the whole connection string).Code:<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </configSections> <connectionStrings> <add name="RMSteel.My.MySettings.RMSteelConnectionString" connectionString="User Id=rmsteel;Password=password;Host=192.168.0.46;Database=RMSteel;Persist Security Info=True" providerName="Devart.Data.MySql" /> </connectionStrings> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>
So the build succeeds but after the build when it is loading the first form that's when it fails. I have been fiddling around with different things. This line works when the form loads:
And this line is where it throws the errors:Code:MsgBox(RMSteel.My.Settings.RMSteelConnectionString)
These are the first two lines in the form load function.Code:Me.EmployeeTableAdapter.Fill(Me.RMSteelDataSet.Employee)
I'm really at a loss here, and need to get this fixed since I've done a ton of work on this application already. I'm the only developer here so I don't have a superior to ask.
Any help is greatly appreciated. I did a stack overflow post but no one has answered, I will link to it just in case there is extra info there.
http://stackoverflow.com/questions/2...ot-initialized




Reply With Quote
