I'm having issues testing my c# WinForms application with a normal user and a sql express database. I think the SSPI in the connection string is the problem. Edit: The issue is that the connection won't open. Here is the exception I get when logged in as normal user (I don't get this as an admin user where it opens correctly). Login failed for user 'AsusWin7-64SomeUser'.
我遇到问题,用普通用户和sql express数据库测试我的c#WinForms应用程序。 我认为连接字符串中的SSPI是问题所在。 编辑:问题是,连接不会打开。 这是我以普通用户身份登录时得到的异常(我没有将它作为管理员用户在正确打开的位置)。 用户'AsusWin7-64 SomeUser'登录失败。 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException异常,布尔breakConnection)在System.Data.SqlClient.TdsParser
For the past week I've been trying to create a setup of my windows application. I have created a Windows application and I want to install that on client machine. For that I have added Microsoft SQL Server 2008 Express in prerequisites while creating setup project. Now in order to install my database schema that is creating database and tables on client machine, I have created one instal
在过去的一周中,我一直在试图创建我的Windows应用程序的设置。 我创建了一个Windows应用程序,我想在客户机上安装它。 为此,我在创建安装项目的前提下添加了Microsoft SQL Server 2008 Express。 现在为了安装在客户端机器上创建数据库和表的数据库模式,我在项目中创建了一个安装程序类,并在安装程序类的步骤中添加了一个自定义操作refrenced 这是我的连接字符串 Data Source=localhost;Initial Catalog=master;Integ
I have a server that I am connecting to that runs windows 8.1. And it is running SQL Server 2014 Express. I have a C# service that I have written that connects to the database. Unfortunately when it is installed as a service it does not connect throwing an error shown below. I can run the application and it works successfully but when it is a service it does not work. I have enabled TCP/I
我有一台服务器连接到运行Windows 8.1的服务器。 它正在运行SQL Server 2014 Express。 我有一个我编写的连接到数据库的C#服务。 不幸的是,当它作为服务安装时,它不会引发下面显示的错误。 我可以运行该应用程序,它可以成功运行,但是当它是服务时,它不起作用。 我已启用TCP / IP。 我可以通过另一台机器上的vpn将管理工作室连接到实例。 这是来自配置文件的连接字符串 <value>Server=localhostMSSQLSERVE
On Windows Server 2012, I have created a C# Windows service which runs with a service account. In constructor I am reading configuration from a SQL Server database using ADO.NET. When I am trying to start the service, it fails with below exceptions. After a few attempts to start the service, it is getting started. "The wait operation timed outconnection Timeout Expired. The timeout pe
在Windows Server 2012上,我创建了一个以服务帐户运行的C#Windows服务。 在构造函数中,我使用ADO.NET从SQL Server数据库读取配置。 当我尝试启动该服务时,它会失败,并出现以下例外情况。 经过几次尝试启动服务后,该服务即将开始。 “等待操作超时连接超时过期,尝试使用登录前握手确认消失的超时时间。” 以下是来自Logs的异常消息 等待操作超时超时超时。 尝试使用登录前握手确认时超时时间已过。 这可能是因
I have an ASP.NET project and it uses a local .mdf database that is stored in the App_Data folder. I normally publish the website locally to my Desktop then take all files and upload them to asp.net server. after uploading successfully , for someone reasons accessing the database is not possible. I have included in my web.config the connection string for the database <connectionStrin
我有一个ASP.NET项目,它使用存储在App_Data文件夹中的本地.mdf数据库。 我通常将本地网站发布到桌面,然后将所有文件上传到asp.net服务器。 上传成功后,出于某些原因访问数据库是不可能的。 我在web.config中包含了数据库的连接字符串 <connectionStrings> <clear /> <add name="LocalSqlServer" connectionString="Data Source=(LocalDB)v11.0;AttachDBFilename=|DataDirectory|database.
I have an ASP/C#(4.0) app that was been running on my machine for several days. Suddently, in the middle of testing, I got this error. The app does seem to "wait" a short period before throwing the error. I was able to access the server via SQL-Management/Web/RDC/Ping just fine. I tried iisreset, recycling the app pool, and starting/stopping the app pool. Nothing got rid of the err
我有一台ASP / C#(4.0)应用程序在我的机器上运行了好几天。 突然,在测试中,我得到了这个错误。 在抛出错误之前,该应用似乎“等待”了很短的时间。 我能够通过SQL-Management / Web / RDC / Ping访问服务器。 我试过iisreset,回收应用程序池,并开始/停止应用程序池。 重新启动之前,没有任何东西可以摆脱错误。 我假设它与连接池有关,我认为我做错了什么。 这个问题也影响了VS开始调试/等的迷你iis。 我目前无法
I want to use that session state, because Inproc is unreliable. I need to set that mode in the config file, but dont know how.. can someone help me? Exception i got from aspnet_regsql tool xception: Unable to connect to SQL Server database. Details of failure System.Web.HttpException (0x80004005): Unable to connect to SQL Server database. ---> System.Data.SqlClient.SqlException (0x80
我想使用该会话状态,因为Inproc不可靠。 我需要在配置文件中设置该模式,但不知道如何...有人可以帮助我吗? 例外,我从aspnet_regsql工具获得 xception: 无法连接到SQL Server数据库。 失败的细节 System.Web.HttpException(0x80004005):无法连接到SQL Server数据库。 ---> System.Data.SqlClient.SqlException(0x80131904):建立到SQL Server的连接时发生网络相关或实例特定的错误。 服务器未找到或无法访
want to run exe from asp.net on my server, is this possible? I use this method: System.Diagnostics.Process process1 = new System.Diagnostics.Process(); // Set the directory where the file resides process1.StartInfo.WorkingDirectory = @"D:devAnalyzerbinRelease"; // Set the filename name of the file you want to open process1.StartInfo.FileName = @"D:devAnalyzerbinReleaseAna
想在我的服务器上运行asp.net,这可能吗? 我使用这种方法: System.Diagnostics.Process process1 = new System.Diagnostics.Process(); // Set the directory where the file resides process1.StartInfo.WorkingDirectory = @"D:devAnalyzerbinRelease"; // Set the filename name of the file you want to open process1.StartInfo.FileName = @"D:devAnalyzerbinReleaseAnalyzer.exe"; process
I have put up with this bug for a while but it have reached its limit of acceptance. I have a login control that works "fine". fine meaning it authenticates most often successfully but at other times i try to log in and its like i hit an invisible wall. "Server Error in '/' Application. Cannot open user default database. Login failed. Login failed for user 'Selase-PC
我已经忍受了一段时间的这个bug,但已经达到了接受的极限。 我有一个“罚款”的登录控制。 这意味着它通常能够成功地进行身份验证,但在其他时候,我尝试登录,并且像我打了一道无形的墙。 “'/'应用程序中的服务器错误无法打开用户默认数据库登录失败用户'Selase-PC Selase'登录失败。” 我想我可以等几分钟,然后再次尝试,因为它会在一段时间后再次成功登录,但这已经超出了接受范围。 我不能再等它了,我
i have made a web service, it has two web methods, one method uses an xml file to get the data, and other uses a database on my machine, first method is working fine but when i call the second method using an object of the webservice from my aspx page, i am getting the below mentioned exception, i am a beginner on this and have wasted a lot of time sorting the problem, so now want the help of you
我做了一个web服务,它有两个web方法,一个方法使用xml文件来获取数据,另一个使用我的机器上的数据库,第一个方法工作正常,但是当我调用第二个方法使用web服务从我的aspx页面,我得到了下面提到的异常,我是一个初学者,并浪费了很多时间排序问题,所以现在想要你的经验帮助.. System.Data.SqlClient.SqlException:用户'D-11083 ASPNET'的登录失败。 在System.Data.SqlClient.SqlInternalConnection.OnError(Sql