Analysis of two small problems encountered during development

Source: Internet
Author: User

I. A common problem in ASP. NET 2.0 is as follows:

 

When a connection is established to the server, a Failover occurs. When the slave node is connected to SQL Server 2005, the cause of the failure may be that, at the preset level, SQL Server does not allow the slave node to be connected. (Provider: SQL Web interface, error: 26-when searching for a specified server/Website user, the specified website is generated)
Description: exceptions that are not handled in the processes currently required by the Web. Please refer to the heap tracing to obtain the dynamic metadata and production location in the program.

Exception: System. Data. SqlClient. SqlException. When the slave node is connected to SQL Server 2005, the cause of the failure may be that, at the preset level, SQL Server does not allow the slave node to be connected. (Provider: SQL Web interface, error: 26-when searching for a specified server/Website user, the specified website is generated)

The reason for this problem is that, in the case of a temporary statement, SQL Express does not enable local connections, but only enables local connections. The solution is as follows:

 

The security of QL Server2005 is limited to local connections, and no remote connections are enabled;
Method for opening the producer terminal:
Start-> All Programs-> ms SQL Server2005-> Configuration tool-> ms SQL Server2005 application configurator-> server and zookeeper application configurator->
Select Local Connection and local connection under Database Engine. Use "TCP/IP and name pipes" at the same time"
Select local connections and local connections under Analysis Services"
Reuse of resources after application

 

2. When using SqlPersistenceService of workflow, I began to find that I could not connect to the resource without any further discussion. Later I found that I wanted to enable MSDTC.

The full coverage of MSTDC is Distributed Transaction Coordinator, which is included in server service management. the role is to handle transactions that span multiple resource administrators, such as information indexes, interest distribution columns, and Case systems.

This service cannot solve the above problem. In the past, there was another place to configure

 

Open "management tools-component services" to activate "component services-e-commerce", and click "my computers" on the right. In the MSDTC selection card, click "Security Configuration" and press "renew.
Perform the following settings in the security configuration dialog box:

Select "Web DTC FAQs"

Select "allow remote system management"

Select "Allow inbound", "Allow outbound", and "do not require access to the certificate" in the event management channel"

DTC Registration Certificate: NT Authority \ NetworkService

 

The above is a small problem I encountered during development. I made a mark so that I could not go on the road again later.

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.