Solution
1) Clean your VS.Net Solution
2) Rebuild Project.
3) Reset IIS
4) Run the project again.
Basically that solved my problem, but in my case i was not getting this error and suddenly my local environment starts giving me above error, so may be that trick work for me.
More Related Contents:
- ExecuteReader requires an open and available Connection. The connection’s current state is Connecting
- What’s the best method to pass parameters to SQLCommand?
- How to I serialize a large graph of .NET object into a SQL Server BLOB without creating a large buffer?
- SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
- How to serialize a large graph of .NET objects into a SQL Server BLOB without creating a large buffer?
- Entity Framework and Connection Pooling
- Like Operator in Entity Framework?
- Why did a network-related or instance-specific error occur while establishing a connection to SQL Server?
- How can I query for null values in entity framework?
- What is the correct SQL type to store a .Net Timespan with values > 24:00:00?
- How can I solve a connection pool problem between ASP.NET and SQL Server?
- Login failed for user ‘DOMAIN\MACHINENAME$’
- How to find foreign key dependencies in SQL Server?
- Update primary key value using entity framework
- Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime
- A network-related or instance-specific error occurred while establishing a connection to SQL Server [closed]
- Is it necessary to add a @ in front of an SqlParameter name?
- Using “GO” within a transaction
- How to solve “unable to switch the encoding” error when inserting XML into SQL Server
- How to build RUNAS /NETONLY functionality into a (C#/.NET/WinForms) program?
- Procedure expects parameter which was not supplied
- TSQL md5 hash different to C# .NET md5
- How to keep single SQL Server connection instance open for multiple request in C#?
- How do I write LINQ’s .Skip(1000).Take(100) in pure SQL?
- Unable to load DLL ‘SqlServerSpatial.dll’
- Correct way to escape characters in a DataTable Filter Expression
- How to store images using Entity Framework Code First CTP 5?
- How do I connect to a SQL database from C#?
- Using a variable for table name in ‘From’ clause in SQL Server 2008
- is it safe to keep database connections open for long time