Windows error 0x80131904, -2146232060

Detailed Error Information

COR_E_SqlException[1]

Comment System.Data.SqlClient.SqlClientException

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code6404 (0x1904)

Questions

275votes
15answers

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated

I have many users on my web site (20000-60000 per day), which is a download site for mobile files. I have remote access to my server (windows server 2008-R2). I've received "Server is unavailable" errors before, but am now seeing a connection timeout error. I'm not familiar with this - [...] read more
c#
asp.net
sql-server-2008-r2
timeout
sqlcommand
154votes
7answers

"The certificate chain was issued by an authority that is not trusted" when connecting DB in VM Role from Azure website

I am experiencing error when connecting MY DB which is in VM Role(I have SQL VM Role) from Azure Website. Both VM Role and Azure Website are in West zone. I am facing following issue: > SqlException (0x80131904): A connection was successfully established with the server, but then an error [...] read more
azure-web-roles
azure-vm-role
97votes
16answers

There is already an object named in the database

Update-Database failed from Package Manager Console. I've used Entity Framework 6.x and code-first approach. Error is "There is already an object named 'AboutUs' in the database." How can I solve this problem? internal sealed class Configuration : DbMigrationsConfiguration<Jahan.Blog.Web.Mvc.Models.JahanBlogDbContext> { public Configuration() { AutomaticMigrationsEnabled = true; AutomaticMigrationDataLossAllowed = false; } protected [...] read more
database
entity-framework
ef-code-first
entity-framework-6
ef-migrations
55votes
15answers

Error message: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

I am trying to deploy my website on windows server 2003. Am i missing something or what is wrong from the following error message, how can I correct it? Thank I am having the error message: > A connection was successfully established with the server, but then an error occurred [...] read more
sql
asp.net-mvc
windows-server-2003
sql-server-2005-express
54votes
7answers

How to add LocalDB to Visual Studio 2015 Community's SQL Server Object Explorer?

PROBLEM I don't understand how to make LocalDB show up in the SQL Server Object Explorer. On some VMs, it shows up automatically, on some other VMs, it doesn't. Still, after googling for hours, I don't get it. CURRENT SITUATION 1. I have a clean VM 2. I installed Visual [...] read more
sql-server
visual-studio-2015
localdb
22votes
6answers

EF Code First - Timeout expired. The timeout period elapsed prior to completion

Apology for this strangely worded question. I don't know what the actual problem is but hopefully someone can give me some insights. I am getting the following error when trying to run migrations: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not [...] read more
c#
sql-server
entity-framework
ef-migrations
8votes
4answers

Sql Exception With .net 4 & EF

we are using .net 4 MVC2 with EF & Sql Server 2005. For some requests, and it happens rarely, and only when we are doing search which is implemented with classes mapped to stored procedures performing full text search, we get the exception: [SqlException (0x80131904): Timeout expired. The timeout period [...] read more
.net
entity-framework-4
8votes
3answers

Renaming Identity tables with EF6 Migrations Failing

I'm trying to rename my Identity 2.0 tables via the Migrations tool in EF6/Package Manager. However, it's blowing up a part of the way through. I'm simply calling the following piece of code after the "ApplicationDBContext Create" in IdentityModels.cs: protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<IdentityUser>().ToTable("Users"); modelBuilder.Entity<IdentityRole>().ToTable("Roles"); modelBuilder.Entity<IdentityUserRole>().ToTable("UserRoles"); modelBuilder.Entity<IdentityUserLogin>().ToTable("UserLogins"); [...] read more
sql-server
asp.net-mvc
entity-framework
entity-framework-6
6votes
2answers

Math Absolute In Ef Core?

I am trying to build a query like this var d = dbContext.Picks .Where( /* some conditions */ ) .GroupBy(x => new { gameDiff = x.Schedule.GameTotal.Value - x.TieBreakerScore.Value }) .Select(g => new { name = g.Key.firstname, count = g.Count(), gameDiff = Math.Abs(g.Key.gameDiff) }) .OrderByDescending(x => x.count) .ThenBy(x => x.gameDiff) .Take(top) [...] read more
c#
entity-framework
asp.net-core
ef-core-2.2
6votes
3answers

remote procedure call (RPC) protocol stream is incorrect

I use entityframework 5.0. I have so many test. If I run a test alone it passes, if I run this with the others eachother in the same time, it does not pass. There is no contact between the tests. Everytime one same query was sent. It would not be [...] read more
c#
.net
wpf
entity-framework
tsql
5votes
1answer

Error connecting to MS SQL from one server but not the other

We got a MS SQL server and two web site servers. I'm in the process of moving all the sites from one of the web site servers to the new one. My asp.net sites are not able to connect to the external ms sql server after I've moved them to [...] read more
sql-server
iis
web-server
windows-server-2012
5votes
2answers

SQL Server 2008 R2 Express + Wildcard SSL Certificate

Wildcard certificates (for example, *.example.com) simply did not work in SQL Server 2008 or lower. But Encrypting Connections to SQL Server on MSDN states, plain as day, that > SQL Server 2008 R2 supports wildcards certificates. Excellent. So I set up SQL Server 2008 R2 Express on a machine, and [...] read more
sql-server-2008
ssl-certificate
5votes
2answers

Entity Framework "The wait operation timed out" on simple DeleteAll

We have an MVC web application that I inherited that loads, let's call it MyCategory and all of its children into a webform, takes edit, then saves on save clicked. The way the application works is to first delete all data for the parent level entity in the model, then [...] read more
asp.net
sql-server
entity-framework
linq
5votes
6answers

SQL Server Agent - SSIS Package - Error 0x80131904 - Timeout expired

There's been a string of random occurrences of the following error in the SQL Server Agent scheduled jobs lately that I have been unable to find a solution to. The error occurs infrequently, but usually once a week for a daily scheduled job, but in any number of different jobs [...] read more
sql-server
ssis
sql-server-2012
sql-server-agent
5votes
1answer

Entity Framework throws exception on updates only - Invalid object name 'dbo.BirdBrain.service'

I've created an EF Core model from an existing database and all operations on entities work EXCEPT for updates; on updates EF Core is using an incorrect database name. eg. When I perform an update I get a SqlException: Invalid object name 'BirdBrain.dbo.services'.. BirdBrainContext is the name of my DbContext, [...] read more
c#
sql
sql-server
entity-framework
ef-core-2.2
4votes
1answer

Random connection failures between IIS8 and MSSQL 2012 in RackSpace Cloud

Background For years I hosted all of my server functionality, including IIS, Apache, MySql, and MSSQL on a single server instance, yikes! As my client base grew this led to persistent SQL Timeouts when the server got busy. Over the past year I've reorganized this into three servers, one Windows [...] read more
windows-server-2012
timeout
sql-server-2012
iis-8
.net-4.0
4votes
2answers

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' Possible Connection String Issue?

I'm attempting to deploy my first MVC application and I keep running into issues revolving around connecting to my sql server database. My current problem is that when I try to publish the site, I'm greeted with: SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. What I'm not sure [...] read more
iis
asp.net-mvc-4
ef-code-first
sql-server-2012
web-deployment
4votes
1answer

Specified network name no longer available when connecting to SQL Server in .NET

I reinstalled my main work pc, but didn't reinstall visual studio after 5 months. Now i did and started my old project, and now it doesn't run. I get a timeout error when connecting to SQL Server, so i increased the timeout in the connectionstring and now i get the [...] read more
c#
sql-server
visual-studio-2015
4votes
2answers

How to get rid of deadlock in a SQL Server 2005 and C# application?

I have a code in C# for windows service which is mainly responsible to update records in a table in my database, but I get always a lot of errors in my log, all errors are about deadlock of resource, This is the error: > System.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID [...] read more
c#
sql-server
sql-server-2005
deadlock
4votes
3answers

Can't connect to my own MDF file. Cannot open user default database. Login failed.Login failed for user... and other errors

SQLSEXPRESS service IS running!! I have I program I wrote some time ago and it works. It was written in MS Visual Studio with local MDF file. How is it possible to edit this file from Microsoft SQL Server Management Studio? I don't see this file in the list of [...] read more
sql-server
sharing
mdf
3votes
2answers

How do I disable TLS 1.0 without breaking my IIS/ASP.NET websites?

We are running Windows Server 2008 R2. TLS 1.0 has been non-PCI compliant for some time now, and disabling it via the windows registry is easy. In the past, though, disabling TLS 1.0 has caused 2 problems for us: 1. It's impossible to connect to the server via Remote Desktop. [...] read more
windows-server-2008-r2
iis-6
tls
pci-dss
3votes
0answers

Cannot connect to sql server by IP Address but using the hostname works

After upgrading to the newest version of windows (windows 10 build 10586) I am no longer able to connect to a remote sql server by ip address. Here is the error I see: > [SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake [...] read more
networking
sql-server
windows-10
3votes
0answers

SQL Server 2012 Connection Timeout Expired

I am running MS-SQL Server on Windows Server 2012. From time to time I get this Exception: > Server Exception : System.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and [...] read more
sql-server
windows-server-2012
3votes
1answer

Change data type from int to long of key property in model .net Core 2.2

I want to change the data type of the primary key of a model in ASP.Net core 2.2 from int to long since it is about to run out of the int range. The application was done code-first and uses SQL server as database. Changing the data type in the [...] read more
c#
asp.net-core-mvc
entity-framework-core-2.2
3votes
1answer

EF Migrations - There is already an object named '' in the database

I am having trouble adding a new table to my database. these are the commands I entered when trying to add the new migration: Add-Migration AdminSett > Scaffolding migration 'AdminSett'. The Designer Code for this migration file includes a snapshot of your current Code First model. This snapshot is used [...] read more
c#
entity-framework
migration
ef-migrations
3votes
1answer

.NET Core API can't connect to database via docker-compose

I'm developing a .NET core web API with a MSSQL Server database. I tried to containerize this into a Docker container and use Docker Compose to spin up this service. But my API cannot connect to the database. The following error occurs: > Application startup exception: System.Data.SqlClient.SqlException (0x80131904): A network-related [...] read more
sql-server
docker
.net-core
docker-compose
containers
3votes
1answer

.NET Core canĀ“t connect to SQL DB

I build a new .net Core Web API with connection to SQL DB. I have problems to connect the API with my Database I tried a local DB "DefaultConnection": "Server=(localdb)\\MSSQLLocalDB; Initial Catalog=ib; Integrated Security=SSPI", and a remote (see appsettings.json). Remote: Microsoft SQL Server Express (64-bit) 11.0.2100.60 System: Microsoft Windows NT [...] read more
c#
asp.net-core
2votes
1answer

Why does Entity Framework Core 2.2 C# respond with an error while inserting a new entity with an existing nested entity

I am working on a ASP.NET Core 2.2 project and I am using Entity Framework Core 2.2 as the ORM for accessing an Azure SQL database. I have the following two entities/tables which are related to eachother (One-To-Many relationship). [Table("Users")] public class UserEntity : BaseGuidEntity { .../// other properties [ForeignKey("Language")] [...] read more
c#
.net
sql-server
asp.net-core
entity-framework-core
1vote
0answers

AZURE_KEY_VAULT provider in SSRS

I've recently set up Always Encryption on an on-prem SQL Server db with the column master key in Azure Key Vault. If I SELECT from the table in SSMS with 'Column Encryption Setting=Enabled' I can read the column in plain text so _I'm pretty confident* the encryption is functioning as [...] read more
encryption
azure
visual-studio-2017
ssrs
1vote
2answers

How to find missing permission in MS SQL server

Problem description:I am trying to use SQLDependency on a table of a commercial product (TAC Reservation Assistant). The DB is a large Microsoft SQL 2016 database on which we don't have db_owner rights (only TAC does). I am now trying - together with support staff of TAC - to grant [...] read more
sql-server
1vote
1answer

Dynamic CRM 2011 Import Organization from different locale fails on SQLException

UPDATE : Issue solved, see answer below. I'm struggling with a Dynamic CRM 2011 , when trying to import an existing organization - coming from a customer's Window Domain, not ours. THE SETUP Two servers. * One windows server 2008 r2 x64 Standard (locale fr-FR) for the Front-end, WebApp and [...] read more
microsoft-dynamics-crm
1vote
0answers

Exception when upgrading organization from crm 4 to 2011- invalid column names

In development and QA environments we've upgraded dozens of organizations from dynamics v.4 to v. 2011 without a hitch. Naturally, when we try to upgrade our first prod organization, we run into a previously unseen error during the import process. It seems like the new schema for the 'Organization' table [...] read more
microsoft-dynamics-crm
1vote
1answer

Team Foundation Server (TFS) 2017 Failing to create backup

So we've had backups running for a few years now, and in the last few days it started backing up extra times. I went to reconfigure the backups to verify the settings and got an error saying it can't backup the dummy database. [Info @12:03:50.669] +-+-+-+-+-| Running Confirming Permissions: Confirming [...] read more
team-foundation-server
1vote
0answers

Azure VPN cannot connect to sql server

We have setup our VPN connection in Azure to our on-premises database, the connect is working with no problems. I have written a MVC app that tries to connect to our on-premise database in SQL Server and am getting the following error: System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred [...] read more
azure
azure-sql
azure-networking
1vote
1answer

Install SQL Server 2017 on Windows 10 Azure VM

I have one Azure Windows 10 VM set up as a workstation which has among other things: * Visual Studio 2017 * Python 2.7 * NodeJS * SQL Server 2017 When a coworker created a new Windows 10 VM and went to install SQL Server, he got an error. I [...] read more
sql-server
virtual-machines
azure
windows-10
1vote
0answers

Windows 2012 R2 Azure VM Cannot Connect To Local SQL Server

I created an Azure virtual machine running Windows Server 2012 R2 that I am using as a web server to host a couple different web sites. This is my first time ever doing something like this and I am struggling to get it to work. I installed IIS 8.5 and [...] read more
windows-server-2012-r2
azure
iis-8.5
1vote
0answers

SQL Connection Problems between two servers

I have two Windows Server 2012 R2 servers HOST1 and HOST2. HOST1 has a web application that talks to a SQL Server 2014 instance on HOST2. When pulling larger amounts of data, notably during scheduled integrations, HOST1 encounters errors that cause processes to fail. There problem is always one of [...] read more
networking
windows-server-2012-r2
1vote
2answers

C#/SQL Server: Login failed when connecting from remote machine

I've got an SQL Server 2008 Express set up on one machine and am trying to connect with my C# app to the server from another machine (both Win 7). The server machine has a user account for me in the system. The SQL Server is configured to use Windows [...] read more
windows-7
sql-server-2008
windows
1vote
1answer

what instance name in connection string for Dynamic management Views

I want to run the following query :: SELECT S.* FROM sys.dm_exec_requests S JOIN sys.dm_exec_sessions R ON r.session_id = s.blocking_session_id It works when i run it in SQL Server Console. But I haven't been able to do the same thru code. I am using the following connection string: "Data Source=localhost\\sqlexpress;Initial [...] read more
sql-server-2008
networking
remote-access
1vote
1answer

Powershell Remoting always logs in as anonymous

I need some help in automating deploying some applications on my domain. The deployment process follows this basic flow in a Powers Shell script: 1. Stop services 2. Copy out applications 3. Log into at least 1 remote server and run "\Services\Shipping\ShippingService.exe /deploy" 4. Start services. I'd like to cut [...] read more
active-directory
powershell
1vote
2answers

Using EF Core to invoke stored procedure and closing connection

I have an ASP.NET Core 2.2 application using EF Core. I have service class which typically use a DbContext for any CRUD operations. However in one of the method (Assign method below) I need to use stored procedure. So I am using the following code. Note that DbContext is injected [...] read more
c#
sql-server
entity-framework-core
ef-core-2.0
ef-core-2.2
1vote
1answer

How to connect to a Sql Server VM via private IP with Azure Website

I have an Azure VM with port 1433 endpoint created. The internal IP is 110.119.38.72. In my Azure Standard Website Web.Config connstring if have: Server=110.119.38.72;Database=MyDB;uid=username;pwd=password; I am getting the error: [Win32Exception (0x80004005): Access is denied] [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. [...] read more
asp.net-mvc
azure
azure-sql-database
1vote
2answers

Asp.Net Core: There is already an object named 'AspNetRoles' in the database

I created a new Asp.Net Core WebApi project and simply added IdentityDbContext, then i wrote in Nuget Package Console these commands: PM> Add-Migration Initial To undo this action, use Remove-Migration. PM> Update-Database Applying migration '20180516150423_Initial'. Failed executing DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] CREATE TABLE [AspNetRoles] ( [Id] nvarchar(450) NOT NULL, [...] read more
asp.net
database
entity-framework
asp.net-core
1vote
1answer

Xamarin Form: API receives always null data when posting from Xamarin Form after Archiving Android Application

Post Method in Xamarin Forms is shown below, public async Task VerifyMobile(OtpDto otpDto) { _httpClient.BaseAddress = new Uri("https://***.azurewebsites.net"); var jsonData = JsonConvert.SerializeObject(otpDto); var content = new StringContent(jsonData, Encoding.UTF8, "application/json"); HttpResponseMessage response = await _httpClient.PostAsync("api/Auth/VerifyMobile", content); } And API Method is like, [HttpPost] [Route("VerifyMobile")] public async Task<IActionResult> VerifyMobile([FromBody]OtpDto otpDto) { ... [...] read more
xamarin
xamarin.forms
xamarin.android
1vote
1answer

how to backup and restore mdf file in winform C# after deployment project?

I am developing a desktop application in c# visual studio 2013, where I want to create a feature in which a user is allowed to restore and backup the Database by itself. but problem is that it doesn't backup or restore database after deploy project. When I try to Backup [...] read more
c#
sql
winforms
backup
restore
1vote
2answers

Execute Reader wait operation time out error

stuck on this since few days please help. I have tried a lot of solutions like increase connection timeout in web config: below is my error code. Server Error in '/' Application. The wait operation timed out Description: An unhandled exception occurred during the execution of the current web request. [...] read more
c#
sql
asp.net
.net
executereader
1vote
0answers

How to set up SQL Server 2017 for async in-memory session from scratch

I am migrating an application that currently uses in-memory session storage, and as part of that migration, its backing database is being upgraded to SQL Server 2017, so I am keen to replace the in-process session state with Microsoft's new SQL Server async in-memory table support (asp.net session state with [...] read more
asp.net
sql-server-2017
asp.net-session
1vote
1answer

SQL Server Cannot find the object when executing stored procedure from windows service

I am attempting to insert data from an uploaded excel spreadsheet, and I'm getting the following error. > System.Data.SqlClient.SqlException (0x80131904): Cannot find the object "data_import" because it does not exist or you do not have permissions. I can run the stored procedure fine within SSMS, but when attempting to test [...] read more
sql-server
1vote
1answer

Converting One-To-One to a One-To-Many relationship Issues

I'm experiencing some extreme difficulty in changing a one-to-one relationship, to a one-to-many relationship without totally wiping out the database and starting over (which I cannot reasonably do to a production database). Entity Framework 6 with auto migrations enabled (also cannot change this). The original database schema called for a [...] read more
c#
entity-framework
1vote
0answers

Solved-Maybe? How to return list of DTO with nested lists of related DTO

Without using Automapper, I'm trying to map a list of DTO's into each element of a list of DTO's. Specfically in this example, I want the API to return a list of parents where each parent contains it's list of children and list of pets. I have an EF Core [...] read more
c#
asp.net-core
linq-to-sql
entity-framework-core
dto
1vote
1answer

Insert data into a SQL Server database using vb.net

I create a SQL Server database and I want to add some data in a particular table of that database. I use some textbox to input the data and an add button to complete. But when I tap the button the whole process was stopped and indicate an error in [...] read more
sql
sql-server
vb.net
inventory-management
1vote
0answers

How to fix duplicate foreign key when adding navigation property to existing relationship?

I have a very simply identity object: Public Class UserRole Inherits IdentityUserRole(Of Integer) End Class By default this generated the following migration: CreateTable( "dbo.UserRoles", Function(c) New With { .UserId = c.Int(nullable := False), .RoleId = c.Int(nullable := False) }) _ .PrimaryKey(Function(t) New With { t.UserId, t.RoleId }) _ .ForeignKey("dbo.Users", Function(t) [...] read more
vb.net
entity-framework
asp.net-mvc-5
ef-migrations
navigation-properties
1vote
0answers

GroupBy generating wrong OrderBy query

I have the following query: var trains = queryableTrains.Select(t => new TrainDto { Id = t.Id, Prefix = t.Prefix, Color = t.Color, PlannedMovements = t.TrainMovementPlans .Where(p => trackCircuitIds.Contains(p.TrackCircuitId) && p.TimeStamp >= start && p.TimeStamp <= end) .Select(p => new TrainMovementDto { SgfId = null, Prefix = t.Prefix, BlockSectionId = p.TrackCircuit.TrackCircuitGroupId [...] read more
asp.net-core
.net-core
entity-framework-core
ef-core-2.2
1vote
2answers

ASP.NET MVC 5 Data is NULL Due To Network Related Instance

I am getting the value from text field but can not find the reason of not getting saved in the variable. var user = new ApplicationUser() { UserName = model.Email ,Email = model.Email}; user is null despite Email contains the value. I have found it through debugging. { Line 81: [...] read more
asp.net-mvc
1vote
1answer

"How to fix" SqlException: Invalid object name 'Orders'. databatase location?

I followed the instructions in this video https://docs.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-aspnet-core-ef-step-03?view=vs-2019 to try to add a products database. and after some (inital bugginess I first crashed and the website asked me to apply migrations and i hit apply) an then it eventually worked. The instructions tell you to create a new models folder [...] read more
c#
asp.net
sql-server
1vote
1answer

Error removing the IUser in EpiServer - SqlException: Execution Timeout

I have used, CommunitySystem.CurrentContext.DefaultSecurity.RemoveUser(IUser user); To remove user. However, this was working fine. But suddenly it has given an error. And it keeps happening forever. The exception throws from the RemoveUser(IUser user). The exception details are here as below, System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to [...] read more
episerver
0votes
0answers

Azure Studio connection Error with MS SQL on Linux Mint 19.2

I have MS SQL 2017 running on Linux Mint 19.2. I used "sqlcmd" to verify that it's running, and the reported version is "Microsoft SQL Server 2017 (RTM-CU16) (KB4508218) - 14.0.3223.3 (X64)" However, when I tried connecting to the database server using Azure Studio version 1.10.0 (For Linux) it failed [...] read more
networking
linux-mint
sql-server
0votes
0answers

Failure obtaining db row lock: Execution Timeout Expired What this error describes

Quartz.Impl.AdoJobStore.LockException: Failure obtaining db row lock: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated. ---> System.Data.SqlClient.SqlException: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not [...] read more
database
sql-server
0votes
0answers

We've been using DCN as our best networking app and it crashed can it be fixed?

Server Error in '/' Application. Login failed for user 'DB_A3CF5B_dynamiccircle_admin'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'DB_A3CF5B_dynamiccircle_admin'. Source [...] read more
webserver
0votes
0answers

Cannot Connect From Amazon aws t2.micro windows 2012 instance to Amazon RDS SQL Express 2014

I cannot connect to RDS SQL Server 2014 Express instance from EC2 Windows 2012 server instance. 1. I cannot connect through UDL file, and also not through my asp.net mvc web application. Windows EC2 Instnace ID: i-0fe6390a77605e7f2 Availaibility Zone: us-east-2c RDS SQL Server Instnace ID: tandt-201901-2 RDS SQL Server Zone: [...] read more
windows-server-2012-r2
amazon-ec2
amazon-rds
sql-server-2014
0votes
0answers

Sql Exception 0x80131904 cannot log in

My program connects to a MSSql database. If it connects via LAN it works fine, if it connects from outside I get the error message 0x80131904 Error when logging in the user 'ProgProj'. (translation might not be the same as on the english version. On the german version its like [...] read more
login
ms-sql
0votes
1answer

SQL Login fails for app but not for SSMS

I wrote a simple test application in C# (4.5) which does nothing more than connect to a database and display a message. (Basically just to test the deployment and DB connection.) On my local workstation everything works fine. I installed SQL Express 2012, connect as the current user (integrated security), [...] read more
windows-server-2008
.net-framework
sql-server-express
0votes
2answers

Active Directory SQL Server Random Handshake Timeouts

We've installed active directory on a new server and joined our database server and web servers to this new domain. However, randomly, we'll get the following error. What would be the cause of the handshake timeout error we're sometimes seeing? The fact that it's not ALWAYS happening to me means [...] read more
active-directory
sql-server
0votes
0answers

Unable to connect to a new installation of sql server

I just installed SQL Server on my Windows Server 2012 R2 box. The installation went well but my apps can't connect to it. If I use the public DNS name for the server in the connection string, the stack trace looks like this: > [Win32Exception (0x80004005): Access is denied] [SqlException [...] read more
sql-server
sql
0votes
1answer

Getting Error while calling a UDF function with function name having special character ampersand in NAGIOS

While calling a UDF function in NAGIOS with function name containing ampersand '&', It returns an error > System.Data.SqlClient.SqlException (0x80131904): The multi-part identifier "dbo.udf_tarrif_t&TT" could not be bound read more
sql-server
0votes
1answer

How to get my VM on Azure to allow in My SQL Connection?

I have a Virtual Machine that is running my web api. I have then created a SQL Database through Azure(this db is not on the VM) and I put that connection string in my application. I get this when I try to run it. What do I need to do [...] read more
windows-server-2008-r2
sql-server
virtual-machines
azure
0votes
1answer

Intermittent DB connection failure

Recently I started to see intermittent errors in log files of my web application. Raising from different places of the application the error is always about failed connection to DB which is located on another server: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The [...] read more
windows-server-2008-r2
sql-server
iis-7
iis-7.5
dotnet-framework
0votes
0answers

Delete TFS Project Collection - SqlException

I'm trying to delete a team project collection in TFS 2010. Unfortunately after struggling with some old instances (some that don't even have databases anymore) I get an error even when attempting to delete a brand new instance. I go through the detatch process and get an error during the [...] read more
team-foundation-server
0votes
1answer

How can I troubleshoot an application connecting to SQL Server

I'm trying to get ASP.net StoreFront to Connect to SQL Server Express 2005, on Windows Server 2008. I followed This Microsoft Support article without success. Below is the error. [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or [...] read more
windows-server-2008
sql-server
sql-server-2005
0votes
2answers

Hosting Website Issue

I have a web project which I want to post in to our company`s hosting server: IIS Vs.6.0. The name of the server which is running our whole websites is: testing.test.com and domain is testing.com I am added as a User in it as myname@testing.com. Now in the IIS Manager [...] read more
hosting
iis-6
asp.net
web-hosting
windows
0votes
1answer

Installation is getting failed while installing MSSQL cluster in Kubernetes setup (Ubuntu-18.04)

I am facing the below error while installing MSSQL cluster in Kubernetes setup. Error: Starting cluster deployment. Cluster controller endpoint is available at XX.XX.XX.XX:30080. Cluster control plane is ready. [Request 112e9901-602d-4400-89cf-203df5db34f1] Cluster mssql-cluster does not exist. Data pool resources cleanup failed System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving [...] read more
sql-server
docker
kubernetes
0votes
1answer

Can't access LocalDB on other computers, through application

I have made an application which uses a LocalDB, to refer to some predefined values as part of some mathematics that it does. I have created an Installer project so that when the application gets installed, a copy of the DB is sent to [ProgramData][ProductName], which is mapped as the [...] read more
c#
sql-server
localdb
sqlexception
programdata
0votes
0answers

Ef core foreign key violation but the key exists and it is filled when the entity is added

I have a problem with Entity framework core. The problem is, that i'm trying to add a Booking. The booking has a list of orders, and a order has a foreign key to a supplier. When i insert, i get a foreign key violation even though the id is filled. [...] read more
c#
asp.net-core
entity-framework-core
0votes
0answers

Trouble connecting to DB in .NET Core app while following tutorial

Ok, here's my issue. I'm following the tutorial here: https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.2&tabs=visual-studio And when I get to the section where you first test the app, I get a connection error for my database. I haven't touched the connection string (the tutorial doesn't say to). But the error I get is this (through [...] read more
.net-core
0votes
1answer

Can post to server DB from localhost, but when published to server I get "error: 52 - Unable to locate a Local Database Runtime installation."

I have a simple web app that interacts with a Microsoft SQL Server 2016 Standard Edition that is hosted on it's own server, in the same environment. When I run the app locally, it connects just fine and posts to the DB with no problem. After I published the app [...] read more
asp.net
sql-server
asp.net-mvc
sql-server-2016
0votes
0answers

DNN Error: DotNetNuke.Site ExportImport Installation failed while upgrade CMS from versions 9.1 to 9.3

I am getting this error message when upgrading site from 9.1 to 9.3.1. Can Does someone suggest how to get rid of this error? StartJob Starting Installation Info Starting Installation - SiteExportImport Info Starting Installation - Assembly Info Assembly already registered - bin\DotNetNuke.SiteExportImport.dll Info Creating backup of previous version - [...] read more
dotnetnuke
dotnetnuke-9
0votes
1answer

Can't connect to docker sql server from NET Core 2.2 Web API

While collecting knowledge of coding .NET Core Web API in combination with docker, I came across an error that I can't solve. I already did research on the internet, but somehow none of the provided solutions worked for me. I have a web service called Catalog.API (similar to the eShopOnContainers [...] read more
c#
sql-server
docker
asp.net-core
asp.net-core-webapi
0votes
1answer

What's the best way to upgrade from umbraco 7.6 to 7.15.1 (including db upgrade)

I am trying to upgrade the site from v 7.6 to v. 7.15.1. I have done the upgrade on localhost which included updating the db. Now I transferred my files from localhost o the test site and on there I am getting an error in log: ERROR Umbraco.Core.UmbracoApplicationBase - An [...] read more
upgrade
umbraco7
0votes
0answers

Azure SQL user and connection string for Asp.Net MVC EF web app

I have an Asp.Net MVC webapp and I get the following error when I try to create a new Azure SQL user for the DefaultConnection. > [SqlException (0x80131904): Login failed for user 'myNewSQLuser'.] On SQL Server Object Explorer I connected to the master database using the Server Admin login and [...] read more
asp.net-mvc
entity-framework-6
azure-sql-database
0votes
0answers

EF core 2 ASP.NET intermittent network errors

I have a EF Core 2 Dbcontext injected in the usual way into all Controllers of a Web API: services.AddDbContext<KpiContext>(options => options.UseSqlServer(config.ConnectionStrings.KpiDB, providerOptions => providerOptions.EnableRetryOnFailure())); This is injected into controllers in the standard way as, say, kpidband then it's passed to a static method which does this: somestaticmethod(KpiContext kpidb) { [...] read more
c#
asp.net
entity-framework-core
0votes
0answers

Timeout error when installing latest stable release of 2SXC module

When I try to install the latest release of 2SXC I get the following error. Anyone come across this before? Anyone know how to fix it? I am trying to run the latest DNN on Azure. StartJob Starting Installation Info Starting Installation - 2SexyContent Info Starting Installation - Script Info [...] read more
module
dotnetnuke
2sxc
0votes
0answers

SQL Server DbCommand Timeout with .Net Core container under load

I'm running a .Net Core container on Open Shift Enterprise V3 pointing to a SQL Server database. I have a .Net Core REST API with a put method which adds or updates a record in the database. The table I am adding/updating had 3000 records and has indexes. This works [...] read more
sql-server
asp.net-core
entity-framework-core
containers
0votes
0answers

Connection issues with Azure SQL Hybrid to local SQL Server

I have an App Service installed on Azure. I try to write data in a local SQL server database (through ADO.Net commands). The sql server has a hybrid connection installed and configured. The status of the connection is "connected". The SQL user can connect and write data through SQL Management [...] read more
sql-server-2014
azure-hybrid-connections
windows-server-2019
0votes
0answers

How to fix: 'After MS SQL Server restart alipne .net core 2.2.5 container wich use it has one CLOSE_WAIT tcp connection - CPU of dotnet rise'

I have problem with App that is hosted on official asp-dotnet-core-alipne container and SQL Server on other server. After restart server on wich we have SQL , conainers gets high CPU and some internal thread hangs. Helps only restart of container. We investigated that there are some tcp connection in [...] read more
c#
sql
docker
.net-core
alpine
0votes
1answer

EF Core Migration Failure: Error Number:4902,State:1,Class:16

I recently rolled back an EF Core migration, which deleted an existing database table, called the "Tag" table, with a Foreign Key to a "Subject" table. The "Subject" table has a one to many relationship with a "Tag" table. One Subject has many Tags. When attempting to "update-database" to re-establish [...] read more
c#
razor
entity-framework-core
0votes
1answer

Microservice cannot connect to database

I'm trying to learn microservices with docker and have a lot of trouble with that. docker-compose: version: "3.2" networks: frontend: backend: services: catalog: build: context: .\src\Services\ProductCatalogApi dockerfile: Dockerfile image: microservices-v1.0.0 environment: - DatabaseServer=mssqlserver - DatabaseName=CatalogDb - DatabaseUser=sa - DatabaseUserPassword=ProductApi(!) container_name: catalogapi ports: - "5000:80" networks: - backend - frontend depends_on: [...] read more
asp.net
sql-server
docker
docker-compose
0votes
1answer

Refreshing Azure Active Directory access token in ASP.NET Core with dependency injection for SQL Database

I have an ASP.NET Core website (with Razor pages) that is using an Azure SQL Database with Entity Framework Core. I create the database context in the Startup.cs for dependency injection. The tricky part is that I'm using Azure Active Directory authentication against the database with Managed Identity from my [...] read more
c#
azure
asp.net-core
entity-framework-core
azure-sql-database
0votes
0answers

dotnet ef database update not working for specific migation

I am working on dotnet core developing a WebApi and have the following project structure in my VS Solution: Solution Project |-Project.Data |-Project.Entities |-Project.WebApi |-Project.WebApi.Test Inside the Project.Data, I have the migrations folder with the initial files that were created when enabling, adding and updating the DB the first time. [...] read more
c#
.net-core
ef-code-first
ef-core-2.0
ef-core-2.1
0votes
2answers

ASP.NET [Win32Exception (0x80004005): Access is denied] Error

When I test it in Visuall Studio by pressing F5 and it's working fine and I can able to login the webpage and sql query process working nicely. Also note that my SQL server is active over internet which can be accessed using IP address. But when I publish my [...] read more
c#
asp.net
0votes
3answers

Invalid column name .Don't Know Why?

Recently i add DateofBirth to a table . And Locally it's work fine. I also update client's data base and entity data model. But errors appears. Invalid column name 'DateofBirth'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more [...] read more
asp.net-mvc
entity-framework
client-server
stack-trace
0votes
0answers

.net core can't create database

I create a Model on .net core 2.1 called Product.I made all the necessary to make it work(add DbContext, make connection string, make the service) and when I Add-Migration Initial I get the following: PM> add-migration initial Microsoft.EntityFrameworkCore.Infrastructure[10403] Entity Framework Core 2.1.11-servicing-32099 initialized 'ApplicationDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None [...] read more
.net
core
0votes
2answers

Getting error: SqlException (0x80131904):Subquery returned more than 1 value - why?

Error when running my query : > System.Data.SqlClient.SqlException (0x80131904): Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression This is my code: UPDATE Trade SET Reference = (SELECT DISTINCT [...] read more
sql
sql-server
0votes
0answers

SQL Server timeout period elapses during pre-login handshake on remote connections

I'm having an odd issue where I get a timeout with the DB if there's no activity for about 30 mins. Then, after a second or so it starts working again. Here's the error in my .NET code: > System.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting [...] read more
.net
sql-server
0votes
2answers

Getting an sql connection string error when scaffolding in EF core?

For background info, I'm running .NET core on Arch Linux VScode and I also have SQL Server running on Arch Linux. When I connect to the server via sqlcmd or through the VScode SQL extension, everything works fine. Only when scaffolding am I getting errors, so my connection string is [...] read more
c#
sql-server
entity-framework
sqlconnection
scaffolding
0votes
0answers

Server to AWS RDS - No connection could be made because the target machine actively refused it

I'm moving a website from a dedicated server to AWS. First I want to transfer the database (sql server express). I've setup an AWS RDS Sql Express database - and can connect to it from my PC. However when I update the database connection string on my current server - [...] read more
.net
sql-server
amazon-web-services
amazon-ec2
iis-8
0votes
0answers

ASP.NET Exception Error From SQL Server Windows Authentication Login

I have read and tried all the suggestions from [ System.Data.SqlClient.SqlException: Login failed for user But none of those suggestions work. Thank you very much if you know why my setup have this error. From SQL Server Studio Management, I am able to login with no error to SQL Server [...] read more
c#
sql
windows-7
0votes
1answer

Entity Framework throws error: Invalid object name

I'm getting the following error with this sample I received, it looks correct by the manuals and docs I found. There are a lot of books I found here and all looks have the same pattern of code that looks like this one I received from a friend last week. [...] read more
c#
sql-server
entity-framework
0votes
0answers

membership.createuser method times out

I have a asp.net application hosted on an external server. I use .Net membership provider to create users for my website. It was working fine till last week and it throws time out elapsed exception now when membership.createuser() method is called.No code change was done on this. Any help as [...] read more
asp.net
0votes
1answer

.NET Core Invalid Object Name 'ApplicationUsers' When logging in

This is my login function: LoginViewModel lvm = new LoginViewModel { UserName = Input.UserName, Password = Input.Password, RememberMe = Input.RememberMe }; var valid = accountsData.Authenticate(lvm); if (valid != null) { var avm = applicationUsersData.GetByUsername(Input.UserName); var user = applicationUsersData.Get(avm.Id); var roles = userRolesData.GetUserRoles(user.Id); claims.Add(new Claim(ManagementStudio.ClassLibrary.Globals.CookieGlobals.UserName, user.UserName)); claims.Add(new Claim(ManagementStudio.ClassLibrary.Globals.CookieGlobals.Email, user.Email)); claims.Add(new Claim(ManagementStudio.ClassLibrary.Globals.CookieGlobals.PhoneNumber, [...] read more
c#
asp.net
.net
asp.net-mvc
asp.net-core
0votes
1answer

Only able to connect to a SQLServer Database using Integrated Security

I am trying to connect to a database with a Process account, but I am only able to connect using IntegratedSecurity. If I try to set it manually the application throws an error due to not being able to login with the user. I tried to run this code on [...] read more
c#
sql
sql-server
0votes
1answer

Connection problem when changing password

I have a software which displays some tables from our SQL database. Now I want to add a tool, where I can change the password for my "testdummy" user. I tried to open a connection again but it didn't help. If you need some additional code or informations, just write [...] read more
c#
0votes
3answers

Sometimes getting "A network-related or instance-specific error occurred while establishing a connection to SQL Server."

Every now and then I am getting > A network-related or instance-specific error occurred while establishing a connection to SQL Server. and in the details it says > SQL Server Express database file auto-creation error This error appears randomly. Sometimes when I go to another page it loads fine and [...] read more
asp.net
sql-server
asp.net-mvc-5
0votes
0answers

Why does my local SQL Express have to allow remote connections to use a local MDF?

When I set up my VB.net program to read from a local MDF database file (SQL), it tells me that I need remote connections. Details follow: I have a Visual Studio vb.net application. It needs a database, so I downloaded SQL Express and ran a script to add my database. [...] read more
sql-server
vb.net
connection-string
0votes
1answer

EF Core generates statement with invalid table name

I'm trying to get some values with Include and ThenInclude but EF Core generates a statement with an invalid tablename. This is my DataContext: public class BaseContext : BaseDbContext { protected BaseWebsiteContext(DbContextOptions dbContextOptions) : base(dbContextOptions) { } public DbSet<Image> Images { get; set; } public DbSet<Tag> Tags { get; set; [...] read more
c#
entity-framework-core
sqlexception
0votes
1answer

Entity Framework Core 2.1 System.Data.SqlClient.SqlException (0x80131904): Type Flag is not a defined system type

After upgrading to EntityFramework 2.1.11, I am facing the following issue. System.Data.SqlClient.SqlException (0x80131904): Type Flag is not a defined system type. I am getting this Error for Linq to SQL internal translation. There are two columns in database table which are of tinyint datatype which have corresponding C# datatype as [...] read more
entity-framework-core-2.1
entity-framework-core-migrations
0votes
2answers

Entity Framework migration error

I added a new table to my existing SQL Server database. I am using its generated id as the key. I ran dotnet ef migration add NewTable, which ran without errors. I reviewed the migration file and this is what was added for my new table: migrationBuilder.CreateTable( name: "InboxNotifications", columns: [...] read more
c#
asp.net
sql-server
entity-framework
0votes
1answer

Entity Framework insert conflicts with another foreign key

I am having difficulty inserting data with its related entities. public class Status : Entity, IAggregateRoot { //other properties public readonly List<Video> _videos; public readonly List<Photo> _photos; } -- public class Log : Entity, IAggregateRoot { //other properties public readonly List<Video> _videos; public readonly List<Photo> _photos; public readonly List<Sound> _audios; [...] read more
sql
.net
entity-framework
entity-framework-core
asp.net-core-2.0
0votes
1answer

The current transaction cannot be committed and cannot be rolled back to a savepoint. Roll back the entire transaction

I am getting the following error message randomly, whenever I am trying to execute the below stored procedure through the .net core application. Error Message: > System.Data.SqlClient.SqlException (0x80131904): The current transaction cannot be committed and cannot be rolled back to a savepoint. Roll back the entire transaction. Stored Procedure: ALTER [...] read more
azure
asp.net-core
stored-procedures
azure-sql-database
0votes
0answers

"DELETE statement conflicted with the REFERENCE constraint EF core" after SaveChanges()

I am using Entity Framework Core with .net core 2.2 and am encountering a strange intermittent issue. In my case I have these three tables with entities (simplified): Data Model: public class Case : BaseEntity { public int CaseId { get; set; } public Guid ClientId { get; set; } [...] read more
c#
asp.net-core
entity-framework-core
0votes
0answers

.Net Core Application connects to SQL server with wrong credentials

I am building a .Net Core (2.2, started as 2.1) application and I have been using a locally hosted database but as I continue I wanted to move to a database hosted on the server it will be located on in the future. The problem is I am not able [...] read more
c#
sql-server
.net-core
asp.net-core-2.2
0votes
1answer

Problem publishing ASP.NET application with a SQL Server database

I've created an ASP.NET website which runs perfectly from Visual Studio. It connects to a SQL Server .mdf database file in the App_Data folder. I published the project using FTP. The live website cannot however connect to the database, as it is LocalDB, and my host uses a SQL Server [...] read more
asp.net
sql-server
model-view-controller
0votes
1answer

Procedure or Function expects parameter which was not supplied even though it is supplied

Hello i cannot wrap my head around why i get the error saying that this SP expects @id which was not given when it is quite clearly given. this is how the code looks public Task<bool> InsertMessage(Message msg) { return CallDatabase(async (connection) => { var affectedows = await connection.ExecuteAsync( "messages_insert", [...] read more
stored-procedures
0votes
1answer

SharePoint 2010 Web Part Error - Exception from HRESULT: 0x80131904

A client of ours recently encountered a problem with a web part I wrote a while back. This web part is an advanced search which returns results based on information entered into a text box and the criteria selected from a drop down. This web part has been functional on [...] read more
c#
sharepoint
sharepoint-2010
0votes
1answer

EFCore generating Column that is not valid

When i try to access the employees table for the Northwind database i get an invalid column name error, this column does not exist in the database and i am not sure how it is created or how to prevent it. i tried not to map the generated name but [...] read more
c#
.net-core
entity-framework-core
0votes
1answer

MySQL: Login Failed for User

I have tried to connect to my SQL database being hosted on Plesk with InterServer using C# ASP.NET MVC. Despite numerous efforts, it never seems to want to connect. What am I doing wrong? I've tried changing the connection string numerous times. Plesk and InterServer support ask me to deploy [...] read more
mysql
asp.net-mvc
database-connection
connection-string
plesk
0votes
0answers

Error while connecting to asp.net MSSQL database on godaddy server

I bought a windows "ultimate shared hosting" from godaddy. I've uploaded all the files that are required, the site works. When I created a database on myLittleAdmin and got the connection string from it. I put that connection string to my web.config file which is hosted on godaddy, but gives [...] read more
c#
asp.net
sql-server
shared-hosting
0votes
1answer

C# connected to SQL not returning a value

I connected to SQL Server with C#. Now, I have to do 3 options. One is to execute a procedure, which works perfectly, the second one is to retrieve some data, which is also done and the last option is to select a specific country, which is chosen by the [...] read more
c#
sql-server
connection
0votes
0answers

System.Data.SqlClient.SqlException (0x80131904): Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong

I am trying to modify a SQL Server table using Entity Framework model and I get this error: > Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong How can I solve this issue? I used below commands to do that. Add-Migration "comments", Update-Database PM> Update-Database [...] read more
c#
sql-server
entity-framework
0votes
0answers

Error while opening a winform : The target principal name is incorrect. Cannot generate SSPI context

I installed a Windows app on machine B. It's trying to connect to a SQL Server database on machine A using a static IP. (All SQL Server related configurations are done to make a remote connection) I cannot really figure out where to look for a problem. Please look at [...] read more
sql
sql-server
winforms
sql-server-2008
0votes
0answers

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired with Error Number:-2

I have a C# .NET 4.7.2 application that connects to SQL Server 2014. One of the stored procedures called from the application runs into following error: xyzStoredProcedure: Exception encountered. System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. [...] read more
c#
.net
sql-server
sqlclient
0votes
1answer

Connect to local SQL Server from .NET Core app running in docker

I have .NET Core console app running in docker and I want to connect to local MSSQL database (not dockerized!), but I'm unable to do so. Connecting to DB on remote server by IP works fine, but using connection string like Data Source=DESKTOP-9DRU731;Initial Catalog=DB;User id=user;password=password; gives me an error System.Data.SqlClient.SqlException [...] read more
docker
.net-core
docker-compose
dockerfile
0votes
1answer

Error while opening search result types in SharePoint 2013

I have a Search Service application and i want to customize how my search results look. I have a customized display template as well. But when i open my Search Result types i get an error saying Something went wrong.And also none of the managed properties can be seen. I [...] read more
sharepoint-2013
0votes
0answers

How to connect GCP App Engine to GCP Compute Engine SQL Server?

I'm setting up a new App Engine on my new GCP project but I can't seem to connect the NetCore app to a SQL instance on a Compute Engine. When I run the app from Azure or on my local pc with the same connection string it connects and everything [...] read more
sql-server
asp.net-core
error-handling
google-cloud-platform
timeout
0votes
0answers

[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server

I'm connecting to a local version of the SQL database. I've created both entities and want to connect to them but when I try I've gotten a "Server Error in '/' Application," error. So far I've research the error and cannot tie down where to even begin looking. Line 23: [...] read more
model-view-controller
0votes
1answer

SqlDataException: Incorrect Syntax near '='

I am trying get the data from database but I am getting this error. I am sure I am missing some simple logic but I couldn't figure out what's wrong with the query as it is working fine directly on DB. SqlCommand retrievedgeids = new SqlCommand("Select edgeid from Edges where [...] read more
c#
sql-server
ado.net
-1votes
1answer

Error in job agent when running a package in SSISDB catalog (SQL Server)

I created a simple package in visual studio. Then I deployed this package in SSISDB catalog which is on a different server. I am using Job agent to execute this package with a proxy account. But I am getting this error in Job Agent: "Excuted as user: *\test**. Microsoft (R) [...] read more
sql-server
ssis
-1votes
1answer

ASP Application on IIS crash

ASP application always hangs and didn't work on IIS during rush hours connections Also other scripts like PHP are working properly on IIS. The problem only with ASP. I'm receiving this error when i'm trying to open the ASP script. ================================================================ Server Error in '/' Application. Timeout expired. The timeout [...] read more
windows-server-2008
iis-7
asp.net
-1votes
2answers

System.Data.SqlClient.SqlException (0x80131904) when trying to send data to Database

Hello everyone this is the code i wrote in order to get the data from a simple form and import it into my DataBase: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.Sql; using System.Data.SqlClient; using System.Data; public partial class Default2 : System.Web.UI.Page { protected [...] read more
c#
sql-server
ado.net
-1votes
2answers

The wait operation timed out Win32Exception (0x80004005): The wait operation timed out azure

Following error comes when retrieving large amount of data from sql azure. I have already implement the Transient Fault Handling but still getting this error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and [...] read more
sql
azure-sql-database
azure-vpn
-1votes
1answer

Package Manager getting error Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance

While i use update-database command in nuget package manager. getting "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." i check SQL Server configuration 2 check SSMS login Working properly For more details [...] read more
visual-studio-2017
nuget-package
package-managers
-2votes
2answers

Cannot launch my asp.net core application in Production

I have a Windows Server 2016 VM environment I just deployed a .NET Core application to. I cannot launch the application in my production environment. Initially the error I was getting was around port 5000 being in use, and Kestrel not being able to use the port. I went back [...] read more
sql-server
asp.net-core
ssl-certificate
-2votes
1answer

How to fix Incorrect syntax near the keyword "NOT" during Update-Database using Migration

I am new into software development. I am currently developing Asp.Net Core API. I have managed to do Add-migration successfully, the problem start when I need to Update-Database. The error is as follows System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near the keyword 'NOT'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException [...] read more
c#
asp.net
.net-core
asp.net-core-webapi
-3votes
1answer

(0x80131904): Login Failure

I am setting up a simple server, and am having some connection issues. I know that there are others who have posted on this but I still cannot figure it out. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace DormWeb { public partial [...] read more
c#
sql
azure
azure-sql-database
-3votes
1answer

ConnectionFactory creating too many connections from .net core registered service

I have inserted a connection factory based LinqToDB service in the .Net Core. Startup.cs services.AddScoped<IDatabase, Database>( provider => { IConfigurationSection sqlConfig = Configuration.GetSection("Database"); IDataProvider dataProvider = new SqlServerDataProvider("SqlServer", SqlServerVersion.v2008); return new Database(dataProvider, new WorkspaceConnectionFactory( sqlConfig["clientId"], sqlConfig["clientSecret"], sqlConfig["authority"], sqlConfig["target"], sqlConfig["connectionString"]).createConnection()); }); with this implementation of factory namespace Workspace.Common.LinqToDB { public class [...] read more
c#
asp.net-core
azure-sql-database
dbconnectionfactory

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0