Hi guys,
I'm developing a Winforms application (C#, .NET 2.0) with VS 2008.
All of a sudden the designer tells me the
The ConnectionString property has not been initialized.
when I open one of my forms.
This is the corresponding call stack:
at System.Data.OleDb.OleDbConnection.PermissionDemand()
at System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection outerConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteSingleRowRetrievalQuery(IRetrievalQuery queryToExecute, ITransaction containingTransaction, IEntityFields fieldsToFill, IFieldPersistenceInfo[] fieldPersistenceInfos)
at SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.PerformFetchEntityAction(IEntity entityToFetch, ITransaction containingTransaction, IPredicateExpression selectFilter, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields)
at eposbox2_DAL.DaoClasses.Lok_BenutzerDAO.FetchLok_BenutzerUsingUCBen_BenSl(IEntity entityToFetch, ITransaction containingTransaction, String ben_BenSl, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields) in P:\SVN\Explidia\eposbox2\DAL\DaoClasses\Lok_BenutzerDAO.cs:line 67
at eposbox2_DAL.EntityClasses.Lok_BenutzerEntity.FetchUsingUCBen_BenSl(String ben_BenSl, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields) in P:\SVN\Explidia\eposbox2\DAL\EntityClasses\Lok_BenutzerEntity.cs:line 382
at eposbox2_DAL.EntityClasses.Lok_BenutzerEntity.FetchUsingUCBen_BenSl(String ben_BenSl) in P:\SVN\Explidia\eposbox2\DAL\EntityClasses\Lok_BenutzerEntity.cs:line 343
at eposbox2.BAL.Benutzer..ctor(String pBenSl) in P:\SVN\Explidia\eposbox2\APP\BAL\Benutzer.cs:line 245
at eposbox2.BAL.ApplicationManager..cctor() in P:\SVN\Explidia\eposbox2\APP\BAL\ApplicationManager.cs:line 92
All I'm doing in Benutzer.cs line 245 is:
public Benutzer(string pBenSl)
{
_Entity = new Lok_BenutzerEntity();
_Entity.FetchUsingUCBen_BenSl(pBenSl); <--- line 245
What I don't understand: this happens while I'm in design mode. On runtime everything is fine. And this stuff has not been a problem for weeks. Suddenly just appeared.
Has anybody experienced such a problem before?