草庐IT

INSTALL_FAILED_VERSION_DOWNGRADE

全部标签

c# - ClickOnce 部署 "Activation failed"FileNotFoundException

我刚刚部署了对clickonce应用程序的更新。我已经毫无问题地部署了数十个更新。现在突然之间,有了这个更新,我所有的用户都报告了这个错误:错误总结Belowisasummaryoftheerrors,detailsoftheseerrorsarelistedlaterinthelog.*ActivationofC:\Users\XXX\AppData\Roaming\Microsoft\Windows\StartMenu\Programs\XXX\XXX\XXX.appref-ms|resultedinexception.Followingfailuremessagesweredet

c# - 如何通过 LINQ 在二维数组中进行搜索?[version2]

我有一个像这样的2D数组:string[,]ClassNames={{"A","Red"},{"B","Blue"},{"C","Pink"},{"D","Green"},{"X","Black"},};我通过for语句在1nd列中搜索ClassName并在2ndColorName像这样的强>列:stringclassName="A";stringcolor="Black";for(inti=0;i我想使用LINQ而不是for语句来获取className的color。如何将上面的for语句转换为LINQ。 最佳答案 您可以使用Enu

c# - Entity Framework 给出异常 : "The underlying provider failed on Open."

我有一个测试。发生的情况是,无论何时首先执行test1,test2都会失败并显示消息:"System.Data.EntityException:System.Data.EntityException:theunderlyingproviderfailedonopen.cannotopendatabase"DBEntities"requestedbythelogin.Theloginfailed.".只要先执行test2,test1就会失败并显示相同的消息。过去3天我一直在处理这个问题。[TestClass]classMyTestClass{DBEntitiesdb;[TestIniti

c# - 为什么使用 ConfigurationManager.GetSection 会导致 "SecurityException: Request failed"但 ConfigurationManager.OpenExeConfiguration 不会?

我有一些好奇,希望.Net专家可以帮助我。我有一个自定义配置部分,为了掌握它,我这样做:vars=(TestConfigurationSection)ConfigurationManager.GetSection("testSection");我在我的开发机器(Windows7,64位,Windows完全最新)上运行它并且运行良好。我将包含该代码的exe文件放入WindowsServer2008R2机器上的c:\users\public目录中,打开一个以管理员身份运行命令提示符,运行它,我得到:System.Configuration.ConfigurationErrorsExcept

c# - 请求类型为“System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0”的权限

我有一个WPF网络应用程序,我正在尝试访问SQL2000数据库,但出现以下错误:Requestforthepermissionoftype'System.Data.SqlClient.SqlClientPermission,System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089'failed.知道如何解决这个问题吗?我可能需要一个示例,因为我是新手,这是我的第一个WPF应用程序。 最佳答案 尝试切换到完全信任应用程序。

ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)

今天在Ubuntu中的pycharm软件安装matplotlib模块时出现,如下问题,提示pip版本不符合,需要更新ERROR:Couldnotfindaversionthatsatisfiestherequirementmatplotlib(fromversions:none)ERROR:Nomatchingdistributionfoundformatplotlib使用如下命令,更新pip版本,并没有成功python-mpipinstall--upgradepip提示如下的问题,CouldnotfetchURLhttps://pypi.org/simple/pip/:Therewasapr

c# - 加载配置文件时如何修复 "Configuration system failed to initialize/Root element is missing"错误?

我在我的C#Windows应用程序中遇到了这个错误:“配置系统初始化失败”。它运行良好。突然我得到了这个异常(exception)。它将内部异常详细信息显示为“缺少根元素”。(C:\Users\company\AppData\Local\Clickbase_Corp_Sverige_AB\TouchStation.vshost.exe_Url_no1nets4fg3oy2p2q2pnwgulbvczlv33\1.1.0.12\user.config)”}。当我尝试从Settings.cs类获取值时会发生这种情况。在program.cs文件中写了下面的代码if(Properties.Se

c# - "The request failed with an empty response"调用网络服务时

当从aspx页面调用托管在服务器中的网络服务时,我收到类似“请求失败,响应为空”的错误。我页面中的代码try{HttpWebRequestrequest1=(HttpWebRequest)WebRequest.Create("https://login.erp.com/rodeprovisioning/provisioning.asmx");request1.Accept="text/xml";request1.Method="POST";WebProxyproxyObject=newSystem.Net.WebProxy("http://10.0.0.1:8080/",true);r

c# - 使用 EF4(edmx 模型)时偶尔出现 "The underlying provider failed on Open"错误

我希望有人能帮我解决以下错误。发生错误的应用程序正在生产中运行,我自己从未遇到过错误。然而,我每天大约有20次收到错误邮件,告诉我:TheunderlyingproviderfailedonOpen.--->System.InvalidOperationException:Theconnectionwasnotclosed.Theconnection'scurrentstateisconnecting.这是堆栈跟踪System.Data.EntityException:TheunderlyingproviderfailedonOpen.--->System.InvalidOperati

c# - 无法加载文件或程序集 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' 或其依赖项之一

我发现了几个与此问题相关的线程,但没有一个解决了我的问题。我之前一直在我的ASP.NET服务中使用log4netversion1.2.10.0。我已经将它更新到当前版本log4netv2.0.8.0,由于一些第三方库,我还在我的web.config中添加了以下行以支持/重定向旧版本。我也对这些Messages一头雾水内部异常:((System.IO.FileLoadException)ex.InnerException.InnerException).MessageCouldnotloadfileorassembly'log4net,Version=1.2.10.0,Culture=n