Line 984: throw new ProviderException("Unable to load default BlogProvider"); version 3.1

Topics: Business Logic Layer, Controls, Themes
Dec 19, 2014 at 4:47 PM
Edited Dec 20, 2014 at 2:46 PM
Line 982: if (_provider == null)
Line 983: {
Line 984: throw new ProviderException("Unable to load default BlogProvider");
Line 985: }
Line 986: }


<sectionGroup name="BlogEngine">
  <section name="blogProvider" requirePermission="false" type="BlogEngine.Core.Providers.BlogProviderSection, BlogEngine.Core" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
  <section name="blogFileSystemProvider" requirePermission="false" type="BlogEngine.Core.Providers.BlogFileSystemProviderSection, BlogEngine.Core" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
</sectionGroup>
</configSections>
<BlogEngine>
<blogProvider defaultProvider="XmlBlogProvider" fileStoreProvider="XmlBlogProvider">
  <providers>
    <add description="Xml Blog Provider" name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider, BlogEngine.Core" />
    <add connectionStringName="BlogEngine" description="Sql Database Provider" name="DbBlogProvider" type="BlogEngine.Core.Providers.DbBlogProvider, BlogEngine.Core" />
  </providers>
</blogProvider>
<blogFileSystemProvider defaultProvider="XmlBlogProvider">
  <providers>
    <add description="Xml Blog Provider" name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlFileSystemProvider, BlogEngine.Core" />
    <add storageVariable="BlogEngine" description="Sql Database Provider" name="DbBlogProvider" type="BlogEngine.Core.Providers.DbFileSystemProvider, BlogEngine.Core" />
    <!--<add storageVariable="\\UNCPath\BlogFiles" description="UNC Path Provider" name="UNCBlogProvider" type="BlogEngine.Core.Providers.UNCFileSystemProvider, BlogEngine.Core"/>-->
  </providers>
</blogFileSystemProvider>
</BlogEngine>
<connectionStrings>
<clear />
<add name="BlogEngine" connectionString="Data Source=JOSEPH-PC\OYILATECH;User ID=blog1;Password=blog1;persist security info=False;initial catalog=blog;" providerName="System.Data.SqlClient" />
<!--<add name="BlogEngine" connectionString="Data Source=localhost;User ID=usernmae;Password=password;persist security info=False;initial catalog=BlogEngineFileStore;" providerName="System.Data.SqlClient"/>-->
</connectionStrings>
Marked as answer by oyilatech on 12/20/2014 at 6:43 AM
Dec 20, 2014 at 2:47 PM
<sectionGroup name="BlogEngine">
  <section name="blogProvider" requirePermission="false" type="BlogEngine.Core.Providers.BlogProviderSection, BlogEngine.Core" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
  <section name="blogFileSystemProvider" requirePermission="false" type="BlogEngine.Core.Providers.BlogFileSystemProviderSection, BlogEngine.Core" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
</sectionGroup>
</configSections>
<BlogEngine>
<blogProvider defaultProvider="DbBlogProvider" fileStoreProvider="XmlBlogProvider">
  <providers>
    <add description="Xml Blog Provider" name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider, BlogEngine.Core" />
    <add connectionStringName="BlogEngine" description="Sql Database Provider" name="DbBlogProvider" type="BlogEngine.Core.Providers.DbBlogProvider, BlogEngine.Core" />
  </providers>
</blogProvider>
<blogFileSystemProvider defaultProvider="XmlBlogProvider">
  <providers>
    <add description="Xml Blog Provider" name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlFileSystemProvider, BlogEngine.Core" />
    <add storageVariable="BlogEngine" description="Sql Database Provider" name="DbBlogProvider" type="BlogEngine.Core.Providers.DbFileSystemProvider, BlogEngine.Core" />
    <!--<add storageVariable="\\UNCPath\BlogFiles" description="UNC Path Provider" name="UNCBlogProvider" type="BlogEngine.Core.Providers.UNCFileSystemProvider, BlogEngine.Core"/>-->
  </providers>
</blogFileSystemProvider>
</BlogEngine>
<connectionStrings>
<clear />
<add name="BlogEngine" connectionString="Data Source=JOSEPH-PC\OYILATECH;User ID=blog1;Password=blog1;persist security info=False;initial catalog=blog;" providerName="System.Data.SqlClient" />
<!--<add name="BlogEngine" connectionString="Data Source=localhost;User ID=usernmae;Password=password;persist security info=False;initial catalog=BlogEngineFileStore;" providerName="System.Data.SqlClient"/>-->
</connectionStrings>
Marked as answer by oyilatech on 12/20/2014 at 6:47 AM