草庐IT

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

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# - 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# - "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# - 自定义工具错误 : Failed to generate file

我正在开发一个在VS2012(Framework4.5)windows窗体中创建的windows应用程序(C#)。要求要求它用于旧版本的Windows,因此我将目标框架设置为.NETFramework4并将平台目标设置为x86。一旦完成并尝试编译,我会收到以下错误:Customtoolerror:Failedtogeneratefile:Theservicereferenceisnotvalidforthecurrent.NETFrameworkversionorprojecttype.Youcanchangetheservicereferenceconfigurationinthe.