Error while setting up local cluster with service fabric SDK version 2.1.150.X - azure

While creating local cluster with latest service fabric SDK, I got following errors with Visual Studio 2013 Update 5 while it works fine with Visual Studio 2015 Update 3:
Cluster manifest validation failed with exception System.ArgumentException: Error occurs in section Federation, parameter System.
Fabric.Management.ServiceModel.SettingsOverridesTypeSectionParameter...
OR
Cluster manifest validation failed with exception System.ArgumentException: Section FaultAnalysisService found in cluster manifest but not Configurations.csv in system.fabric.management.dll
What I did to fix it?
If you closely look into error, you will find that following two files settings are not compatible.
C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\Configurations.csv
and
C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\NonSecure\ClusterManifestTemplate.xml
Just disable following in ClusterManifestTemplate.xml:
<Section Name="Federation">
<Parameter Name="NodeIdGeneratorVersion" Value="V3" />
<!-- <Parameter Name="UnresponsiveDuration" Value="0" /> -->
</Section>
and
<!-- <Section Name="FaultAnalysisService">
<Parameter Name="TargetReplicaSetSize" Value="5" />
<Parameter Name="MinReplicaSetSize" Value="3" />
</Section> -->

Related

runsettings test file values not being applied

I have downloaded Visual Studio 2019 and the Coded UI components and am currently trying to run web browser automation testing. The test is working fine but the test.runsettings file that I have created and attached to the CodedUITest via Test > Test Settings and applied the file below to the test but the maximum timeout value that I have set is being ignored and the test is timing out after default 30 minutes
runsettings file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<!-- Configurations that affect the Test Framework -->
<RunConfiguration>
<MaxCpuCount>1</MaxCpuCount>
<!-- Path relative to directory that contains .runsettings file-->
<ResultsDirectory>.\TestResults</ResultsDirectory>
<!-- x86 or x64 -->
<!-- You can also change it from the top-level menu Test > Test Settings > Processor Architecture for AnyCPU Projects -->
<TargetPlatform>x86</TargetPlatform>
<!-- Framework35 | [Framework40] | Framework45 -->
<TargetFrameworkVersion>Framework45</TargetFrameworkVersion>
<!-- Path to Test Adapters -->
<TestAdaptersPaths>%SystemDrive%\Temp\foo;</TestAdaptersPaths>
<!-- TestSessionTimeout was introduced in Visual Studio 2017 version 15.5 -->
<!-- Specify timeout in milliseconds. A valid value should be greater than 0 -->
<TestSessionTimeout>99999999</TestSessionTimeout>
</RunConfiguration>
<!-- Configurations for data collectors -->
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Exclude>
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
</Exclude>
</ModulePaths>
<!-- We recommend you do not change the following values: -->
<UseVerifiableInstrumentation>True</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
<DataCollector uri="datacollector://microsoft/VideoRecorder/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Screen and Voice Recorder">
<!--Video data collector was introduced in Visual Studio 2017 version 15.5 -->
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
<!-- Parameters used by tests at runtime -->
<TestRunParameters>
<Parameter name="webAppUrl" value="http://localhost" />
<Parameter name="webAppUserName" value="Admin" />
<Parameter name="webAppPassword" value="Password" />
</TestRunParameters>
<!-- Adapter Specific sections -->
<!-- MSTest adapter -->
<MSTest>
<MapInconclusiveToFailed>True</MapInconclusiveToFailed>
<CaptureTraceOutput>false</CaptureTraceOutput>
<DeleteDeploymentDirectoryAfterTestRunIsComplete>False</DeleteDeploymentDirectoryAfterTestRunIsComplete>
<DeploymentEnabled>False</DeploymentEnabled>
<AssemblyResolution>
<Directory path="D:\myfolder\bin\" includeSubDirectories="false"/>
</AssemblyResolution>
</MSTest>
</RunSettings>
I faced the same issue.
For coded UI Tests please use timeout attribute in test method
[Timeout(milliseconds)]
public void DemoTest()
{
}
If you want infinite execution timeout you can use below code
[Timeout(TestTimeout.Infinite)]
public void DemoTest()
{
}
Hope this helps

Android resource compilation failed, ic_launcher_background.xml: error: file failed to compile

This error happened to me recently when I try to build any project,
Android resource compilation failed
E:\Android Projects\BarcodReader\app\src\main\res\drawable\ic_launcher_background.xml:12: error: not well-formed (invalid token).
E:\Android Projects\BarcodReader\app\src\main\res\drawable\ic_launcher_background.xml: error: file failed to compile.
and here's the file ic_launcher_background.xml
<component name="libraryTable">
<library name="Gradle: junit:junit:4.12#jar">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/a6c32b40bf3d76eca54e3c601e5d1470c86fcdfa/junit-4.12-sources.jar!/" />
</SOURCES>
</library>
</component>
when I hover over the file it shows this error
Attribute is missing the Android namespace prefix,
Inspection info:Most Android views have attributes in the Android namespace. When referencing these attributes you must include the namespace prefix, or your attribute will be interpreted by aapt as just a custom attribute. Similarly, in manifest files, nearly all attributes should be in the android: namespace. Issue id: MissingPrefix
what might be causing this error?.
That ic_launcher_background.xml is a IDEA file and not an Android resource file.
Just replace it with whatever valid Android resource XML file and it should build.

Wix installer fails to create application pools in IIS 10

We are having trouble creating our app pools using wix. This problem happens only on server 2016 or iis version >10.
This is the error with verbose log turned on.
Its complaining about path not found or trying to access a path that has not been created or does not have permissions. The installer fails with rollback.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe" -norestart -s W3SVC/1/ROOT/INFO-SUITE
CAQuietExec: Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
CAQuietExec: Administration utility to install and uninstall ASP.NET on the local machine.
CAQuietExec: Copyright (C) Microsoft Corporation. All rights reserved.
CAQuietExec: Start registering ASP.NET (4.0.30319.0) recursively at W3SVC/1/ROOT/MyApplication.
CAQuietExec: Installation stopped because the specified path (W3SVC/1/ROOT/MyApplication) is invalid.
CAQuietExec: Error 0x80070001: Command line returned an error.
CAQuietExec: Error 0x80070001: CAQuietExec Failed
This is the wix xml which creates the app pool.The same installer msi works on windows 8. The IISMajorVersion is 10 according to the log. I also ran dsim enable feature IIS-ASPNET45 to make sure Asp.net is registered. I also checked the registry. THis is only when the wix creates the app pools. We don't have a problem when its an upgrade or we manaully create the app pools.
<Fragment>
<PropertyRef Id="IISMAJORVERSION" />
<Component Id="Component.WebServer.WebServices.IISSite.v10" Guid="F73DACBB-EF8B-4C8E-8B6A-6610670D991F" Directory="WEBSERVICES_INSTALLLOCATION">
<Condition><![CDATA[IISMAJORVERSION >= 10]]> </Condition>
<CreateFolder />
<iis:WebAppPool Id="WebAppPool.WebServices.IISSite.v10"
Name="[WEBSERVICESSERVERINFO_IISAPPNAME]"
ManagedRuntimeVersion="v4.0"
ManagedPipelineMode="integrated"
Identity="networkService"
IdleTimeout="0" />
<iis:WebVirtualDir Id="WebVirtualDir.WebServices.IISSite.v10"
Directory="WEBSERVICES_INSTALLLOCATION"
Alias="[WEBSERVICESSERVERINFO_IISAPPNAME]"
WebSite="WebSite">
<iis:WebDirProperties Id="WebDirProperties.WebServices.IISSite.v10"
Execute="yes"
Script="yes"
Read="yes"
WindowsAuthentication="yes"
AnonymousAccess="yes"
IIsControlledPassword="yes" />
<iis:WebApplication Id="WebApplication.WebServices.IISSite.v10"
Name="[WEBSERVICESSERVERINFO_IISAPPNAME]"
WebAppPool="WebAppPool.WebServices.IISSite.v10" />
</iis:WebVirtualDir>
</Component>
</Fragment>
<ComponentGroupRef Id="ComponentGroup.WebServer.WebServices.Files" />
<ComponentRef Id="Component.WebServer.WebServices.SetWebConfig" />
<ComponentRef Id="Component.WebServer.WebServices.Certificates" />
<ComponentRef Id="Component.WebServer.WebServices.IISSite.v10" />
I took care of my own problem. The condition had to be = "10"]]> instead of = 10]]>

Windows universal application (WIN 10) app manifest validation error

I found error in Blank app (Windows Universal) template in Visual Studio 2015 RC.
It is some mismatch inside schemas.
error 0xC00CE014: App manifest validation error: The app manifest must
be valid as per schema: Line 23, Column 4, Reason: Element
'{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}TargetDeviceFamily'
is unexpected according to content model of parent element
'{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}Dependencies'.
Expecting:
{http:/schemas.microsoft.com/appx/manifest/foundation/windows10}TargetPlatform.
Package.appxmanifest:
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
IgnorableNamespaces="uap mp">
<Identity
Name="a29f94a4-dc5e-4558-9497-90c6190f49ef"
Publisher="CN=Petr"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="a29f94a4-dc5e-4558-9497-90c6190f49ef"
PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>App1</DisplayName>
<PublisherDisplayName>Petr</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="10.0.10069.0"
MaxVersionTested="10.0.10069.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="App1.App">
<uap:VisualElements
DisplayName="App1"
Square150x150Logo="Assets\Logo.png"
Square44x44Logo="Assets\SmallLogo.png"
Description="App1"
BackgroundColor="#464646">
<!--ForegroundText="dark"-->
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
</Capabilities>
</Package>
If you are getting this error when deploying the app to your Windows system, it means that you are trying to deploy/install the app package on an older Windows 10 Preview system. Please ensure that you have the Windows 10 version that was publicly announced at //Build.
http://blogs.windows.com/bloggingwindows/2015/04/29/new-windows-10-insider-preview-build-10074-now-available/

Unhealthy WorkerRole on Windows Azure

I have terrible problem with WorkerRole instance on Windows Azure. I have a Windows Azure projct that contains WebRole and WorkerRole.
The problem is, the WorkerRole instance is Unhealthy. The Error on a server:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-02-18T21:29:18.000Z" />
<EventRecordID>864</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D3A4A2E</Computer>
<Security />
</System>
<EventData>
<Data>WaHostBootstrapper.exe</Data>
<Data>6.0.6002.18488</Data>
<Data>505cf7da</Data>
<Data>ntdll.dll</Data>
<Data>6.0.6002.18520</Data>
<Data>4e811810</Data>
<Data>c0000374</Data>
<Data>00000000000acb47</Data>
<Data>ae8</Data>
<Data>01ce0e1ef01200d9</Data>
</EventData>
</Event>
Faulting application WaHostBootstrapper.exe
Can somebody help me ?
p.s Project works perfect on local machine.
If it works on your machine but failed on the cloud it might because you miss some assemblies or dependency component.
You can enable the IntelliTrace when deploying so that later you can download the debug file and this might includes the actual exception/error for your worker role. http://msdn.microsoft.com/en-us/library/windowsazure/ff683671.aspx

Resources