Hi,
I have generated the code, build it, and setup the connectionstring in the app.config,
When i use the generated code i get this exception:
System.InvalidOperationException was unhandled by user code
Message="The ConnectionString property has not been initialized."
Source="System.Data"
StackTrace:
at System.Data.SqlClient.SqlConnection.PermissionDemand()
at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteSingleRowRetrievalQuery(IRetrievalQuery queryToExecute, ITransaction containingTransaction, IEntityFields fieldsToFill)
at SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.PerformFetchEntityAction(IEntity entityToFetch, ITransaction containingTransaction, IPredicateExpression selectFilter, IPrefetchPath prefetchPathToUse, Context contextToUse)
at SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.FetchExisting(IEntity entityToFetch, ITransaction containingTransaction, IPrefetchPath prefetchPathToUse, Context contextToUse)
at bll.EntityClasses.ContentEntity.Fetch(Int32 pageId, IPrefetchPath prefetchPathToUse, Context contextToUse) in C:\Documents and Settings\Administrator\Dokumenter\LLBLGen Pro Projects\EntityClasses\ContentEntity.cs:line 567
at bll.EntityClasses.ContentEntity.InitClassFetch(Int32 pageId, IValidator validator, IPrefetchPath prefetchPathToUse) in C:\Documents and Settings\Administrator\Dokumenter\LLBLGen Pro Projects\EntityClasses\ContentEntity.cs:line 498
at bll.EntityClasses.ContentEntity..ctor(Int32 pageId) in C:\Documents and Settings\Administrator\Dokumenter\LLBLGen Pro Projects\EntityClasses\ContentEntity.cs:line 79
at Admin_Cms.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\Administrator\Dokumenter\VS2005\Mirror\Admin\CmsManage.aspx.cs:line 26
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I've checked the connectionString properties all over, i'm really lost?
Anyone had problems similar to this?
Thanks in advance.
Mark.