Can't install POS.net to Windows 10 - printing

I need to install SDK for Epson Printer, but it needs to install Microsoft POS.net
but when i try install MS POS.net it is not complete.
at step " register wmi provider " and it is rolling back action
attached screen shot
Event Log:
Log Name: Application
Source: MsiInstaller
Date: 5/9/2020 2:39:48 AM
Event ID: 11708
Task Category: None
Level: Information
Keywords: Classic
User: OSN\ikrami
Computer: OSN
Description:
Product: Microsoft POS for .NET 1.14.1 -- Installation failed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">11708</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-05-09T00:39:48.925461900Z" />
<EventRecordID>343357</EventRecordID>
<Channel>Application</Channel>
<Computer>OSN</Computer>
<Security UserID="S-1-5-21-2760364576-2455459765-4038222974-1001" />
</System>
<EventData>
<Data>Product: Microsoft POS for .NET 1.14.1 -- Installation failed.</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
<Binary>7B39333532413734312D373634382D343644412D383036462D3434454436343839304241347D</Binary>
</EventData>
</Event>

Related

Startup Error on Win10

Getting an error trying to start Neo4j on Windows 10:
Any thoughts from anywhere? Nothing in Operations Guide or Developers Guide talks about this DB. This is CE edition, running locally.
System log had this about the failure:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2017-03-08T15:40:28.976232300Z" />
<EventRecordID>14535</EventRecordID>
<Channel>Application</Channel>
<Computer>omitted</Computer>
<Security />
</System>
- <EventData>
<Data>129168941443</Data>
<Data>5</Data>
<Data>RADAR_PRE_LEAK_64</Data>
<Data>Not available</Data>
<Data>0</Data>
<Data>neo4j-ce.exe</Data>
<Data>0.0.0.0</Data>
<Data>10.0.14393.2.0.0</Data>
<Data>\\?\C:\Users\lschill\AppData\Local\Temp\RDRB4ED.tmp\empty.txt \\? \C:\ProgramData\Microsoft\Windows\WER\Temp\WERB50E.tmp.WERInternalMetadata.xml</Data>
<Data>0</Data>
<Data>8d3dd2f1-0415-11e7-96b5-d481d7785562</Data>
<Data>0</Data>
<Data>79b1c284dc68f120300f3bcf10cd53ef</Data>
</EventData>
</Event>
AppData and ProgramData files referenced did not exist when I looked.
It appears that this error appears when you do not have installed JAVA 8 server JRE on your computer

ANT-Task for FlexUnit for AIR Mobile project in Jenkins

I am building a Mobile application with Flex 4.11.0 and AIR 4.0. My IDE is Flash Builder 4.7. I wrote a lot of unit tests, some of them using AIR features such as File system access.
I am trying to integrate the project into a CI job on jenkins. I have an ANT script doing the following:
Compiling
Packaging for Android
Packaging for iOS
Generating ASDOC
What I want now is to write an ANT-Task to launch my unit tests and generate a report in XML or HTML which can be parsed by Jenkins afterwards.
I have tried the following:
- Followed the tutorial on http://tutorials.digitalprimates.net/flexunit/Unit-16.html and got the example to work. However, this is a Flash project and not an AIR-Project!
- Read the documentation on https://cwiki.apache.org/confluence/display/FLEX/FlexUnit+Ant+Task, downloaded and built the FlexUnit code from git#github.com:flexunit/flexunit.git to get the FlexUnit4AIRCIListener.swc
- Read a LOT of information on the internet from all over the place, not finding an answer (I did find some hints, but a lot of the information is outdated or references dead links)
What I have so far is the following:
<taskdef resource="flexUnitTasks.tasks" classpath="${basedir}\libs\flexUnitTasks-4.1.0.jar" />
<target name="test" >
<echo>Testing...</echo>
<echo>==========</echo>
<!-- 1. Compile FlexUnit-Application -->
<mxmlc file="${PROJECT.src}\FlexUnit.mxml" output="FlexUnit.swf" >
<load-config filename="D:\tools\sdk\flex\4.11.0_AIR4.0\frameworks\air-config.xml" append="true" />
<source-path path-element="${PROJECT.src}" />
<source-path path-element="${basedir}\test" />
<library-path dir="${PROJECT.libs}" append="true">
<include name="**/*.swc" />
<include name="**/*.ane" />
</library-path>
<library-path dir="D:\tools\sdk\flex\4.11.0_AIR4.0\frameworks\libs\air" append="true">
<include name="airglobal.swc" />
</library-path>
<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
<compiler.headless-server>true</compiler.headless-server>
</mxmlc>
<!-- 2. Run the compiled SWF -->
<flexunit swf="FlexUnit.swf"
player="air"
timeout="180000"
toDir="${OUTPUT.root}\flexUnit"
haltonfailure="false"
verbose="true"
localTrusted="true"
/>
<!-- 3. Generate readable JUnit-style reports -->
<junitreport todir="${OUTPUT.root}\flexUnit">
<fileset dir="${OUTPUT.root}\flexUnit">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${OUTPUT.root}\flexUnit\html" />
</junitreport>
</target>
Here are the relevant parts of my FlexUnit.mxml-Application:
protected function onCreationComplete(event:FlexEvent):void
{
core = new FlexUnitCore();
core.addListener(new AirCIListener());
core.run(currentRunTestSuite());
}
public function currentRunTestSuite():Array
{
var testsToRun:Array = new Array();
testsToRun.push(test.suites.CLXSatelliteTestSuite);
return testsToRun;
}
Step 1. from the ANT-Task works (at least I get the FlexUnit.swf). However, Launching the SWF in the <flexunit>-Task fails:
VerifyError: Error #1014: Class flash.filesystem::File could not be found.
Console output:
[flexunit] Generating default values ...
[flexunit] Using default working dir [D:\workspaces\flex\projects\clx-satellite]
[flexunit] Using the following settings for the test run:
[flexunit] FLEX_HOME: [D:\tools\sdk\flex\4.11.0_AIR4.0]
[flexunit] haltonfailure: [false]
[flexunit] headless: [false]
[flexunit] display: [99]
[flexunit] localTrusted: [true]
[flexunit] player: [flash]
[flexunit] port: [1024]
[flexunit] swf: [D:\workspaces\flex\projects\clx-satellite\FlexUnit.swf]
[flexunit] timeout: [180000ms]
[flexunit] toDir: [D:\workspaces\flex\projects\clx-satellite\deploy\flexUnit]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] OS: [Windows]
[flexunit] Launching player:
[flexunit] Executing 'rundll32' with arguments:
[flexunit] 'url.dll,FileProtocolHandler'
[flexunit] 'D:\workspaces\flex\projects\clx-satellite\FlexUnit.swf'
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit] Client connected.
[flexunit] Setting inbound buffer size to [262144] bytes.
[flexunit] Receiving data ...
[flexunit] Sending acknowledgement to player to start sending test data ...
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
BUILD FAILED
D:\workspaces\flex\projects\clx-satellite\build.xml:148:
java.util.concurrent.ExecutionException: could not close client/server socket
When I include a single test which does not use the File-Class, the tests work and I get a similar error (ReferenceError: Error #1065: Variable flash.desktop::NativeApplication is not defined.) but at least the tests run through and I get XML-output. Seems to me like FlexUnit is not really compatible with AIR, although I use player=airin the task.
Does anybody of you have a working example of running Unit Tests with FlexUnit for an AIR Application (possibly a mobile application) through ANT?
Never mind, I figured it out myself and blogged about it in my personal blog:
http://www.tiefenauer.info/ci-for-flex-mobile-applications-part-3-performing-unit-tests/
I described a whole CI process there, just in case anyone has the same problem.
There is Apache FlexUnit feature request for this here: Apache FlexUnit: FLEX-35090
Or you can utilize this feature by compiling your own FlexUnit task by using this fork of FlexUnit 4.1: additionalCompilerOptions branch
The formatting supported with the custom FlexUnit Ant Task is as follows:
<flexunit
workingDir="${bin.loc}"
toDir="${report.loc}"
haltonfailure="false"
verbose="true"
localTrusted="true" >
<!-- only supported with custom FlexUnit Ant tasks -->
<additionalCompilerOption option="-define+=MY_CONST::foo,'BAR'" />
</flexunit>

TFS2012 - cannot upload files larger than 5MB

I am running a TFS 2012 installation on a virtual machine (inside Windows Azure). Everything works fine, except that files bigger than 5MB cannot be checked in. On the client side it says: "The request was aborted: The request was canceled.".
On the server side the event log contains an error saying:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="TFS Services" />
<EventID Qualifiers="0">4000</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-07-02T15:57:04.000000000Z" />
<EventRecordID>1832</EventRecordID>
<Channel>Application</Channel>
<Computer>gm-tfsserver</Computer>
<Security />
</System>
- <EventData>
<Data>TF53010: The following error has occurred in a Team Foundation component or extension: Date (UTC): 02/07/2013 15:57:04 Machine: GM-TFSSERVER Application Domain: /LM/W3SVC/2/ROOT/tfs-2-130172535704544600 Assembly: Microsoft.TeamFoundation.Framework.Server, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319 Service Host: 7e62b8c5-5065-4b32-9734-fc37fac35a8c (GM) Process Details: Process Name: w3wp Process Id: 3636 Thread Id: 3232 Account name: GM-TFSSERVER\Christian Detailed Message: TF30065: An unhandled exception occurred. Web Request Details Url: http://gm-tfsserver:8080/tfs/GM/VersionControl/v1.0/upload.ashx [method: POST] User Agent: Team Foundation (devenv.exe, 11.0.60610.1, Ultimate, SKU:8) Headers: Content-Length=16778221&Content-Type=multipart%2fform-data%3b+boundary%3d--------------------------8e5m2D6l5Q4h6&Accept-Language=en-GB&Expect=100-continue&Host=gm-tfsserver%3a8080&User-Agent=Team+Foundation+(devenv.exe%2c+11.0.60610.1%2c+Ultimate%2c+SKU%3a8)&X-TFS-Version=1.0.0.0&X-TFS-Session=2801ee9b-62f2-43e9-9a65-c296978716df Path: /tfs/GM/VersionControl/v1.0/upload.ashx Local Request: False Host Address: 77.177.87.232 User: GM-TFSSERVER\Christian [authentication type: NTLM] Exception Message: TF14109: Parts of the file $/GM Software/Legacy Code/Gw Code/GrData.txt were not uploaded. (type IncompleteUploadException) Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.ParseRequestParameters(VersionControlRequestContext versionControlRequestContext, String& workspaceName, String& workspaceOwner, String& serverItem, Byte[]& hash, HttpPostedFile& file, Int64& fileLength, Int64& compressedLength, Int64& offsetFrom, CompressionType& compressionType) at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.Execute()</Data>
</EventData>
</Event>
I tested it with two different internet connections from two different locations. The Virtual machine has port 8080 opened in the azure endpoint configuration.
Does anyone have an idea?
Through the client side I tried the following solution which solve my problem with
The request was aborted: The request was canceled.
by adding the app setting key VersionControl.UploadChunkSize to devenv.exe.config (%Program Files%\Microsoft Visual Studio 11.0\Common7\IDE)
<appSettings>
<add key="VersionControl.UploadChunkSize" value="1048576" />
</appSettings>
I figured this from this answer: TFS check in timeout of changeset containing "larger" binary files
Please have a look to the link to get more information.
I think you need to look for deltaMaxFileSize in the web.config file.
Link

Azure Web Role not starting after upgrade to .Net 4.5 & osFamily 3 (Window 2012)

I have MVC 3 Application that used to work fine on osFamily 1 (Win 2008 SP2) and .Net 4.0 and would like to upgrade to .Net 4.5 and Windows 2012.
My project is upgraded to .Net 4.5 and it builds without any problems and runs in emulator with no problems.
When I deploy to Windows Azure the role i get this message -
"Recycling (Waiting for role to start... Sites were deployed. [2013-06-01T10:43:59Z])"
I remotely logged in to the machine and I found the below error messages in the windows event viewer.
Error Message 1
Log Name: Application
Source: Application Error
Date: 6/1/2013 10:15:39 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: RD00155D492637
Description:
Faulting application name: WaHostBootstrapper.exe, version: 6.0.6002.18488, time stamp: 0x50a71329
Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505ab405
Exception code: 0xc0000005
Fault offset: 0x0000000000005d92
Faulting process id: 0xadc
Faulting application start time: 0x01ce5eb0eff6e9f1
Faulting application path: E:\base\x64\WaHostBootstrapper.exe
Faulting module path: D:\Windows\SYSTEM32\ntdll.dll
Report Id: 34c3ae25-caa4-11e2-93ef-00155d492637
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<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-06-01T10:15:39.000000000Z" />
<EventRecordID>8187</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D492637</Computer>
<Security />
</System>
<EventData>
<Data>WaHostBootstrapper.exe</Data>
<Data>6.0.6002.18488</Data>
<Data>50a71329</Data>
<Data>ntdll.dll</Data>
<Data>6.2.9200.16420</Data>
<Data>505ab405</Data>
<Data>c0000005</Data>
<Data>0000000000005d92</Data>
<Data>adc</Data>
<Data>01ce5eb0eff6e9f1</Data>
<Data>E:\base\x64\WaHostBootstrapper.exe</Data>
<Data>D:\Windows\SYSTEM32\ntdll.dll</Data>
<Data>34c3ae25-caa4-11e2-93ef-00155d492637</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
Error Message 2
Log Name: Application
Source: .NET Runtime
Date: 6/1/2013 10:15:39 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: RD00155D492637
Description:
Application: CacheDumpGenerator.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
Stack:
at <Module>.RdGetLocalResource(UInt16*, _RD_RESOURCE**)
at <Module>.RdGetLocalResource(UInt16*, _RD_RESOURCE**)
at <Module>._LOCALRESOURCE.GetLocalResourceW(UInt16*, _LOCALRESOURCE**)
at Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropRoleManager.GetLocalResource(System.String, Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropLocalResource ByRef)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetLocalResource(System.String)
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureUtility.GetLocalStoreDirectory()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.InitializeTraceProvider()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.get_TraceProvider()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.WriteLog(System.String, System.Diagnostics.TraceEventType, System.String)
at Microsoft.ApplicationServer.Caching.CacheDumpGenerator.ProcessDump.Main(System.String[])
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-06-01T10:15:39.000000000Z" />
<EventRecordID>8188</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D492637</Computer>
<Security />
</System>
<EventData>
<Data>Application: CacheDumpGenerator.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
Stack:
at <Module>.RdGetLocalResource(UInt16*, _RD_RESOURCE**)
at <Module>.RdGetLocalResource(UInt16*, _RD_RESOURCE**)
at <Module>._LOCALRESOURCE.GetLocalResourceW(UInt16*, _LOCALRESOURCE**)
at Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropRoleManager.GetLocalResource(System.String, Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropLocalResource ByRef)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetLocalResource(System.String)
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureUtility.GetLocalStoreDirectory()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.InitializeTraceProvider()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.get_TraceProvider()
at Microsoft.ApplicationServer.Caching.AzureCommon.AzureStartupLogger.WriteLog(System.String, System.Diagnostics.TraceEventType, System.String)
at Microsoft.ApplicationServer.Caching.CacheDumpGenerator.ProcessDump.Main(System.String[])
</Data>
</EventData>
</Event>
Error Message 3
Log Name: Application
Source: Application Error
Date: 6/1/2013 10:15:39 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: RD00155D492637
Description:
Faulting application name: CacheDumpGenerator.exe, version: 1.0.4797.0, time stamp: 0x506f41e8
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988aa6
Exception code: 0xc06d007e
Fault offset: 0x000000000003811c
Faulting process id: 0x1934
Faulting application start time: 0x01ce5eb0f71984a5
Faulting application path: E:\plugins\Caching\CacheDumpGenerator.exe
Faulting module path: D:\Windows\system32\KERNELBASE.dll
Report Id: 34e2aca6-caa4-11e2-93ef-00155d492637
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<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-06-01T10:15:39.000000000Z" />
<EventRecordID>8189</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D492637</Computer>
<Security />
</System>
<EventData>
<Data>CacheDumpGenerator.exe</Data>
<Data>1.0.4797.0</Data>
<Data>506f41e8</Data>
<Data>KERNELBASE.dll</Data>
<Data>6.2.9200.16451</Data>
<Data>50988aa6</Data>
<Data>c06d007e</Data>
<Data>000000000003811c</Data>
<Data>1934</Data>
<Data>01ce5eb0f71984a5</Data>
<Data>E:\plugins\Caching\CacheDumpGenerator.exe</Data>
<Data>D:\Windows\system32\KERNELBASE.dll</Data>
<Data>34e2aca6-caa4-11e2-93ef-00155d492637</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
ServiceConfiguration.Cloud.csfg
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="OpenSpaceAzureDeploymentTesting" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2012-10.1.8">
<Role name="OpenSpaceGUI">
<Instances count="1" />
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="***" />
<Setting name="DataConnectionString" value="***" />
<Setting name="InMaintenanceMode" value="false" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="***" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="RxM6fiusFUxD/10qlvm0xvwMMBy0qbcGpsMRQUUufHD3DlUnJcaASHP0ygRESmvQDPh2ig0FsA0WK65UDrIJxFnBmRTH4WMPmJIlBa5w2Uht/g7wScwZ3UWN6NEQiHpdCPJSayef2iO3VVXRXxZYiHNdP25sMglcEmPQkVVyE4icoVHhFPffjR24uH7uNf8GK83jIbYYAcPKlVOE84pt5a/EPXG1vBQivf9nxRW84Z2jMxmectqi7Ip0tMjWnZx/IE9J28DwhKmnQSn3wlE4/qqGNxVOSp33VvAMDsGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIwFSSGHiZSSeAGH3U73yNANRQw6W4sIlmu1lpNEXv2mdWzQ==" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2050-01-01T23:59:59.0000000+00:00" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.NamedCaches" value="{"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":2},"serverNotification":{"isEnabled":false}},"secondaries":0},{"name":"companies","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":2},"serverNotification":{"isEnabled":false}},"secondaries":0},{"name":"person","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":2},"serverNotification":{"isEnabled":false}},"secondaries":0}]}" />
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel" value="1" />
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.CacheSizePercentage" value="30" />
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.ConfigStoreConnectionString" value="****" />
<Setting name="SiteStatus" value="ok" />
</ConfigurationSettings>
<Certificates>
<Certificate name="*.co.uk" thumbprint="**" thumbprintAlgorithm="sha1" />
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="BA399EA1E35B7E3FB00569C0FE1BCA76939EE87F" thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
</ServiceConfiguration>
Any help will be appreciated !!
Thanks
Bhavesh
I did try to remove the Windows.Azure.Caching from my project by removing the package from NuGet, them I tried to deploy to cloud and the web role was deployed successfully but I was unable to browse to my application as it was complaining about in the web.config.
I found the below code was still there in web.config and not cleaned by nuGet.
<dataCacheClients>
<dataCacheClient>
<autoDiscover isEnabled="true" identifier="OpenSpaceGUI" />
</dataCacheClient>
</dataCacheClients>
I removed the above code from web.config and deployed to cloud once again but no luck the web role is recycling in a end-less loop and i found this error details once I remote logged in to the server.
Log Name: Microsoft-Azure-IISConfigurator/Operational
Source: Microsoft-Azure-IISConfigurator
Date: 6/5/2013 9:25:38 PM
Event ID: 3303
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: RD00155D49FC3E
Description:
Exception:System.Runtime.InteropServices.COMException (0xC00CEF03): Exception from HRESULT: 0xC00CEF03
Server stack trace:
at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.CommitChanges()
at Microsoft.Web.Administration.Configuration.CommitChanges()
at Microsoft.Web.Administration.ConfigurationManager.CommitChanges()
at Microsoft.Web.Administration.ServerManager.CommitChanges()
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WasManager.DeploySite(String roleId, WASite roleSite, String appPoolName, String sitePath, String iisLogsRootFolder, String failedRequestLogsRootFolder, List`1 bindings, List`1 protocols, FileManager fileManager, WAAppPool defaultAppPoolSettings, String roleGuid, String& appPoolSid, List`1 appPoolsAdded, String configPath)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WasContainer.DeploySite(String roleId, WASite roleSite, String appPoolName, String sitePath, String iisLogsRootFolder, String failedRequestLogsRootFolder, List`1 bindings, List`1 protocols, FileManager fileManager, WAAppPool defaultAppPoolSettings, String roleGuid, String& appPoolSid, List`1 appPoolsAdded, String configPath)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Deploy(String roleId, WebAppModel webAppModel, String roleRootDirectory, String sitesDestinationRootDirectory, String diagnosticsRootDirectory, String roleGuid, String configPath)
I have no clue now why this is not working, any help will be appreciated.
Thanks
You need to run your application in OS family 3 if you want .NET 4.5 support. You need to specify this in your ServiceConfiguration.Cloud.cscfg file
<ServiceConfiguration serviceName="XXX"
xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"
osFamily="3"
osVersion="*"
schemaVersion="2012-10.1.8">
It may not be possible to upgrade your instance and you may have to deploy a new one.
More details on the Azure blog
Update
WaHostBootstrapper.exe will fail when there is something wrong with your azure service (most often without any helpful details) so it is hard to determine exactly what is wrong. It could be something as simple as missing references.
From what you have posted it looks like some of your Microsoft.WindowsAzure.Plugins are having a hard time as well. I would try to remove them and see if the role still fails.
Side note - it is no longer necessary to specify Remote Access in your cscfg file. From ScottGu's blog :
Windows Azure Cloud Services support the ability for developers to RDP into web and
worker role instances. This can be useful when debugging issues.
Prior to today’s release, developers had to explicitly enable RDP support during
development – prior to deploying the Cloud Service to production. If you forgot to
enable this, and then ran into an issue in production, you couldn’t RDP into it
without doing an app update and redeploy (and then waiting to hit the issue again).
With today’s release we have added support to enable administrators to dynamically
configure remote desktop support – even when it was not enabled during the initial
app deployment. This ensures you can always debug issues in production and never
have to redeploy an app in order to RDP into it.
If you can establish a remote desktop connection with the machine, then do that and, rather than just looking in the Event Viewer, open up IIS Manager and browse to your website.
For me, this will often show an ASP.NET yellow screen error identifying any required files that have not been included within your deployed Azure package. You should mark those files as "Copy Local=true" and redeploy - you may need to do this a number of times to catch all of the missing files.

Jetty 8(Embedded) With HSQLDB Datasource

I've been hopelessly trying for two complete days to expose a data source using HSQLDB through JNDI, through Jetty (8.1.8.v20121106). Most of the tutorials out there are out of date: For example http://dinukaroshan.blogspot.com/2012/04/setting-up-jndi-with-jetty-embedded.html uses Jetty 6, which is obvious from the package names that are used (Mortbay instead of eclipse), or they just concentrate on the jetty.xml and jetty-env.xml files, without giving any Java code samples on how did they consume the configuration files like this one:
http://wiki.eclipse.org/Jetty/Feature/JNDI#Example_Webapps
My best attempt at doing it has given me the following result:
java.lang.Exception: javax.naming.NameNotFoundException; remaining name 'env/jdbc/MySqlDS'
at wavemark.dcpcontroller.controllerws.db.DBProxy.getConnection(DBProxy.java:47)
at test.wavemark.dcpcontroller.controllerws.webservice.TestDCPControllerWS.getConnection(TestDCPControllerWS.java:97)
at org.dbunit.DatabaseTestCase.newDatabaseTester(DatabaseTestCase.java:85)
at org.dbunit.DatabaseTestCase.getDatabaseTester(DatabaseTestCase.java:109)
at org.dbunit.DatabaseTestCase.tearDown(DatabaseTestCase.java:164)
at test.wavemark.dcpcontroller.controllerws.webservice.TestDCPControllerWS.setUp(TestDCPControllerWS.java:33)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: javax.naming.NameNotFoundException; remaining name 'env/jdbc/MySqlDS'
at org.eclipse.jetty.jndi.NamingContext.lookup(NamingContext.java:505)
at org.eclipse.jetty.jndi.NamingContext.lookup(NamingContext.java:536)
at org.eclipse.jetty.jndi.NamingContext.lookup(NamingContext.java:551)
at org.eclipse.jetty.jndi.java.javaRootURLContext.lookup(javaRootURLContext.java:117)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at wavemark.dcpcontroller.controllerws.db.DBProxy.getConnection(DBProxy.java:43)
... 19 more
My jetty.xml file is as follows:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure id='wac' class="org.eclipse.jetty.server.Server">
<!-- ============================================================== -->
<!-- Add the DataSource(s) only valid for this webapp below -->
<!-- ============================================================== -->
<New id="MySqlDS" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg>jdbc/MySqlDS</Arg>
<Arg>
<Set name="driverClass">org.hsqldb.jdbcDriver</Set>
<!--<Set name="url">jdbc:hsqldb:sample</Set>-->
<Set name="user">sa</Set>
<Set name="password"></Set>
</Arg>
</New>
</Configure>
I added the following to my web.xml (This happens to be an axis2 web application):
<resource-ref>
<res-ref-name>jdbc/MySqlDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
And this is the Java code I'm using to consume the Jetty configuration:
public ServerManager(int webServerPort,String jettyConfigurationsFilePath, String webApplicationPath) throws Exception
{
System.out.println("Initializing server");
this.webServerPort = webServerPort;
this.webApplicationPath = webApplicationPath;
server = new Server(webServerPort);
XmlConfiguration configuration = new XmlConfiguration(new File(jettyConfigurationsFilePath).toURI().toURL());
configuration.configure(server);
System.out.println("Finished configuring Jetty Server...");
System.out.println("Server initialized");
System.out.println("Server state is now " + server.getState());
WebAppContext webapp = new WebAppContext();
webapp.setContextPath("/");
webapp.setWar(webApplicationPath);
server.setHandler(webapp);
}
What am I doing wrong? Is there an up-to-date tutorial that would allow me to use HSQLDB as my DBMS, JNDI to expose the data source, and Jetty8?
Thanks a lot for the help.
This is not a complete answer, but something obvious in the second wiki link you provide is the use of a DataSource. An instance of javax.sql.DataSource is created. The settings for HSQLDB are like this, when it is used instead of Derby in the given example:
<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext">
...
<New id="myds" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg><Ref id="wac"/></Arg>
<Arg>jdbc/mydatasource</Arg>
<Arg>
<New class="org.hsqldb.jdbc.JDBCDataSource">
<Set name="DatabaseName">file:mytestdb</Set>
<Set name="User">SA</Set>
<Set name="Password"></Set>
</New>
</Arg>
</New>
</Configure>

Resources