.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘application exception’

Exception in DbgBreakPoint with TN5250 Service

Symptoms
An application exception (trap) may occur on the SNA Server computer when you use the Rumba 5.2 TN5250 client to connect to the TN5250 Service. If you have Dr. Watson (Drwtsn32.exe) configured as the default debugger, a Drwtsn32.log file is created in the [NTROOT] directory. The following events are created in the Application event log of the Event Viewer:

Event ID: 5
Source : SNA TN5250 ServerDescription:
The SNA TN5250 Service detected an internal error.
File = ..\shared\tn5tnspm.c
Line = 3477
Fail = ((NB_IPS *)dsi5_data)->buf_size >= ((NB_IPS *)dsi5_data)->ips_length
Parm = 0×0
Event ID: 4097
Source: DrWatson
The application, exe\tn5250.dbg, generated an application error The error occurred on1/25/2000 @ 20:58: 3.406.
The exception generated was 80000003 at address 77f76274 (DbgBreakPoint).The following is an example of the exception in DbgBreakPoint:

Application exception occurred:App: exe\tn5250.dbg (pid=326)When: 1/25/2000 @ 20:58:3.406Exception number: 80000003 (hardcoded breakpoint)function: DbgBreakPointFAULT ->77f76274 ccint377f76275 c3ret77f76276 8bc0moveax,eax
Resolution
To resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
215838?(http://support.microsoft.com/kb/215838/EN-US/) How to Obtain the Latest SNA Server Version 4.0 Service Pack

Error message when you try to run a report or upload a report in Microsoft Dynamics CRM: “The request failed with HTTP status 401: Unauthorized” or “Server Error in ‘/’ Application”

Symptoms
Symptom 1When you try to run a report in Microsoft Dynamics CRM 3.0, you receive the following error message:

The request failed with HTTP status 401: Unauthorized.When you try to run a report in Microsoft Dynamics CRM 4.0, you receive the following error message:

An error occurred while trying to add the report to Microsoft Dynamics CRM.
Try this action again.If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization’s Microsoft Dynamics CRM Administrator.Finally, you can contact Microsoft Support.
Error code:0×80048298
Symptom 2Consider the following scenario in Microsoft Dynamics CRM: You build a custom report by using Microsoft Visual Studio 2003 or by using a similar tool.You try to upload the report to the Microsoft Dynamics CRM system. In this scenario, you receive the following error message:

Server Error in ‘/’ Application. Exception of type Microsoft.Crm.CrmException was thrown. If the DevErrors parameter is enabled, you receive this error messageon the screen.
This error message occurs in some configurations. For example, this error message may occur if the following conditions are true:The following products are installed on the same server:Microsoft SQL ServerSQL Server Reporting Services (SRS)Microsoft Dynamics CRM is installed on a separateserver.
Resolution
This problem occurs because the security account for the CRMAppPool application pool does not have the Publisher for Microsoft Dynamics CRM role in Report Manager.

Attachmate Extra! 3270 V4.x Causes Trap in SNA Server Service

Symptoms
An application exception (trap) occurs in the SNA Server service(SNASERVR.EXE) when used with the Attachmate Extra! 3270 version 4.xemulator.
If you have Dr. Watson (DRWTSN32.EXE) configured as the default debugger,the DRWTSN32.LOG shows an exception similar to the following:

Application exception occurred:
App: snaservr.DBG (pid=147)
When: 8/1/1995 @ 16:39:1.590
Exception number: c0000005 (access violation)In addition, SNA Server logs Event 624 in the Windows NT Application Log(as seen in the Event Viewer) when this trap occurs. The following is adetailed description of the Event 624 that is logged when this trap occurs:

Creating dump file C:\SNA\TRACES\SNADUMP.LOG for SNASERVR.EXE
EXPLANATION
A process (SNASERVR.EXE) ended abnormally due to a protection
violation or similar condition and a dump file SNADUMP.LOG has been
created that contains information about the state of the process at
the time of the exception. Register information is contained in your
Windows NT root directory in the file DRWTSN32.LOG.
Resolution
A 3270 emulator has two connections to the SNA Server service. Oneconnection is for SSCP-LU data and the other one is for PLU-SLU (PrimaryLogical Unit – Secondary Logical Unit) data. The SNA Server service trap iscaused because the 3270 emulator is sending a PLU-SLU message on theconnection that is only meant to handle SSCP-LU data. This is behaviorwhich the SNA Server service is not expecting, and it traps when itaccesses its session control block for the SSCP-LU session and treats it asa control block for the PLU-SLU session.

Application Exception When AppleTalk Clients Try Connecting

Symptoms
The SNA Server stops responding (hangs) and Appletalk client computers areunable to attain session connections. In the Event Viewer, the followingapplication events appear:

Event ID: 624
Source: SNADUMP.LOG
Description: A process SNABASE.EXE ended abnormally due to a protectionviolation, or similar condition.
Event ID: 4097
Source: Dr. Watson Log
This application, SNABASE.DBG generated an applicaiton error. The error
occurred on <date>. The exception generated was C0000005 at address <address>.A portion of the DRWTSN32.LOG file states the following:

App: snabase.DBG (pid=160)When: <date> @ <time>Exception number: c0000005 (access violation) NOTE: Your DRWTSN32.LOG file will appear somewhat different than thisexample.
Resolution
The SNAAT.DLL send routine is not checking to see if the L-Table is alreadyin a closing state. Therefore, it tries to access its pending queue, whichhas been released. This causes the application exception in SNABASE.EXE.

Application Exception in Snaservr.exe in Function SNPUPUTI

Symptoms
An SNA Server 4.0 system may experience an application exception in theSnaservr.exe file in function SNPUPUTI when a PU PassThrough connection isconfigured to use Format 0 XIDs.
When this occurs, a Drwtsn32.log file is generated in the Windows NTdirectory. The Drwtsn32.log file will contain an entry similar to thefollowing:

Application exception occurred:App: snaservr.exe (pid=<process id>)When: <date> @ <time>Exception number: c0000005 (access violation) function: snpuputi0100a65a 8d4e06leaecx,[esi+0x6] ds:014aea06=????????0100a65d 2bd3subedx,ebx0100a65f 0fbfdfmovsxebx,di0100a662 3bdacmpebx,edx0100a664 7e27jlesnpuputi+0×4d (0100a68d)0100a666 85f6testesi,esi0100a668 7427jzsnpuputi+0×51 (0100a691)0100a66a 668b00movax,[eax] ds:01d0fff7=00000100a66d 8b36movesi,[esi] ds:00000000=????????0100a66f 662b01subax,[ecx]ds:01d09d76=0013fault ->0100a672 0fbf5604 movsxedx,word ptr [esi+0x4] ds:014aea07=????0100a676 0fbf5e06movsxebx,word ptr [esi+0x6] ds:014aea07=????0100a67a 8d7c07ffleaedi,[edi+eax-0x1] ds:031be9fe=????????0100a67e 8d4604leaeax,[esi+0x4] ds:014aea06=????????0100a681 8d4e06leaecx,[esi+0x6] ds:014aea06=????????0100a684 2bdasubebx,edx0100a686 0fbfd7movsxedx,di0100a689 3bd3cmpedx,ebx0100a68b 7fd9jgsnpuputi+0×26 (0100a666)0100a68d 85f6testesi,esi0100a68f 750fjnzsnpuputi+0×60 (0100a6a0)0100a691 55pushebp*—-> Stack Back Trace <—-*FramePtr ReturnAd Param#1Param#2Param#3Param#4 Function Name 00dafeec 01041647 01d09d70 0000001a 00000901 01180013 snaservr!snpuputi(FPO: [EBP 0x01d09d70] [3,0,4]) In addition, SNA Server logs an Event 624 in the Windows NT ApplicationEvent log similar to the following:

Creating dump file C:\SNA\traces\snadump.log for Snaservr.exeEXPLANATIONA process (Snaservr.exe) ended abnormally due to a protectionviolation or similar condition and a dump file Snadump.log has beencreated that contains information about the state of the process atthe time of the exception. Register information is contained in yourWindows NT root directory in the file Drwtsn32.log. NOTE: This can only occur when SNA Server is configured to use PUPassThrough connections and one of these connections is configured to useFormat 0 XIDs in the connection properties under the System Identificationtab.
Resolution
The application exception is caused when SNA Server attempts to forward aFormat 3 XID received on one PU PassThrough connection to its partner PUPassThrough connection that is configured to use Format 0 XIDs.

Application Exception in Snanmvt.exe

Symptoms
If the SnaNetMn service is configured for automatic startup in ControlPanel/Services or if it is started manually, the following popup errormessage is displayed:

SNA Server – ERROR # 03…OK Note: This message will not appear in the application event log.
In addition, an application exception in Snanmvt.exe occurs that generatesa Dr. Watson log in the Windows NT directory. The entry created in theDrwtsn32.log file will be similar to the following:

Application exception occurred:App: exe\snanmvt.dbg (pid=<pid #>)When: <date> @ <time>Exception number: c0000005 (access violation)function: sepdnmsd_int[...]FAULT ->67241535 803a00cmpbyte ptr [edx],0×0[...] The following messages will be logged in the Windows NT Application Eventlog:

Event ID: 4097Source: DrWatsonDescription: The application, exe\snanmvt.dbg, generated an applicationerror. The error occurred on<date> @<time>. The exception generatedwas c0000005 at address 67241535 (sepdnmsd_int)Event ID: 624Source: SNA ServerDescription: Creating dump file <snaroot>\traces\snadump.log forsnanmvt.exe
Resolution
The application exception occurs because a corrupted buffer caused stackcorruption while attempting to display popup errors that contained longerror messages. The error message that results from starting the SnaNetMnservice contains a long description, which is why the application exceptionoccurs.
Note: Other errors may result in an application exception when a popuperror message is being displayed. These application exceptions may bereported against components other than Snanmvt.exe.