0

我在让我的应用程序进入我的服务时遇到问题。它在本地运行以便能够进行测试。我选中了“启用非托管代码调试”框,这让我可以进入它,但现在我收到了这条消息:

在此处输入图像描述

我调用服务的应用程序和应用程序都在同一个解决方案中。

如何启用调试以便我可以看到为什么会出现错误?

更新#1

我将默认浏览器更改为 IE 并收到以下消息:

Locating source for 'S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs'. Checksum: MD5 {8a b6 a0 5e 2b d2 81 2c 52 bf 54 64 e1 85 53 f6}
Determining whether the checksum matches for the following locations:
1: S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs Checksum: MD5 {c4 50 5b 92 f7 49 fd 8c 66 ba b3 44 89 6c 25 de} Checksum doesn't match.
The file 'S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs' exists.
Looking in script documents for 'S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs'...
Determining whether the checksum matches for the following locations:
1: S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs Checksum: MD5 {c4 50 5b 92 f7 49 fd 8c 66 ba b3 44 89 6c 25 de} Checksum doesn't match.
Looking in the projects for 'S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
Looking in directory 'S:\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs.
The debugger could not locate the source file 'S:\Source\Web Projects\TruckApps\TruckService\TruckService\TruckService.svc.cs'.

更新 2

我做了达米特所说的我现在收到了这条消息:

An exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll but was not handled in user code

Additional information: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
4

0 回答 0