0

我正在使用 Microsoft Visual Web Developer 2010 Express 构建一个网页,该网页从数据库中提取数据以填充带有相关选项的下拉列表。当我在开发人员中调试页面时,一切正常,但是当我通过使用 IE 导航到生产页面来测试生产页面时,我得到一个 Visual Studio 即时调试器窗口,显示“w3wp.exe 中发生未处理的 win32 异常 [ #####]" 其中##### 是每次出现错误时都会更改的数字。经过一番研究,我发现当程序尝试调用任何 OdbcConnection.Open() 方法时会发生错误。下面是来自 DebugDiag 的一些异常信息。

异常信息:

In w3wp__TTFCUAppPages__PID__1704__Date__04_25_2013__Time_12_37_29PM__536__Second_Chance_Exception_E0434352.dmp the assembly instruction at KERNELBASE!RaiseException+58 in C:\Windows\System32\KERNELBASE.dll from Microsoft Corporation has caused a CLR Exception on thread 23with the following error information:



    Type: 

System.AccessViolationException



    Message: 

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

这是调用堆栈:

.NET Call Stack



Function


Full Call Stack



Function

    Arg 1

    Arg 2

    Arg 3

    Arg 4

  Source



KERNELBASE!RaiseException+58

    e0434352

    00000001

    00000005

    058bf568





clr!RaiseTheExceptionInternalOnly+276

    181aba38

    00000000

    00000000

    181aba38





clr!RaiseTheException+87

    181aba38

    00000000

    00000004

    058bf760





clr!RaiseTheException+fe

    00000000

    00000004

    00000004

    5df9e75e





clr!RealCOMPlusThrow+3d

    181aba38

    00000000

    00000004

    058bf76c





clr!RealCOMPlusThrow+12

    181aba38

    00000004

    56dd0faf

    6d7e95d4





clr!Thread::RaiseCrossContextException+3e0

    00000000

    058bf7bc

    56dd0093

    03d1ea38





clr!Thread::DoADCallBack+2f3

    00000002

    6d98fe4e

    058bf878

    00000001





clr!UM2MDoADCallBack+c0

    00b44760

    ffffffff

    058bf8e0

    00000010





0x00a51ff8

    00000000

    00ac74a4

    00000003

    0000000c





webengine4!W3_MGD_HANDLER::ProcessNotification+5b

    00ac74a4

    69f81398

    058bf95c

    6d7878af





webengine4!ProcessNotificationCallback+36

    00ac74a4

    56dd019f

    0000ffff

    00040004





clr!UnManagedPerAppDomainTPCount::DispatchWorkItem+195

    058bf9bf

    058bf9be

    56dd010f

    00000000





clr!ThreadpoolMgr::NewWorkerThreadStart+20b

    00000000

    56dd02f7

    00000000

    6d788499





clr!ThreadpoolMgr::WorkerThreadStart+3d1

    00000000

    76f637fa

    76f637b8

    00000000





clr!Thread::intermediateThreadProc+4b

    00b858b8

    058bfd98

    76f6377b

    00b858b8





kernel32!BaseThreadInitThunk+e

    00b858b8

    7dd9933f

    00000000

    00000000





ntdll!__RtlUserThreadStart+70

    6d877698

    00b858b8

    00000000

    00000000





ntdll!_RtlUserThreadStart+1b

    6d877698

    00b858b8

    00000000

    00000000
4

1 回答 1

0

解决方案是将 ASPNET 内置用户添加到本地 DB2ADMNS 和 DB2USERS 组。开始菜单 右键单击​​“计算机” 选择“管理” 展开“本地用户和组” 单击“组” 找到“DB2ADMNS”和“DB2USERS”组。将“ASPNET”用户添加到每个组。

于 2013-12-31T19:46:22.907 回答