Click here to Skip to main content
15,894,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm getting this error while executing a sql query via ExecuteNonQuery (Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery) at the first attempt.

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: MSVCR80.dll, version: 8.0.50727.4940, time stamp: 0x4ca2b271
Exception code: 0xc000000d
Fault offset: 0x00008aa0
Faulting process id: 0x2920
Faulting application start time: 0x01ce891a133aa6a6
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_d08cc06a442b34fc\MSVCR80.dll
Report Id: 60dc2ebc-f50e-11e2-a67c-2c41380e0e49


This issue is not happening at the second time.

Note: I've created a Websetup project for deploying an application in the client machine's and the application were deployed successfully, from that setup. I'm trying to execute a SQL Query for some action in the deployed application, While executing that query I'm getting the above mentioned error and the error will not be thrown to the .net framework, I got this error from the EventViwer.

Tried a lot of ideas to fix this problem from search engines but no use.

Thanks & Regards
Dhilip.R

[edit]Code block fixed[/edit]
Posted
Updated 26-Jul-13 2:36am
v2
Comments
[no name] 26-Jul-13 8:47am    
And what is the exception being caught by your application?

1 solution

With the information you provided its impossible to tell you what's going wrong. Deploy the debug build of your choice and attach the debugger to your server before it crashes. When it does, you can see where the code bombs out.
 
Share this answer
 
Comments
ksrdhilip 29-Jul-13 3:08am    
Hi Dave Kreskowiak,

Thanks for your reply.

I debugged the code and found the mentioned problem is coming while executing a sql query via ExecuteNonQuery, and the main problem the exception is not throwing to the .net framework. Once the debugger is reached to the ExecuteNonQuery the w3wp.exe process is terminated and the debugger will stopped, by the way I'm not able to get the Exact exception of this problem.

Note: I got the error message from the EventViwer.
Dave Kreskowiak 29-Jul-13 8:57am    
Then you're going to have to instrument your code by logging activities to a file so you can see where the code blows up.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900