简体   繁体   中英

Cannot find or open the PDB file message in using of C# interface to SWI-Prolog

I want to use C# interface to SWI-Prolog. so I add the SwiPlCs.dll to project references and set SWI_HOME_DIR environment variable but when i test my application with this sample in here ,I get this error:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

And the output from debug show:

The thread 0x1bec has exited with code 259 (0x103).

'swicall.vshost.exe' (CLR v4.0.30319: swicall.vshost.exe): Loaded 'G:\\testingpro\\MYAPP\\swicall\\bin\\Debug\\swicall.exe'. Symbols loaded.

'swicall.vshost.exe' (CLR v4.0.30319: swicall.vshost.exe): Loaded 'G:\\testingpro\\MyAPP\\swicall\\bin\\Debug\\SwiPlCs.dll'. Cannot find or open the PDB file.

A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

'swicall.vshost.exe' (CLR v4.0.30319: swicall.vshost.exe): Loaded 'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Configuration\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

IF I copy swi-prolog dll files to my APP directly, the sample code works ,but my codes faces with the 'Cannot find or open the PDB file 'message.

How to can I fix this error?

other information: OS:win8-64bit vs:2013-32bit SwiPlCs_1.1.60605.0 Swi-prolog ver7.3.8 Environment.SetEnvironmentVariable("SWI_HOME_DIR", @"C:\\Program Files (x86)\\swipl")

I also faced the same problem. I installed the windows symbols from Microsoft site and error resolve. now sample code works fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM