C # -- Integrated Security = SSPI in Web. config,Problem cause
In the past, the configuration file was used to access the database when the charging system of the IDC room was restructured. For example:
string="server=localhost;database=pubs;uid=sa;password=123456"
During the two days of learning MVC, when setting the configuration file, we found that another method is used to link the database:
connectionString="Data Source=(LocalDb)\v11.0;Init
Label:This kind of mistake is really a headache, if you encounter it is not a headache, please first look at Microsoft to give the error of this KB811889. In general, I encountered this kind of error is directly give up, rerun Sysprep and then install the required software again. However, I have no way to return this time. It took several days to try to solve a SQL mirror problem, and the result of SQL Mirror resolved, resulting in this "cannot Generate SSPI
Two Methods: User Name + Password
For example, string = "Server = localhost; database = pubs; uid = sa; Password = 11 ";
The other is to use Windows verification,
It has integrated Windows security authentication methods, such as your sspi,
Therefore, you do not need to enter the password or access the database, that is, you have the permission to access windows, that is, you have the permission to access it.
*************************************
origin of the problemBefore the computer room toll system personal reconfiguration, the configuration file access to the database, using this way, such as: String= "server=localhost;database=pubs;uid=sa;password=123456"During the two days of learning MVC, when setting up a configuration file, it was found that linking the database was another way: Connectionstring= "Data source= (LocalDb) \v11.0;initial catalog=aspnet-mvcmovie-20141126170450;integrated Security=
string [email protected]"server= (local) \sqlexpress;database=adventureworks;integrated Security=sspi";The integrated SECURITY=SSPI Security Support Provider interface in is a common API that defines a comprehensive food to validate,Integrated security services such as Microsoft Information Integrity, information privacy, and security services for all distributed application protocols. The designer of the a
Both servers, like the environment, use the same domain account. SERVER03 SQL Server can connect to Server04 through Windows authentication, but Server04 through Windows Authentication Connection SERVER03 times the following error:The target principal name is incorrect and the SSPI context cannot be generated.PING Server03 or Ping-a Server03, it all looks normal, where exactly is the problem? The SSPI conte
Tags: security password inux als link ted Str sql useArticle reprint source http://www.linuxidc.com/Linux/2015-02/114085.htm When you do the C # Connection database today, use normal link mode as usual. Eg:connstr = "server=***;uid=***;p wd=***;d atabase=***;" And also tried a lot of other connection methods, did not successfully connect to the database, because the link is the company's database, others said to add domain ... (Do not know what), finally added a integrated Security =
Once, I encountered the problem of "Cannot generate SSPI context" reported by connecting to the database. After Google, the solution looks a lot complicated.
As a result, a service called "DNS Server" on DC was not started.
Start this service and the problem is solved.
Hope it will help you.
References
================
Http://blogs.msdn.com/ B/SQL _protocols/archive/2005/10/19/482782.aspx
Http://support.microsoft.com/kb/843248
Http:/
When designing SSIS and debugging, we found that:
[Connection Manager "sandbox. oledb"] error: SSIS error code dts_e_oledberror. An ole db error has occurred. Error code: 0x80004005.
An ole db record is available. Source: "Microsoft SQL Server native Client 10.0" hresult: 0x80004005 Description: "cannot generate sspi context ".
An ole db record is available. Source: "Microsoft SQL Server native Client 10.0" hresult: 0x80004005 Description: "SQL SER
Both servers, like the environment, use the same domain account. 1 of SQL Server can connect through Windows authentication to 2, but 2 through Windows Authentication Connection 1 times the following error:The target principal name is incorrect and the SSPI context cannot be generated.PING 1 or Ping-a 1, it all looks normal, where exactly is the problem? The SSPI context could not be generated for many reas
Tags: management generate principal server targetThe following error is prompted when using an IP connection with SQL Server Management Studio:SQL Server 2008r2:the target principal name is incorrect. Cannot generate SSPI contextWorkaround:CMD Execution (note Administrator permissions Run):Setspn-a mssqlsvc/dbservername: 1433 dbservernameThis article is from the "Restart ing" blog, please be sure to keep this source http://winter2014.blog.51cto.com/15
Since: http://www.vckbase.com/document/viewdoc? Id = 212
The purpose of this article is to provide a programming guide for programmers who have just come into contact with COM and help them understand the basic concepts of COM. The content includes the com standard introduction, important com terms, and how to reuse
Original: Http://www.codeproject.com/Articles/633/Introduction-to-COM-What-It-Is-and-How-to-Use-ItThe purpose of this article is to provide programming guidance to programmers who have just contacted COM and to help them understand the basic concepts of COM. The content includes a description of the COM specification ,
1, COM +
Because of historical reasons, COM, DCOM and MTS are not very harmonious with each other, it is difficult to form a unified whole. COM + has effectively unified these three, forming a new, powerful component architecture.
COM + is not a new version of COM, but a n
The purpose of this article is to provide programming guidance to programmers who have just contacted COM, and to help them understand the basic concepts of COM. The content includes a brief introduction to COM specifications, important COM terminology, and how to reuse existing CO
COM objects are encapsulated entities that provide services to users. This should be similar to the Class Object in C ++. But sometimes the COM object is treated as the class that provides services. The COM Object also encapsulates the data and provides interfaces. But there are some differences with the class. The data in the class can be declared as public, and
This article provides a programming guide to the programmers who just contacted COM, explaining the inside of the COM server and how to write your own interface in C + +.
Following the introduction of previous COM programming, this article discusses the content of COM servers, explains the steps and knowledge needed t
Difference Author: Sunwen translation
All the best programmers do their best to make their written programs more reusable, because it allows you to quickly write more robust and scalable programs.
There are two choices to make code reusable:
1. White box: The simplest one is to copy your program to another file.
2. Black box: It involves connecting a compiled piece of the program. So the compiled black box class library that the client can invoke is called a component.
. NET also provides dev
Part of this section requires the reader to be familiar with the message invocation principle of COM, and the principle of this is as shown in Mr. Yang's column.
Previous content:
COM Server--> COM client
...
COM server-->. NET Client
1, P/invoke
2, COM Interop (conten
1, the object-oriented system of the three most basic characteristics
Encapsulation, polymorphism, reusability.
2, COM characteristics of the overview
The encapsulation characteristics of COM objects are very thorough, all object state information must be accessible through an interface, while COM polymorphism is fully represented by the interface, and
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.