Error While Opening Xbap (wpf Browser Applcation) - c#

I am facing error while opening xbap in browser.
PLATFORM VERSION INFO
Windows : 6.3.9600.0 (Win32NT)
Common Language Runtime : 4.0.30319.34014
System.Deployment.dll : 4.0.30319.34243 built by: FX452RTMGDR
clr.dll : 4.0.30319.34014 built by: FX45W81RTMGDR
dfdll.dll : 4.0.30319.34243 built by: FX452RTMGDR
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)
APPLICATION SUMMARY
* Online only application.
* Trust url parameter is set. * Browser-hosted application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while determining platform requirements. Following failure messages were detected:
+ Unable to install or run the application. The application requires that assembly DPFPVerNET Version 1.6.1.0 be installed in the Global Assembly Cache (GAC) first.
* An exception occurred while downloading the application. Following failure messages were detected:
+ The DeterminePlatformRequirements method failed. The application cannot be committed.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
No phase information is available.
ERROR DETAILS
Following errors were detected during this operation.
* [9/28/2015 5:21:16 PM] System.Deployment.Application.DependentPlatformMissingException (Unknown subtype)
- Unable to install or run the application. The application requires that assembly DPFPVerNET Version 1.6.1.0 be installed in the Global Assembly Cache (GAC) first.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.PlatformDetector.VerifyPlatformDependencies(AssemblyManifest appManifest, AssemblyManifest deployManifest, String tempDir)
at System.Deployment.Application.DeploymentManager.DeterminePlatformRequirementsCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.DeterminePlatformRequirements()
at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements(Boolean grantApplicationTrust)
at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements()
at MS.Internal.AppModel.XappLauncherApp.AssertApplicationRequirementsAsync(Object unused)
* [9/28/2015 5:21:16 PM] System.Deployment.Application.DeploymentException (Unknown subtype)
- The DeterminePlatformRequirements method failed. The application cannot be committed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DeploymentManager.WaitForAssertApplicationRequirements()
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

By running run time environment of finger print device on client PC, you can over come this error!

Related

The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) and Compiler Error Message: CS1583

I am debugging the web application on browser as application built in .Net framework with Knockout.js, MVC 4.5.
Below two issues are occurring in order on my machine as First:
The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
Screen Shot for handle error
and on refreshing browser again and again for multiple time, below second error is shown as:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1583: 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\319fdbfa\d4467656\CSC7451AF8AE7204B6CA14A4B158BEA80FA.TMP' is not a valid Win32 resource file
For it Screen shot of Compilation Error
And again on multiple time refreshing site, first issue is shown on screen and after that second.
Note
I have tried all the solutions as shared in other posts as:
taskkill /fi "imagename eq webdev.webserver40.exe"
server where website sits, open the command prompt and run the command with framework path: aspnet_regiis.exe -i -
Include 'Min Pool Size =1' in the connection string.
Clear out the temporary ASP.Net files on the server
Clear out the bin folder files
However same application is debugging successfully without any error on my colleagues machine with same environment and configuration.

Error analyzing c# project with Sonar 4.5.4

I got the following error when analyzing a c# project with SonarQube 4.5.4. I have the sonar-csharp-plugin-4.0 installed.
Sensor org.sonar.plugins.csharp.CSharpSensor#18cf794...
10:48:17.000 DEBUG - Updating semaphore batch-com.test.sample
10:48:24.571 ERROR -
10:48:24.879 ERROR - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
10:48:24.879 ERROR - at SonarQube.CSharp.CodeAnalysis.Runner.Program.Main(String[] args)
10:48:27.146 DEBUG - Updating semaphore batch-com.test.sample
10:48:37.211 DEBUG - Updating semaphore batch-com.test.sample
10:48:37.714 DEBUG - Release semaphore on project : org.sonar.api.resources.Project#494546[id=1442,key=com.test.sample,qualifier=TRK], with key batch-com.test.sample
The C# plugin is implemented in C# itself (based on Roslyn) since version 4.0.
It requires the .NET framework 4.5 to be installed on the machine from which the analysis is being executed.

Installation fails to download

Recently I'm experiencing issue in downloading ClickOnce installation of an application.
When I enter my credentials and click on log-in, I'm getting below error in a pop-up,
"Application download did not succeed. Check your network connection, or contact administrator or network service provider".
When I click on details below message gets opened in notepad:
PLATFORM VERSION INFO
Windows : 6.0.6002.131072 (Win32NT)
Common Language Runtime : 4.0.30319.18408
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : "url"
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of "url" resulted in exception. Following failure messages were detected:
+ Downloading "url" did not succeed.
+ The remote server returned an error: (401) Unauthorized.
+ The logon attempt failed
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [11-12-2014 20:04:24] : Activation of "url" has started.
ERROR DETAILS
Following errors were detected during this operation.
* [11-12-2014 20:04:25] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading "url" did not succeed.
- Source: System.Deployment
- Stack trace:
""
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (401) Unauthorized.
- Source: System
- Stack trace:
""
--- Inner Exception ---
System.ComponentModel.Win32Exception
- The logon attempt failed
- Source: System
- Stack trace:
""
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
Also, we have another application hosted in the same server which is having same ClickOnce installation, which can be downloaded and this application is launched successfully.

Problems publishing working application to Azure

I have an MVC 5 build that is building and running locally without any problems whatsoever. I cannot however publish to Azure. I'm publishing with Intellitrace enabled and I'm seeing that an exception is being thrown attempting to activate the role.
Exception Thrown: "Requested registry access is not allowed." (System.Security.SecurityException)
I have made sure of the following:
I have the latest edition of the Microsoft Azure SDK
All the relevant project references for all of my project references are set to Copy Local: True
All the relevant libraries have the correct binding redirects in their respective app.config/web.config files
All the Azure references in my project are to the correct versions of the assemblies
The event log shows the following exceptions in chronological order:
Error 4/11/2014 3:23:57 AM SRMSVC 8228 None
File Server Resource: Manager was unable to access the following
file or volume: 'E:'. This file or volume might be locked by
another application right now, or you might need to give Local
System access to it.
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
.
Error 4/11/2014 3:31:45 AM Application Error 1000 (100) Faulting
application name: DiagnosticsAgent.exe, version: 0.0.0.0, time stamp:
0x5243ef34 Faulting module name: KERNELBASE.dll, version:
6.2.9200.16451, time stamp: 0x50988aa6 Exception code: 0xe0434352 Fault offset: 0x000000000003811c Faulting process id: 0x9c Faulting
application start time: 0x01cf55368ce74b73 Faulting application path:
E:\plugins\Diagnostics\DiagnosticsAgent.exe Faulting module path:
D:\Windows\system32\KERNELBASE.dll Report Id:
cdd18167-c129-11e3-93f5-00155d85a04e Faulting package full name:
Faulting package-relative application ID:Server ResourceApplication:
We were getting the following error:
"File Server Resource Manager was unable to access the following file or volume: 'E:'. This file or volume might be locked by another application right now, or you might need to give Local System access to it."
We resolved the issue by updating our project references. If you are getting this error, check your Azure references, specifically these two:
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.Diagnostics
Ensure that your references are the appropriate Azure SDK version to the schema/SDK you are pointing to in Azure.

Installation problems of C# deployment

I have a program I deployed using ClickOnce deployment and then installed on my machine. I tried running it, and it gave me the following error:
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file:///C:/../MyProg.appref-ms%7C
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\..\MyProg.appref-ms| resulted in exception. Following failure messages were detected:
+ The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/30/09 2:45:10 PM] : Activation of C:\..\MyProg.appref-ms| has started.
ERROR DETAILS
Following errors were detected during this operation.
* [3/30/09 2:45:16 PM] System.Runtime.InteropServices.COMException
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
at System.Deployment.Internal.Isolation.Store.GetAssemblyManifest(UInt32 Flags, IDefinitionIdentity DefinitionIdentity)
at System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)
at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
at System.Deployment.Application.SubscriptionState.Validate()
at System.Deployment.Application.SubscriptionState.get_IsInstalled()
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
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)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I cannot uninstall the program, but I can't see why (a dialog pops up for a second and disappears before I can read it), and I can't reinstall the application until I have uninstalled the old version.
What might the problem is, and what I can do about it?
Previous versions were deployed using Visual Studio 2008. This version was deployed using Visual C# Express Edition. There is a dependency for the MySQL Connection package. I have not customized any of the settings when publishing, beyond the location of the directory and the version number (non-duplicate version number).
Your application store may be messed up. You can try deleting this key (it will all remove any currently installed Click-Once applications):
HKEY_CURRENT_USER\Software\Classes\SOFTWARE\Microsoft\Windows\CurrentVersion\Deployment\SideBySide
As a note, if your application 'works' besides that error or on other machines, then this is likely your issue.

Categories