Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-03-2009
Member
 
Join Date: Feb 2009
Posts: 53
severe error occurred on the current command

I m using Visual Studio-2005 and SQL server 2005 express edition. when i expand the database node in server explorer i get the following error message:-
A severe error occurred on the current command. The results, if any, should be discarded.
I couldn't find any solution for it. i get the same problem if i try run my application using F5.

Please help me to find out the solution.

Thanks
Reply With Quote
  #2  
Old 05-03-2009
Member
 
Join Date: Nov 2008
Posts: 48
Re: severe error occurred on the current command

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.Exception: A severe error occurred on the current command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should be discarded.

Error Message in DB:
The connection has been dropped because the principal that opened it subsequently assumed a new security context, and then tried to reset the connection under its impersonated security context. This scenario is not supported. See "Impersonation Overview" in Books Online

Solution:
Implement coding workaround, non-dba issue.
Issue: Web.config setting for connection strings "Connection Reset" does not work for newer versions of .NET2.0. This issue starts once .NET 2.0 SP1 or greater is installed on the application server machine. You'll have to change your code where you are impersonating someone.

Immediate solution:
In your web.config database connection string turn off pooling, Pooling=false;
Reply With Quote
  #3  
Old 05-03-2009
Member
 
Join Date: Apr 2008
Posts: 193
Re: severe error occurred on the current command

Hi,

This is a generic error message.

Two issues where this error message would occur are mentioned in the KB Articles below:

http://support.microsoft.com/kb/928372/
http://support.microsoft.com/kb/938102

The following information would be useful in drilling down deeper into the problem:

1. When does this error occur (Is is sporadic or is there a fixed time)

2. What queries/stored procedures are running on the server at that time

3. What error messages are logged in the SQL Server ErrorLogs at that time
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "severe error occurred on the current command"
Thread Thread Starter Forum Replies Last Post
OS X ML Error: "The error occurred while processing a command of type 'setState' in plug-in 'servermgr_netboot'." SravanK Networking & Security 2 11-08-2012 06:51 PM
System error 59 has occurred. An unexpected network error occurred Custidio Networking & Security 4 05-01-2010 09:10 PM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
An error has occurred while attempting to set task account information. The specific error is 0x80004005 VauGhna Window 2000 Help 1 01-03-2007 09:27 AM


All times are GMT +5.5. The time now is 03:28 PM.