我正在尝试在一个.NET应用程序中使用PHP Phalanger curl库php_curl.mng.dll。我将我的App.config设置如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<phpNet>
<classLibrary>
<add assembly="php_curl.mng, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="curl" />
</classLibrary>
</phpNet>
</configuration>我尝试在C#中调用curl_init():
PHP.Library.Curl.curl_init();代码编译时没有错误,但在到达指令时会触发异常:
PHP.Core.PhpException: Call to undefined external function 'curl_init', extension 'php_curl' - check configuration.会有人知道我错过了什么吗?
谢谢,
埃里克。
发布于 2009-11-10 23:14:02
实际上,我只是在这个线程http://phalanger.codeplex.com/discussions/1345中找到了解决方案
请参阅ladaprosek的帖子以及将App.config复制到目标目录的需要。
https://stackoverflow.com/questions/1707053
复制相似问题