草庐IT

connect_failed

全部标签

windows - Jenkins Windows 从站 : Authentication failed if running as service

我有一个在Windows10(1607)上运行的Jenkins从站。如果我以JNLP的形式直接运行从站,这个从站可以从git存储库克隆(使用用户名和密码进行身份验证)。如果我启动同一个从服务器作为服务,gitclone会失败并显示Authenticationfailedfor...。该服务是通过从站的"file"菜单创建的,并作为“本地系统帐户”运行。出了什么问题?这是Jenins的输出:00:00:00.003Startedbyuser00:00:00.005ln-sbuilds/lastSuccessfulBuild/var/jenkins_home/jobs/Xamarin/jo

python - 运行 fully_connected_feed.py 时出错

当我运行fully_connected_feed.py代码时:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/mnist/fully_connected_feed.py我得到一个错误:Traceback(mostrecentcalllast):File"C:/Users/AppData/Local/Continuum/Anaconda3/Lib/site-packages/tensorflow/examples/tutorials/mnist/fully_connect

windows - npm 安装错误 : `gyp` failed with exit code: 1

我尝试使用npm5.6.0在Windows10上安装模块。当我输入npminstall时,我得到:gypERR!configureerrorgypERR!stackError:`gyp`failedwithexitcode:1gypERR!stackatChildProcess.onCpExit(C:\Users\xiaooming\Desktop\app\node_modules\node-gyp\lib\configure.js:336:16)gypERR!stackatemitTwo(events.js:126:13)gypERR!stackatChildProcess.emit

c# - 重现 "A connection that was expected to be kept alive was closed by the server."

我们在winforms应用程序中使用WebClient、.NET3.5sp1。对于一些用户来说,这个结果在消息异常中:“基础连接已关闭:服务器关闭了预期保持事件状态的连接。”在网络上搜索了一下,建议“修复”以禁用httpkeepalive,我们对此并不真正感兴趣,有人认为它可能是.NET库中的错误,等等。错误消息表明它是一个keepaliv'edhttp连接,它以某种方式被服务器(或代理)关闭,而WebClient的底层未正确检测到它。我们正在考虑捕获这个特定案例,然后再次尝试该请求。但是我们无法重现此异常。所以。我们如何才能正确捕获产生上述错误消息的情况。catch(WebExcep

c# - Azure 存储 : 403 Server failed to authenticate the request

我在此处和Google中进行了搜索,但找不到解决方案。我想使用我的C#代码从Azure存储Blob中读取文件。代码(仅6行)在另一个项目(Windows8.1通用应用程序)中运行良好,但在我的新Windows10UWP应用程序中运行不佳。这是我的代码:CloudStorageAccountstorageAccount=CloudStorageAccount.Parse(azureConnectionString);CloudBlobClientblobClient=storageAccount.CreateCloudBlobClient();CloudBlobContainercont

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# - 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# - 加载配置文件时如何修复 "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# - connection.Close() 和 connection.Dispose() 有什么区别?

这个问题在这里已经有了答案:CloseandDispose-whichtocall?(8个答案)关闭9年前。我注意到System.Data.SQLite中的SQLiteConnection对象拥有两个相似的方法:关闭()Dispose()SQLiteDataReader对象也是如此。有什么区别?