[英]dll not loaded from bin directory
I have some troubles on using firebird embedded in my application . 我在使用嵌入在应用程序中的firebird时遇到了一些麻烦。
if i reference it with the full path in web.config it work 如果我在web.config中使用完整路径引用它,则它可以工作
part of the connectionstring :
连接字符串的一部分:
client library=C:\Dev\WEB\Projects\project1\bin\fbembed.dll;
but if i simply put 但是如果我只是把
client library=fbembed.dll
i have a dllnotfoundexcetion . 我有一个dllnotfoundexcetion。
i have also checked that the dll and all it's dependencies exists in the Bin folder, and like i said with the full path everything work fine . 我还检查了dll及其所有依赖项是否存在于Bin文件夹中,并且就像我说的那样,使用完整路径可以正常工作。
any idea please ? 有什么想法吗?
it wierd but it's solved :) 它很奇怪,但是已经解决了:)
client library=fbembed
without ".dll" 没有“ .dll”
from comments: 来自评论:
Here it is in context, please note client library=fbembed without ".dll" extension 在上下文中,请注意客户端库= fbembed,不带“ .dll”扩展名
<add name="FBEntities" connectionString="metadata=res://*/FBEmbedModel.csdl|res://*/FBEmbedModel.ssdl|res://*/FBEmbedModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string="client library=fbembed;initial catalog=|DataDirectory|D2015.gdb;user id=sysdba;password={password};Connection lifetime = 0; Pooling = true; MinPoolSize = 0; MaxPoolSize = 500; Packet Size = 8192; ServerType = 1"" providerName="System.Data.EntityClient" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.