Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: changing from 1 SQL DB to another SQL DB holding a copy

$
0
0
After editing /Web.config with the new SQL DB address, and checking /App_Data/Composite/Composite.config that the setting is correct, the site now shows an error.

Server Error in '/' Application.

0 writeable data providers exists for data 'Composite.Data.Types.IUrlConfiguration'.

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.InvalidOperationException: 0 writeable data providers exists for data 'Composite.Data.Types.IUrlConfiguration'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
  1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[InvalidOperationException: 0 writeable data providers exists for data 'Composite.Data.Types.IUrlConfiguration'.]
Composite.Data.DataFacadeImpl.AddNew(IEnumerable1 datas, Boolean allowStoreCreation, Boolean suppressEventing, Boolean performForeignKeyIntegrityCheck, Boolean performValidation, List1 writeableProviders) +875
Composite.Data.DataFacadeImpl.AddNew(IEnumerable1 datas, Boolean allowStoreCreation, Boolean suppressEventing, Boolean performForeignKeyIntegrityCheck, Boolean performValidation, List1 writeableProviders) +421
Composite.Data.DataFacade.AddNew(IEnumerable1 collection, Boolean allowStoreCreation, Boolean suppressEventing, Boolean performForeignKeyIntegrityCheck, Boolean performeValidation, List1 writeableProviders) +95
Composite.Data.DataFacade.AddNew(T data) +154
Composite.Core.Routing.HostnameBindingsFacade.Initialize() +228
Composite.Core.WebClient.ApplicationLevelEventHandlers.ApplicationStartInitialize(Boolean displayDebugInfo) +161
Composite.Core.WebClient.ApplicationLevelEventHandlers.Application_Start(Object sender, EventArgs e) +228
ASP.global_asax.Application_Start(Object sender, EventArgs e) +28

[HttpException (0x80004005): 0 writeable data providers exists for data 'Composite.Data.Types.IUrlConfiguration'.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9916977
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): 0 writeable data providers exists for data 'Composite.Data.Types.IUrlConfiguration'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930872
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36283

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>