Running GraffitiCMS with Visual Studio first time

Dec 12, 2009 at 4:19 AM

Server Error in '/' Application.

Could not find file 'C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Web\App_Data\Graffiti.mdb'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Could not find file 'C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Web\App_Data\Graffiti.mdb'.

Source Error:

Line 142:			Guid marker = DbTrace.GetMarker();
Line 143: DbCommand command = GetCommand(marker, cmd, GetConnection());
Line 144: command.Connection.Open();
Line 145: DbTrace.Write(marker, "Connection Open");
Line 146: IDataReader dr = command.ExecuteReader(CommandBehavior.CloseConnection);

Source File: C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\DataBuddy\DataProvider.cs    Line: 144

Stack Trace:

[OleDbException (0x80004005): Could not find file 'C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Web\App_Data\Graffiti.mdb'.]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +971945
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4866464
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.OleDb.OleDbConnection.Open() +40
DataBuddy.DataProvider.ExecuteReader(QueryCommand cmd) in C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\DataBuddy\DataProvider.cs:144
DataBuddy.DataService.ExecuteReader(QueryCommand cmd) in C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\DataBuddy\DataService.cs:64
DataBuddy.Query.ExecuteReader() in C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\DataBuddy\Query.cs:201
Graffiti.Core.RolePermissionsCollection.FetchAll() in C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Core\Data\databuddy.cs:5182
Graffiti.Core.RolePermissionManager.GetRolePermissions() in C:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Core\Data\RolePermissionManager.cs:36
ASP.global_asax.Application_Start(Object sender, EventArgs e) in c:\Websites\GraffitiCMS Source\graffiticms-30915\Trunk\src\Graffiti.Web\Global.asax:18

Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016

Dec 12, 2009 at 5:49 PM

Did you get Graffiti.mdb from trunk/data and copy it to the AppData folder?  I don't believe it is there by default since you don't have to use it as your data source.


Dec 12, 2009 at 9:46 PM

Correct. You are going to have to go through the setup steps for the database. 

This is a change from how we used to manage the project (we used to default to VistaDB) so this may need to be tweaked and some docs will likely need to be updated. 


Dec 21, 2009 at 5:33 PM

Just ran into the same thing.  And also ran into the fact that the Telligent.* dlls are not in the source tree.  A README in the root of the Trunk would be nice.


Dec 29, 2009 at 9:00 PM

I have just put together a small blog post on the process I went through to get it running for the first time. Maybe this will help others to get started.

Dec 30, 2009 at 5:32 AM

Thanks for the suggestions, and for the nice write up Mykre.

I updated the root and data read me files with much clearer and more detailed instructions on how to get started, including the extra assemblies and database setup.