Check that the DBTYPE node database type in Dnt.config is correct for example: SQL Server access MySQL

Source: Internet
Author: User
Tags stack trace

Please check that the DBTYPE node database type is correct in dnt.config, for example, SQL Server, Access, MYSQL

Note: An unhandled exception occurred during the execution of the current Web request. Check the stack trace for more information about the error and where the error occurred in the code. Exception Details: System.Exception: Check that the DBTYPE node database type is correct in Dnt.config, for example: SQL Server, Access, MYSQL source error:

An unhandled exception was generated during the execution of the current Web request. You can use the following exception stack trace to determine information about the cause of the exception and where it occurred.

Stack trace:

[Exception: Please check that the DBTYPE node database type is correct in Dnt.config, for example: SQL Server, Access, MYSQL] Discuz.Data.DatabaseProvider.GetProvider () +137 Discuz.Data.DatabaseProvider.. Cctor () +48 [typeinitializationexception: "Discuz.Data.DatabaseProvider" type initializer throws an exception] Discuz.Data.DatabaseProvider.GetInstance () 0 Discuz.Data.Templates.GetValidTemplateIDList () +52 Discuz.Forum.Templates.GetValidTemplateIDList () Discuz.Forum.HttpModule.ReUrl_BeginRequest (object sender, EventArgs v) 1501 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () +68 System.Web.HttpApplication.ExecuteStep (IExecutionStep one step, Brin and completedsynchronously) +75

Version information: Microsoft NET Framework version: 2.0.50727.3655; Asp. NET version: 2.0.50727.3658

See if there's any Discuz.Data.SqlServer.dll in your bin directory.

The problem should be right here.

  Solutions

  1. See if IIS settings are correct

  2.discuz.web have any references to Discuz.Data.SqlServer

  3.dnt.config have administrators control authority

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.