VS2017调试Android出现"System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Ve

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yibao0104/article/details/74914883

使用visual studio 2017调试安卓程序,遇见

"System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies." 


解决方法:

1.下载"Mono.Posix.dll"

2.放到C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Xamarin.VisualStudio目录下。

3.重启visual studio。


展开阅读全文

Could not load file or assembly 'NHibernate'

05-16

Could not load file or assembly 'NHibernate' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) rnrnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.IO.FileLoadException: Could not load file or assembly 'NHibernate' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rnrnAssembly Load Trace: The following information can be helpful to determine why the assembly 'NHibernate' could not be loaded.rnrn=== Pre-bind state information ===rnLOG: User = STEVEN\stevenlirnLOG: DisplayName = NHibernatern (Partial)rnLOG: Appbase = file:///D:/Work/sourcecode/paybill/PayBill.UI.Web/rnLOG: Initial PrivatePath = D:\Work\sourcecode\paybill\PayBill.UI.Web\binrnCalling assembly : System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.rn===rnLOG: This bind starts in default load context.rnLOG: Using application configuration file: D:\Work\sourcecode\paybill\PayBill.UI.Web\web.configrnLOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.rnLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).rnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/paybill.ui.web/f55ce66e/1fe116e6/NHibernate.DLL.rnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/paybill.ui.web/f55ce66e/1fe116e6/NHibernate/NHibernate.DLL.rnLOG: Attempting download of new URL file:///D:/Work/sourcecode/paybill/PayBill.UI.Web/bin/NHibernate.DLL.rnLOG: Using application configuration file: D:\Work\sourcecode\paybill\PayBill.UI.Web\web.configrnLOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.rnLOG: Post-policy reference: NHibernate, Version=1.0.2.0, Culture=neutral, PublicKeyToken=154fdcb44c4484fcrnERR: Failed to complete setup of assembly (hr = 0x80070057). Probing terminated.rnrn rn 论坛

关于Could not load file or assembly 错误的问题

03-23

rnrn搞了一下午。实在找不到哪里有问题。rnrn错误提示:rnServer Error in '/' Application.rnCould not load file or assembly 'WebSite.Core.AccessDAL' or one of its dependencies. 系统找不到指定的文件。rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.rnrnException Details: System.IO.FileNotFoundException: Could not load file or assembly 'WebSite.Core.AccessDAL' or one of its dependencies. 系统找不到指定的文件。rnrnSource Error:rnrnLine 13: rnLine 14: string className = path + ".SiteConfig";rnLine 15: return (WebSite.Core.IDAL.ISiteConfig)Assembly.Load(path).CreateInstance(className);rnLine 16: rnLine 17: rnrnrnSource File: E:\Web\ChnValve\Site.Core\DALFactory\DataAccess.cs Line: 15rn上面:path值为:WebSite.Core.AccessDAL,下有一个siteconfig类rn 这个文件确实存在的。。。就是不明白问题出在哪里了rnrn问题补充:WebSite.Core是一个项目rn文件夹:rnBLL(业务逻辑层)rn文件rnnamespace WebSite.Core.BLLrnrnpublic class SiteConfigrnrnprivate static readonly ISiteConfig dal=WebSite.Core.DALFactory.DataAccess.CreateConfig();rn/// rn/// 更新配置信息rn/// rn/// rnpublic void UpdateConfig(SiteConfigInfo info)rnrndal.UpdateConfig(info);rnrnrnrnIDAL(数据访问层接口)rn代码:rnnamespace WebSite.Core.IDALrnrn/// rn/// 站点配置数据访问层接品rn/// rnpublic interface ISiteConfigrnrn/// rn/// 更新配置接口rn/// rn/// rnvoid UpdateConfig(SiteConfigInfo config);rn/// rn/// 获取配置接口rn/// rn/// rnSiteConfigInfo GetConfig(int id);rnrnrnACCESS数据访问层代码:rnrnnamespace WebSite.Core.AccessDALrnrnpublic class SiteConfig:ISiteConfigrnrnDbDataReader reader;rn/// rn/// 更新系统配置rn/// rn/// rnpublic void UpdateConfig(SiteConfigInfo info)rnrnSiteConfigInfo siteConfig = new SiteConfigInfo();rnstring sqlText = "update site_config set siteName=@siteName,siteDomain=@siteDomain,siteMail=@siteMail,copyRight=@copyRight,newsTemplate=@newsTemplate,newsCatalogTemplate=@newsCatalogTemplate,newsSavePath=@newsSavePath,newsPageSize=@newsPageSize,productTemplate=@productTemplate,productCatalogTemplate=@productCataLogTemplate,productSavePath=@productSavePath,productPageSize=@productPageSize,messagePageSize=@messagePageSize,imageSavePath=@imageSavePath";rnOleDbParameter[] parms =rnnew OleDbParameter(&qurn 论坛

Could not load file or assembly 'System.Web.Extensions, ,怎么办?谢谢

08-20

现在找开网页,出现下面提示,我该怎么办?谢谢rnServer Error in '/' Application.rn--------------------------------------------------------------------------------rnrnConfiguration Error rnDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. rnrnParser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。rnrnSource Error: rnrnrnLine 34: rnLine 35: rnLine 36: rnLine 37: rnLine 38: rn rnrnSource File: C:\Program Files\JiangMin\Netcenter\web.config Line: 36 rnrnAssembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.rnrnrnWRN: Assembly binding logging is turned OFF.rnTo enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.rnNote: There is some performance penalty associated with assembly bind failure logging.rnTo turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 rn 论坛

没有更多推荐了,返回首页