.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 for December, 2009

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.

Application Exception in Snamanag!CSISend

Symptoms
The SNA Server Manage Agent service (MngAgent.exe) may generate anapplication exception when stopping an LU. When this problemoccurs, theWindows NT Application Event Log contains a message similar to thefollowing:

Event ID: 624Source: SNA ServerDescription: Creating dump file C:\SNA\traces\snadump.log formngagent.exe.If Drwtsn32.exe is the default debugger on the Windows NT Servercomputer that is running SNA Server, an entry similar to the following willbe included in the Drwtsn32.log in the Windows NT directory:

Application exception occurred:App: exe\mngagent.dbg (pid=250)When: 5/20/1998 @ 8:18:57.93Exception number: c0000005 (access violation)(…)function: CSISend614846d6 50pusheax614846d7 ff1588104861ds:61481088=77f02df5calldword ptr[_imp__LocalLock(61481088)]614846dd 8b542414movedx,[esp+0x14]ss:035de73b=????????614846e1 8b5204movedx,[edx+0x4]ds:05873cd2=????????614846e4 66897204mov[edx+0x4],sids:05873cd3=????614846e8 8b4d0cmovecx,[ebp+0xc]ss:01508676=????????614846eb 8bf0movesi,eax614846ed 8bc1moveax,ecx614846ef 8d7a09leaedi,[edx+0x9]ds:05873cd2=????????614846f2 c1e902shrecx,0×2FAULT -<614846f5 f3a5repmovsdds:00114000=????????es:044552e5=0004001a614846f7 8bc8movecx,eax614846f9 83e103andecx,0×3614846fc f3a4repmovsbds:00114000=??es:044552e5=1a614846fe 668b4d0cmovcx,[ebp+0xc]ss:01508677=????61484702 66894a06mov[edx+0x6],cxds:05873cd3=????61484706 8b5508movedx,[ebp+0x8]ss:01508676=????????61484709 52pushedx6148470a ff1560104861ds:61481060=77f02d13calldword ptr[_imp__LocalUnlock(61481060)]61484710 8a4322moval,[ebx+0x22]ds:0150a0d6=??61484713 8d4c2424leaecx,[esp+0x24]ss:035de73b=????????61484717 fec0incal*—-< Stack Back Trace >—-*FramePtr ReturnAd Param#1Param#2Param#3Param#4Function Name021bfd4c 6148452f 000eb6d0 000e9c70 00113ffc 000eb6d0 snamanag!CSISend(FPO: [EBP 0x000eb6d0] [2,3,4])021bfd60 61481996 000eb6d0 07087fff 0000050a 00113ff0snamanag!CSIPreQueue(FPO: [9,0,2])021bff38 60b0530c 040805c4 00252d00 00000004 6098a984snamanag!SNAStopService(FPO: [EBP 0xffffffff] [1,104,4])021bff48 6098a984 021bff58 00252d00 002bf670 0000064emngsna!CDispLUServe::OnCommand(FPO: [1,1,1])021bff64 6098a84d 77e71b04 6098a800 77e719c8 60b045fbmngbase!CNotifyQueue::Dispatch(FPO: [0,4,1])021bff74 60b045fb ffffffff 7ffdf000 0111ffb8 021bffecmngbase!CNotifyQueue::ProcessWait(FPO: [1,0,3])021bffb8 77f04f2c 00000000 7ffdf000 0111ffb8 00000000 mngsna!DoMngSna(FPO: [EBP 0x7ffdf000] [1,11,4])7ffdf000 ffffffff 01000000 000805c0 00020000 00000000kernel32!lstrcmpiW00010000 0050004d 00540055 00520045 0041004e 0045004drpcrt4!<nosymbols>
Resolution
SNA Server 3.0To resolve this problem, obtain the latest service pack for SNA Server version 3.0. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
184307?(http://support.microsoft.com/kb/184307/EN-US/) How to Obtain the Latest SNA Server Version 3.0 Service Pack
SNA Server 4.0This problem was corrected in the latest Microsoft SNA Serverversion 4.0 U.S. Service Pack. For information on obtaining this Service Pack,query on the following word in the Microsoft Knowledge Base (without thespaces):

S E R V P A C K

Application Exception in Snalink!UpdateDLSData

Symptoms
SNA Server or Host Integration Server 2000 systems being used to distribute DLC 802.2 link services for use by branch SNA Servers and/or Host Integration 2000 servers in a Distributed Link Service (DLS) environment may experience an application exception in Snalink!UpdateDLSData.
NOTE: The problem only occurs when a DLS connection terminates unexpectedly. Therefore, the Application Event log may contain events normally associated with connection outages prior to the application exception. Common connection outage events logged by SNA Server/HIS 2000 include the following events: 23, 227, 226.
Resolution
The application exception occurs when a NULL message pointer is passed into the UpdateDLSData function.

Application Exception in Rasman.exe in Function SnaRasUnbind()

Symptoms
An SNA Server computer using SNARAS may experience an application exceptionin Rasman.exe in function SnaRasUnbind() after successfully opening andclosing a number of SNARAS connections in succession.
An entry similar to the following will be written to a Drwtsn32.log file inthe Windows NT directory when the application exception occurs:

Application exception occurred:App: exe\rasman.dbg (<process id>)When: <date> @ <time>Exception number: c0000005 (access violation)<data omitted>function: SnaRasUnbind<data omitted>FAULT ->63701c81 8b7604mov esi,[esi+0x4]ds:014bfa0e=????????<data omitted> In one reported instance of this problem, the application exceptionoccurred after 20 to 30 SNA Server SNARAS connections were opened and thenclosed in succession. Each connection was established to download filesfrom a remote system and was closed after the files were downloaded.
Resolution
The application exception is caused when SNARAS attempts to access memorythat has been released.

Application Exception in DMODInitReceiveAllocate

Symptoms
When you are running an Advanced Program-to-Program Communications (APPC) or Common Programming Interface for Communications (CPI-C) application, you may encounter an Access Violation (AV) in DMODInitReceiveAllocate.
If Dr. Watson is configured as the default debugger, an entry similar to the following may be appended to the Drwtsn32.log file:

function: DMODInitReceiveAlloc6721a1c4 8d54d034leaedx,[eax+edx*8+0x34]ds:040cbeef=????????6721a1c8 83c9fforecx,0xff6721a1cb 33c0xoreax,eax6721a1cd f2aerepnescasbes:02ced4e8=??6721a1cf f7d1notecx6721a1d1 2bf9subedi,ecx6721a1d3 8bc1moveax,ecx6721a1d5 8bf7movesi,edi6721a1d7 8bfamovedi,edx6721a1d9 c1e902shrecx,0×2FAULT ->6721a1dc f3a5repmovsd ds:0284f79c=20202020 es:02ced4e8=????????6721a1de 8bc8movecx,eax6721a1e0 83e103andecx,0×36721a1e3 f3a4repmovsbds:0284f79c=20 es:02ced4e8=??6721a1e5 33c0xoreax,eax6721a1e7 8b7dc4movedi,[ebp-0x3c]ss:03c2e26e=????????6721a1ea 668b4704movax,[edi+0x4]ds:040cbeef=????6721a1ee 8d0c40leaecx,[eax+eax*2]ds:0000001b=????????6721a1f1 c1e103shlecx,0×36721a1f4 2bc8subecx,eax6721a1f6 8bb548ffffffmovesi,[ebp+0xffffff48]ss:0284f7b0=02cc025c6721a1fc c744ce1004000000ds:013dea0d=????????movdword ptr [esi+ecx*8+0x10],0×4*—-> Stack Back Trace <—-*FramePtr ReturnAd Param#1Param#2Param#3Param#4Function Name0284f868 63404de3 62e1b5b0 00000001 00a9a4bc 00a9a4d8 snadmod!DMODInitReceiveAlloc (FPO: Non-FPO [5,128,3])0284f89c 63403254 00000000 63401bb6 0284fa0c 0f7e0000 wappc32!receive_allocate_proc(FPO: [EBP 0x00014000] [0,3,4])0284f8a4 63401bb6 0284fa0c 0f7e0000 00000000 77f674c0 wappc32!ps_verb_router(FPO: [0,0,1])0284f9bc 63401737 0f7e0000 00000002 62e018a0 00000000 wappc32!Appc_Main(FPO: [EBP 0x0284fa0c] [4,65,4])
Resolution
The application exception is caused by a buffer overrun during Dynamic Load processing.

An unrecoverable error occurs and you receive the “Game has encountered a problem and needs to close” error message when you start or play a Microsoft game

Symptoms
When you start or play a game and an unrecoverable error occurs, you may receive the following error message:

Gathering exception data. Then, you may receive the following error message:

Game has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on may be lost. Please tell Microsoft about this problem. We have created an error report that you can send to help us improve Game. We will treat this report as confidential and anonymous. To see what data this error report contains, click here.
Resolution
If you choose to send an error report, Microsoft will analyze the fault data and try to identify and correct the issues that are involved. At the time of reporting, the Error Reporting tool checks to see whether the issue that you have encountered has already been fixed. When the tool checks, an Error Reporting dialog box opens that indicates that the tool is preparing an error report. If an update or a workaround exists for the specific issue that you reported, you will be able to click to view more information. If there is no information about the specific issue that you reported or if you did not choose to report the issue, click to view the following Microsoft Knowledge Base article for general information about how to troubleshoot unrecoverable errors.
Microsoft Windows XP and earlier versions
303032?(http://support.microsoft.com/kb/303032/) The game stops responding or closes unexpectedly when you start or play a Microsoft game
Windows VistaTo resolve this issue, follow the steps in the appropriate section.
The computer is connected to the Internet View the “Troubleshoot game problems” topic on the following Windows Online Help and Support Web site:
http://windowshelp.microsoft.com/Windows/en-US/Help/d4753757-3365-475c-86a1-ccfa2f6cba161033.mspx(http://windowshelp.microsoft.com/Windows/en-US/Help/d4753757-3365-475c-86a1-ccfa2f6cba161033.mspx)
The computer is not connected to the Internet View the “Troubleshoot game problems” topic in Windows Help and Support on the computer’s hard disk by following these steps: Click Start, and then click Help and Support. In the Search Help box or in the Search online Help box, type Troubleshoot game problems, and then click Search Help. In the list of topics, click Troubleshoot game problems. Click the link that best describes the problem that you are experiencing. Follow the suggestions to troubleshoot the problem that you are experiencing.