I have a Coded UI + SpecFlow test project (.NET Framework 4).
I want to perform remote test execution, so I configured a Visual Test Agent - Controller environment setup. My local machine is the Controller and there is a virtual machine which is the agent. The AUT will run on a Windows Embedded System with Windows XP SP3. The AUT is a WPF application.
VM properties:
Windows XP SP 3
Microsoft Test Agent 2012 is installed on the VM (Agents for Visual Studio 2012 Update 3)
The agent-controller communication is established successfully (Agent - Online, OK; Controller - Running, OK; TestSettings.testsettings - Configured, OK). The test execution is performed using mstest.
The following error is displayed when I execute the tests:
Test Name: CodedUITestMethod1
Test FullName: Remote.Test.CodedUITest1.CodedUITestMethod1
Test Source: c:\Users\user\Documents\Visual Studio 2012\Projects\Remote.Test\Remote.Test\CodedUITest1.cs : line 27
Test Outcome: Failed
Test Duration: 0:00:01.7131241
Result Message: Error calling Initialization method for test class Remote.Test.CodedUITest1: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Result StackTrace:
--- End of inner exception stack trace ---
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Microsoft.VisualStudio.TestTools.UITest.Framework.UITestExtensionPackageManager.LoadAssembly(String assemblyFile)
By definition Coded UI does not support Windows XP.
Is there a workaround for the upper mentioned issue? Any suggestions?
Thank you,
Isolation of Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.dll from c:\Program Files\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages\ solved the problem. Action was performed on the remote VM.
The tests are up and running.
Related
Please help me finding a solution to these errors i'm getting wehen open BizTalk Administration Console after updating to MS security update KB4338815:
First error:
Failed to load Group [xxxxxx:BizTalkMgmtDb] data providers. (Microsoft.BizTalk.Administration.SnapIn)
Failed to load Group [xxxxxx:BizTalkMgmtDb] data providers. (Microsoft.BizTalk.Administration.SnapIn)
For help, click: http://go.microsoft.com/fwlink/?LinkId=47400&ProdName=Microsoft+BizTalk+Server+2013+R2&ProdVer=3.11.158.0&EvtSrc=Microsoft.BizTalk.Administration.SnapIn.Properties.Errors&EvtID=FailedLoadingGroupProviders&EvtChain=Microsoft.BizTalk.Administration.SnapIn.Properties.Errors+%2cFailedLoadingGroupProviders%3bBTSAdminMsg+%2c9218
===================================
Failed to load Group [PLYSDEVBAL07:BizTalkMgmtDb] data providers. (Microsoft.BizTalk.Administration.SnapIn)
For help, click: http://go.microsoft.com/fwlink/?LinkId=47400&ProdName=Microsoft+BizTalk+Server+2013+R2&ProdVer=3.11.158.0&EvtSrc=Microsoft.BizTalk.Administration.SnapIn.Properties.Errors&EvtID=FailedLoadingGroupProviders&EvtChain=BTSAdminMsg+%2c9218
===================================
An internal failure occurred for unknown reasons. (WinMgmt)
For help, click: http://go.microsoft.com/fwlink/?LinkId=47400&ProdName=Microsoft+BizTalk+Server+2013+R2&ProdVer=3.11.158.0&EvtSrc=BTSAdminMsg&EvtID=9218
Program Location:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementObject.Get()
at Microsoft.BizTalk.SnapIn.Framework.WmiProvider.SelectInstance(String className, String keyClause, Object[] keyValues)
at Microsoft.BizTalk.Administration.SnapIn.GroupNode.ConnectToProviders()
Second error:
Failed to create a BizTalkDBVersion COM component installed with a BizTalk server.
Class not registered (WinMgmt)
Program Location:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementObjectSearcher.Get()
at Microsoft.BizTalk.SnapIn.Framework.WmiProvider.SelectWhere(String className, String condition)
at Microsoft.BizTalk.SnapIn.Framework.WmiProvider.SelectRemote(String className, String whereClause)
at Microsoft.BizTalk.Administration.SnapIn.Nodes.AdaptersFolder.get_Adapters()
at Microsoft.BizTalk.Administration.SnapIn.Nodes.AdaptersFolder.RefreshChildren()
For our environment Windows 2012 R2 & BizTalk 2013 R2:
After lot of trial and errors, uninstalling KB4338605 & KB4338419 patches resolved the issue.
Removing KB4338419 resolved my issues (Windows Server 2012 r2).
Technet: Microsoft Security Updates cause BizTalk Admin Console errors: An internal failure occurred for unknown reasons (WinMgmt)
In our environment of BizTalk 2013 R2, KB4340005 was installed as .NET update. So as per suggestions we wanted to uninstall the KB but while we checked the installed updates, We're unable to see the installed update for .NET turns out it was installed in another package. So We're unable to unistall the KB4340005.
So we did a workaround as suggested by Microsoft . https://support.microsoft.com/en-us/help/4345913
We added the Network Service account to local administrator Group.
Apologies for my lack of knowledge as I do not have much experience.
I have created a VB.NET application using visual basic 2015 however, when I tried to run the application on XP Professional Version 2002 SP3 I get the follow error message.
I have for the life of me do not know how to fix this. The .net framework which the application was created in was 4.5.2.
The application works perfectly on Windows 7 and Windows 10.
However, issues are only on XP
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 4.0.30319.269
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.269 (RTMGDR.030319-2600)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Documents and Settings\rwuser\Desktop\Disk Cleanup Toolkit\drive_cleanup.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.application: the manifest may not be valid or the file could not be opened.
+ Manifest XML signature is not valid.
+ SignatureDescription could not be created for the signature algorithm supplied.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [28/07/2016 09:56:20] : Activation of C:\Documents and Settings\rwuser\Desktop\Disk Cleanup Toolkit\drive_cleanup.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [28/07/2016 09:56:21] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.application: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
- Manifest XML signature is not valid.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Security.Cryptography.CryptographicException
- SignatureDescription could not be created for the signature algorithm supplied.
- Source: System.Security
- Stack trace:
at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignatureReturningKey(AsymmetricAlgorithm& signingKey)
at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
XP only supports the .NET Framework up to version 4.0. If you want to run it on XP you'll need to change the target framework to 4 and re-compile the project.
https://blogs.msdn.microsoft.com/dotnet/p/dotnet45xp/
I am using EntityFramework 7 with Microsoft SQL server in asp.net 5. I am using EntityFramework.MicrosoftSqlServer: 7.0.0-rc1-final.
When I run my web application in visual studio everything it works as expected.
But, I want to run my application in Docker. I am using official Docker image for running asp.net application:
microsoft/aspnet:1.0.0-rc1-update1-coreclr
Here is my dockerfile:
FROM microsoft/aspnet:1.0.0-rc1-update1-coreclr
COPY project.json /app/
WORKDIR /app
RUN ["dnu", "restore"]
COPY . /app
ARG CONTAINER_PORT=5000
ARG SERVER_URLS=http://*:$CONTAINER_PORT
ENV SERVER.URLS $SERVER_URLS
EXPOSE $CONTAINER_PORT
ENTRYPOINT ["dnx", "-p", "project.json", "web"]
Build is successful in docker, but when I run application I get following error after application starts:
Application startup exception: System.IO.FileLoadException: Could not load file or assembly 'app, Culture=neutral, PublicKeyToken=null' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
[36mwebapi_1 | [0mFile name: 'app, Culture=neutral, PublicKeyToken=null' ---> Microsoft.Dnx.Compilation.CSharp.RoslynCompilationException: /app/Startup.cs(33,18): DNXCore,Version=v5.0 error CS1061: 'EntityFrameworkServicesBuilder' does not contain a definition for 'AddSqlServer' and no extension method 'AddSqlServer' accepting a first argument of type 'EntityFrameworkServicesBuilder' could be found (are you missing a using directive or an assembly reference?)
The problem seems to be in 'AddSqlServer' command. Strange thing is that it works when built and runt from visual studio. Does anyone know something about this problem?
Thanks.
Try explicitly sharing your drive with the Docker host. If you are using docker-machine, this is under the settings for default in Virtual Box. If you have the Docker for Windows beta, you can do it in the settings from the task bar icon. It may not be that the extension method is missing, only that Docker can't access it.
Unable to Install Quality Center Client Side on the client's machine.
Operating System: Windows Vista
IE Version:9
We tried all the basic trouble shooting steps like deleting TD_80 folder from %temp% and performing a fresh installation.
Deleting Mercury Intercative folder from
C:\program files\common files
Running the internet explorer as Administrator.
None of the above solved the problem
we are recieving the below error message:::::
HP Quality Center: Unrecoverable Error Occured.
Reason: Could not load file or assembly 'interop.OTAClient, Version=10.0.02469,Culture=neutral, PublicKeyToken=792843134cf0407a' or Contact your site administrator.
Details::::
System.IO.FileNotFoundException: Could not load file or assembly 'interop.OTAClient, Version=10.0.0.2469, Culture=neutral, PublicKeyToken=792843134cf0407a' or one of its dependencies. The system cannot find the file specified.
File name: 'interop.OTAClient, Version=10.0.0.2469, Culture=neutral, PublicKeyToken=792843134cf0407a'
at Mercury.TD.Client.Ota.Core.Application.SSPREnabled(String serverUrl)
at Mercury.TD.Client.UI.Core.Services.ConnectionManagementService.Initialize()
at Mercury.TD.Client.UI.Core.Services.BaseService.Initialize(IServiceManager serviceManager)
at Mercury.TD.Client.UI.Core.ServiceFactory1.CreateService()
at Mercury.TD.Client.UI.Core.ServiceManager.ServiceCache1.b__0()
at Mercury.TD.Client.UI.Core.ServiceManager.ServiceCache1.CreateService(ServiceConstructorDelegate1 serviceConstructor, T& service)
at Mercury.TD.Client.UI.Core.ServiceManager.ServiceCache1.GetServiceEx(ServiceConstructorDelegate1 serviceConstructor)
at Mercury.TD.Client.UI.Core.ServiceManager.ServiceCache1.GetService()
at Mercury.TD.Client.UI.Core.ServiceManager.ServiceCache1.GetBaseService()
at Mercury.TD.Client.UI.Core.ServiceManager.DoPublish[T](IServiceFactory1 factory, Boolean activate)
at Mercury.TD.Client.UI.Core.ServiceManager.PublishAndActivate[T,C]()
at Mercury.TD.Client.UI.Core.ApplicationServicesPlugin.PublishServices(IServiceManager serviceManager)
at Mercury.TD.Client.UI.Core.Services.ApplicationService.InitializePlugins()
at Mercury.TD.Client.UI.Core.Services.ApplicationService.Start(Application application)
at Mercury.TD.Client.UI.Core.Application.Start()
at Mercury.TD.Client.UI.Core.Application.Initialize(String url, String configFilePath, IDictionary2 properties)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Use the Quality Center Explorer Add-In rather than the one tied to the browser:
ALM Explorer 11
QCExplorer 10
QCExplorer 9
QC Forums
I am having some issues making a setup project in visual studio 2010. I am using Addin-express to make a program associated with Microsoft Excel and I am using in it SQLite for a simple database. I have read other answers on stackoverflow but their solutions have not aided me.
I am using SQLite.net which can be found at http://sqlite.phxsoftware.com. I have not been able to connect to that website so the direct link to the dll is http://sourceforge.net/projects/sqlite-dotnet2/
This addin is using the 32 bit version of Microsoft Office Excel, though I am running 64 bit windows 7, and so I have included the 32 bit version of the dll in the Visual Studio 2010 project. I have had no problems running the 32 bit dll in Visual Studio debugging and so I have included that same dll in my Visual Studio install project. However, when I run this install program on my virtual machine (also Windows 7 64 bit) I receive the following error and stack trace:
Detailed technical information follows:
---
(Inner Exception)
(Inner Exception)
Date and Time: 4/5/2012 7:24:52 PM
Machine Name: TOM-PC
IP Address: --------------------
Current User: Tom-PC\Tom
Application Domain: C:\Program Files (x86)\Fintools\Fintools XL\
Assembly Codebase: file:///C:/Program Files (x86)/Fintools/Fintools XL/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.5.3057.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.5.3057.2005
Exception Source:
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: Failed to load the runtime. (Exception from HRESULT: 0x80131700)
Exception Target Site: Object reference not set to an instance of an object.
---- Stack Trace ----
(Outer Exception)
Date and Time: 4/5/2012 7:24:52 PM
Machine Name: TOM-PC
IP Address: -------------------
Current User: Tom-PC\Tom
Application Domain: C:\Program Files (x86)\Fintools\Fintools XL\
Assembly Codebase: file:///C:/Program Files (x86)/Fintools/Fintools XL/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.5.3057.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.5.3057.2005
Exception Source: COMWizards
Exception Type: System.IO.FileLoadException
Exception Message: Could not load file or assembly 'System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. Failed to load the runtime. (Exception from HRESULT: 0x80131700)
Exception Target Site: GetDataTable
---- Stack Trace ----
COMWizards.SQLiteDatabase.GetDataTable(sql As String)
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
COMWizards.frmImpliedForwardRate.GetMostRecentDate(strDataTableName As String)
AddinExpress.MSO.2005.DLL: N 0020 (0x14) IL
COMWizards.frmImpliedForwardRate..ctor(appExcel As _Application, Path As String)
AddinExpress.MSO.2005.DLL: N 0110 (0x6E) IL
COMUI.AddinModule.adxIFRWiz_OnClick(sender As Object, control As IRibbonControl, pressed As Boolean)
AddinExpress.MSO.2005.DLL: N 0007 (0x7) IL
AddinExpress.MSO.ADXRibbonButton.DoInternalAction(e As ADXRibbonOnActionEventArgs)
AddinExpress.MSO.2005.DLL: N 0035 (0x23) IL
(Outer Exception)
Date and Time: 4/5/2012 7:24:52 PM
Machine Name: TOM-PC
IP Address: ----------------------
Current User: Tom-PC\Tom
Application Domain: C:\Program Files (x86)\Fintools\Fintools XL\
Assembly Codebase: file:///C:/Program Files (x86)/Fintools/Fintools XL/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.5.3057.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.5.3057.2005
Exception Source:
Exception Type: AddinExpress.MSO.ADXExternalException
Exception Message: An error has occured in the code of the add-in.
Exception Target Site: Object reference not set to an instance of an object.
---- Stack Trace ----
I have tried building this project both with the "Any CPU" and "x86" platforms and neither has worked. I have tried using the 64 bit version of the DLL and it has given me the badimageformat exception which leads me to believe that the 32 bit version is the correct version to use. I have placed the system.data.sqlite.dll both in the root folder for my addin and in the root folder for excel and neither has resolved my issue. I am completely out of ideas, though I am an inexperienced .NET programmer so I am looking for advice here on how to resolve this issue.
Thank you for your input.
Please use this far more up-to-date system.data.sqlite.dll that supports the latest versions of sqlite and .Net:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki