DB problem running the sample project
I'm not really a SQLExpress guy, so not sure what's going on here
I just loaded the Sample project via the startup app..set the WebApp as the startup project and hit Run...but after the licensing ran I cant get anywhere...keeps crashing out saying it cant get to the SqlExpress DB
Server Error in '/' Application.
A network-related or instance-specific error
occurred while establishing a connection to SQL Server. The server was
not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)
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: Telerik.OpenAccess.RT.sql.SQLException:
A network-related or instance-specific error occurred while
establishing a connection to SQL Server. The server was not found or was
not accessible. Verify that the instance name is correct and that SQL
Server is configured to allow remote connections. (provider: SQL Network
Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[SQLException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps) +1244
OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon() +383
[DataStoreException: Unable to reach database server on host '.'.
Error Details:Unable to connect to Backend=mssql;Driver=genericADO2;Server=.;Instance=SQLExpress;Database=-;Integrated Security=true;AttachDBFilename=C:\Program Files (x86)\Telerik\Sitefinity 4.0\Samples\CS\SitefinityWebApp\App_Data\Sitefinity.mdf;:
Telerik.OpenAccess.RT.sql.SQLException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps)
at OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon()
DBDriver: Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver
LOCK_TIMEOUT=5000
useUTCForReads=1
]
DynamicModule.ns.Wrapped_OpenAccessPageProvider_cb6e1da1a60546319858d47c4b44f821.Initialize(String providerName, NameValueCollection config, Type managerType) +281
Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2706
Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +117
Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +407
Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +249
Telerik.Sitefinity.Data.ManagerBase`1..ctor() +37
Telerik.Sitefinity.Modules.GenericContent.ContentManagerBase`1..ctor() +28
Telerik.Sitefinity.Modules.ControlManager`1..ctor() +29
Telerik.Sitefinity.Modules.Pages.PageManager..ctor() +44
Telerik.Sitefinity.Modules.Pages.PageManager..cctor() +60
[TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Modules.Pages.PageManager' threw an exception.]
Telerik.Sitefinity.Modules.Pages.PageManager.GetManager(String providerName) +0
Telerik.Sitefinity.Web.SiteMapBase.Initialize(String name, NameValueCollection attributes) +1235
Telerik.Sitefinity.Web.SiteMapBase.GetSiteMapProvider(String rootName) +372
Telerik.Sitefinity.Web.SitefinitySiteMap.GetCurrentProvider() +60
Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase httpContext) +112
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +285
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Steve,
Please take a look at OpenAccessException where the same issue has already been discussed.
Kind regards,
Ivan Dimitrov
the Telerik team