DAC gives timeout and fails to start the isolated environment with a silent setupper - desktop-bridge

Any ideas how to fix this timeout issue?
My application setupper is 100% silent, when I run it by hand, so the setupper itself is not hanging...
[2016-09-27T16:50:57] Log file can be found in
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\logs\DesktopAppConverter.log
[2016-09-27T16:50:57] Desktop App Converter
1.0.0.release_2016-09-12_17-35_ffbf3b5cdc49b01e13ab503dae648326acae0991
[2016-09-27T16:50:57]
Checking Prerequisites
[2016-09-27T16:50:57] Checking Windows Version to ensure it meets
minimum requirements [2016-09-27T16:50:57] Minimum Windows Version
requirement is met. [2016-09-27T16:50:57] Testing for required feature
enabled... [2016-09-27T16:51:00] Required feature is enabled. Checking
if reboot is required [2016-09-27T16:51:03] Required feature is
enabled. [2016-09-27T16:51:03] Checking network config...
[2016-09-27T16:51:03] Checking virtual network: "Windows Desktop App
Converter Network" [2016-09-27T16:51:03] Using virtual network:
"Windows Desktop App Converter Network" [2016-09-27T16:51:03] Checking
if Microsoft Windows 10 SDK is installed [2016-09-27T16:51:03]
Checking if MAKEAPPX.exe is available in the Microsoft Windows 10 SDK
tools [2016-09-27T16:51:03] Checking if SIGNTOOL.exe is available in
the Microsoft Windows 10 SDK tools [2016-09-27T16:51:03] Checking
Windows SDK version to ensure it meets minimum requirements.
[2016-09-27T16:51:04] The installed Windows SDK version is supported
(10.0.14393.33) [2016-09-27T16:51:04]
Initializing AppxManifest.xml
[2016-09-27T16:51:04] Creating working directory structure at
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d
[2016-09-27T16:51:04] Attempting to set appx manifest property
'PackageName' to 'TestTest'. [2016-09-27T16:51:04] Attempting to set
appx manifest property 'Publisher' to 'CN=Test'.
[2016-09-27T16:51:04] Attempting to set appx manifest property
'Version' to '0.0.0.1'. [2016-09-27T16:51:04] No value provided for
appx manifest property 'PackagePublisherDisplayName'. Attempting to
set it to the default value 'CN=Test'
[2016-09-27T16:51:04] Attempting to set appx manifest property
'PackagePublisherDisplayName' to 'CN=Test'. [2016-09-27T16:51:04]
No value provided for appx manifest property 'PackageDisplayName'.
Attempting to set it to the default value 'TestTest'
[2016-09-27T16:51:04] Attempting to set appx manifest property
'PackageDisplayName' to 'TestTest'. [2016-09-27T16:51:04] No value
provided for appx manifest property 'AppDescription'. Attempting to
set it to the default value 'TestTest' [2016-09-27T16:51:04]
Attempting to set appx manifest property 'AppDescription' to
'TestTest'. [2016-09-27T16:51:04] Attempting to set appx manifest
property 'AppDisplayName' to 'TestTest'. [2016-09-27T16:51:04] No
value provided for appx manifest property 'AppId'. Attempting to set
it to the default value 'TestTest' [2016-09-27T16:51:04] Attempting to
set appx manifest property 'AppId' to 'TestTest'.
[2016-09-27T16:51:04]
Validating Input
[2016-09-27T16:51:04] Expanded base image(s) found at
C:\ProgramData\Microsoft\Windows\Images. Attempting to choose the most
recent one compatible with your version of Windows.
[2016-09-27T16:51:04] Testing if expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is compatible
with your OS [2016-09-27T16:51:04] Your Windows version was determined
to be 10.0.14393.0 [2016-09-27T16:51:04] Attempting to determine
Windows version for expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393
[2016-09-27T16:51:04] Attempting to determine version from version
file
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json
if it exists [2016-09-27T16:51:04] Version found in
'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json'
is: 10.0.14393.0 [2016-09-27T16:51:04]
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows
version 10.0.14393.0 [2016-09-27T16:51:04] The expanded base image
version was determined to be 10.0.14393.0 [2016-09-27T16:51:04]
Ignoring revision numbers [2016-09-27T16:51:04] Expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 IS compatible
with your OS [2016-09-27T16:51:04] Expanded base image with compatible
Windows version found:
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393
[2016-09-27T16:51:04] Using expanded base image:
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393
[2016-09-27T16:51:04] Checking that the ExpandedBaseImage
'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393' is valid
[2016-09-27T16:51:04] Testing if expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is compatible
with your OS [2016-09-27T16:51:04] Your Windows version was determined
to be 10.0.14393.0 [2016-09-27T16:51:04] Attempting to determine
Windows version for expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393
[2016-09-27T16:51:04] Attempting to determine version from version
file
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json
if it exists [2016-09-27T16:51:04] Version found in
'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json'
is: 10.0.14393.0 [2016-09-27T16:51:04]
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows
version 10.0.14393.0 [2016-09-27T16:51:04] The expanded base image
version was determined to be 10.0.14393.0 [2016-09-27T16:51:04]
Ignoring revision numbers [2016-09-27T16:51:04] Expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 IS compatible
with your OS [2016-09-27T16:51:04] Attempting to determine Windows
version for expanded base image at
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393
[2016-09-27T16:51:04] Attempting to determine version from version
file
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json
if it exists [2016-09-27T16:51:04] Version found in
'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json'
is: 10.0.14393.0 [2016-09-27T16:51:04]
C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows
version 10.0.14393.0 [2016-09-27T16:51:04] Ensuring the provided
Installer (C:\my\Test1.exe) exists [2016-09-27T16:51:04] Checking
if Destination (c:\temp\TEST1) exists [2016-09-27T16:51:04]
c:\temp\TEST1 exists [2016-09-27T16:51:04] c:\temp\TEST1 exists but is
not empty [2016-09-27T16:51:05] Moving files currently at
'c:\temp\TEST1' to 'c:\temp\TEST1.old0' [2016-09-27T16:51:05] Ensuring
that this script has write permissions to c:\temp\TEST1...
[2016-09-27T16:51:05] Checking that installer is not sibling to
working directory [2016-09-27T16:51:05]
Setting up Conversion Environment
[2016-09-27T16:51:05] Copying contents of C:\tq to
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\shared\installer
to be shared with isolated environment [2016-09-27T16:51:05] Copying
KnownFolderDump.exe and its dependencies to
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\shared\dac\bin
[2016-09-27T16:51:05]
Running Installer in Isolated Environment
[2016-09-27T16:51:05] No installer valid exit codes specified. Using
defaults: 0 [2016-09-27T16:51:05] Replace any occurence of
in -InstallerArguments with C:\shared\logs
[2016-09-27T16:51:05] Creating Isolated Environment
[2016-09-27T16:51:06] Starting the Isolated Environment
[2016-09-27T16:53:07] An error occurred running your installer in
isolation [2016-09-27T16:53:07] Invoke-IsolatedInstall : error
'E_STARTING_ISOLATED_ENV_FAILED': Failed to start the isolated
environment. See inner exception for more details.
[2016-09-27T16:53:07] Disposing of the Isolated Environment
[2016-09-27T16:53:07] Moving any logs in
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\shared\logs
to C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\logs
[2016-09-27T16:53:07] Moving any dac output in
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\shared\dac\out
to
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\output\dac
[2016-09-27T16:53:07] Cleaning up by removing isolated environment
shared folder
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\shared
[2016-09-27T16:53:07] An error occurred converting your application.
Here is the full error record: [2016-09-27T16:53:07]
PowerShell Error Record: DesktopAppConverter : error
'E_STARTING_ISOLATED_ENV_FAILED': Failed to start the isolated
environment. See inner exception for more details.
[2016-09-27T16:53:07] PowerShell Stack Trace: at RaiseUserException,
C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_1.0.0.0_x64__8wekyb3d8bbwe\converter_util\DACLogger.ps1:
line 151 at Invoke-IsolatedInstall, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_1.0.0.0_x64__8wekyb3d8bbwe\converter_util\IsolatedEnvironmentOps.ps1: line 153 at , C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_1.0.0.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1:
line 465 at , : line 1 [2016-09-27T16:53:07]
Inner Exception[0]: System.Management.Automation.RuntimeException:
DesktopAppConverter : error 'E_STARTING_ISOLATED_ENV_FAILED': Failed
to start the isolated environment. See inner exception for more
details. ---> System.Management.Automation.MethodInvocationException:
Exception calling "Start" with "0" argument(s): "One or more errors
occurred." ---> System.AggregateException: One or more errors
occurred. ---> Microsoft.Windows.ComputeVirtualization.HcsException:
HCS function call returned error. --->
System.Runtime.InteropServices.COMException: This operation returned
because the timeout period expired. (Exception from HRESULT:
0x800705B4) --- End of inner exception stack trace --- at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()
--- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions) at
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken) at
System.Threading.Tasks.Task.Wait() at
Microsoft.Windows.ComputeVirtualization.Container.Start() at
CallSite.Target(Closure , CallSite , Object ) --- End of inner
exception stack trace --- at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception) at
System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) --- End of inner exception stack trace --- at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception) at
System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) [2016-09-27T16:53:07] Inner Exception Stack Trace[0] at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception) at
System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) [2016-09-27T16:53:07]
Inner Exception[1]:
System.Management.Automation.MethodInvocationException: Exception
calling "Start" with "0" argument(s): "One or more errors occurred."
---> System.AggregateException: One or more errors occurred. ---> Microsoft.Windows.ComputeVirtualization.HcsException: HCS function
call returned error. ---> System.Runtime.InteropServices.COMException:
This operation returned because the timeout period expired. (Exception
from HRESULT: 0x800705B4) --- End of inner exception stack trace
--- at Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()
--- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions) at
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken) at
System.Threading.Tasks.Task.Wait() at
Microsoft.Windows.ComputeVirtualization.Container.Start() at
CallSite.Target(Closure , CallSite , Object ) --- End of inner
exception stack trace --- at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception) at
System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) [2016-09-27T16:53:07] Inner Exception Stack Trace[1] at
System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception) at
System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame) [2016-09-27T16:53:07]
Inner Exception[2]: System.AggregateException: One or more errors
occurred. ---> Microsoft.Windows.ComputeVirtualization.HcsException:
HCS function call returned error. --->
System.Runtime.InteropServices.COMException: This operation returned
because the timeout period expired. (Exception from HRESULT:
0x800705B4) --- End of inner exception stack trace --- at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()
--- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions) at
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken) at
System.Threading.Tasks.Task.Wait() at
Microsoft.Windows.ComputeVirtualization.Container.Start() at
CallSite.Target(Closure , CallSite , Object )
---> (Inner Exception #0) Microsoft.Windows.ComputeVirtualization.HcsException: HCS function
call returned error. ---> System.Runtime.InteropServices.COMException:
This operation returned because the timeout period expired. (Exception
from HRESULT: 0x800705B4) --- End of inner exception stack trace
--- at Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()<---
[2016-09-27T16:53:07] Inner Exception Stack Trace[2] at
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions) at
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken) at
System.Threading.Tasks.Task.Wait() at
Microsoft.Windows.ComputeVirtualization.Container.Start() at
CallSite.Target(Closure , CallSite , Object ) [2016-09-27T16:53:07]
Inner Exception[3]:
Microsoft.Windows.ComputeVirtualization.HcsException: HCS function
call returned error. ---> System.Runtime.InteropServices.COMException:
This operation returned because the timeout period expired. (Exception
from HRESULT: 0x800705B4) --- End of inner exception stack trace
--- at Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()
[2016-09-27T16:53:07] Inner Exception Stack Trace[3] at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.ProcessHcsCall(Int32
resultCode, String result) at
Microsoft.Windows.ComputeVirtualization.HcsFactory.Hcs.Microsoft.Windows.ComputeVirtualization.IHcs.StartComputeSystem(IntPtr
computeSystem, String options) at
Microsoft.Windows.ComputeVirtualization.Container.d__8.MoveNext()
[2016-09-27T16:53:07]
Inner Exception[4]: System.Runtime.InteropServices.COMException
(0x800705B4): This operation returned because the timeout period
expired. (Exception from HRESULT: 0x800705B4) [2016-09-27T16:53:07]
The full error record is saved in the logs at
C:\DesktopAppConverter\4e2c2695-d2df-4384-b4e7-27b2a8f5e93d\logs

The reason seem to be Hyper-V is not installed/available.

Related

Error while remove migration and update database entity framework core Exception while reading from stream

I am working in dotnet core web api using restful service with entity framework code first approach. I am running one migration and when I run the migration using add-migration command then I get build succeeded but then when I try to update-database or rollback the migration using remove-migration I get the below error:
PM> remove-migration
Build started...
Build succeeded.
Npgsql.NpgsqlException (0x80004005): Exception while reading from stream
---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at Npgsql.NpgsqlReadBuffer.<>c__DisplayClass34_0.<<Ensure>g__EnsureLong|0>d.MoveNext()
at Npgsql.NpgsqlReadBuffer.<>c__DisplayClass34_0.<<Ensure>g__EnsureLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Npgsql.NpgsqlConnector.<>c__DisplayClass160_0.<<DoReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Npgsql.NpgsqlConnector.Authenticate(String username, NpgsqlTimeout timeout, Boolean async)
at Npgsql.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Npgsql.NpgsqlConnection.Open()
at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlDatabaseCreator.Exists()
at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.GetAppliedMigrations()
at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.RemoveMigration(String projectDir, String rootNamespace, Boolean force, String language)
at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.RemoveMigration(String contextType, Boolean force)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.RemoveMigrationImpl(String contextType, Boolean force)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.RemoveMigration.<>c__DisplayClass0_0.<.ctor>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Exception while reading from stream
This is resolved. I had a Factory class in which the connection string was not updated to my local database. There it was pointing to dev and my secret.json was pointing to localhost.

Error with publishing my ASP.net website

solved.
My solution: Build -> clean -> rebuild
I got host for my website and now I'm trying to upload the website's files via VS2017 using 'publish' feature of VS. I setup the connection with the host properly (Validate connection went successful..). But as the VS tries to upload my files it says:
Unable to add 'Content/homePage.css' to the Web site. Unable to parse server response to PASV command.
This error message is shown for each file in my website. The above is just an example to such message. I'm using FTP publish method. My host is 000webhost
diagnostic log:
15/07/2018 08:56:08
System.AggregateException: One or more errors occurred. ---> System.Exception: Publish failed due to build errors. Check the error list for more details.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass40_0.<PublishAsync>b__2()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__88.MoveNext()
---> (Inner Exception #0) System.Exception: Publish failed due to build errors. Check the error list for more details.<---
===================

Setting up .net site in IIS 8.5 (AWS)

My .net project (Any CPU) is referring to Oracle.dataaccess x86 version . In my local GAC the odac version is x86. But in the web server where it was installed previously was having AMB64 version of odac in GAC . The site was working without any problem . Now I need to move the site to AWS .The windows instance in AWS has the below configuration.
OS version : Microsoft windows server 2012 R2 Standard .
IIS 8.5
The server is clean and does not have any software installed .
When I try to create a site , I ended up seeing **could not load file or assembly one of its dependencies **. Through forums I installed various libraries from Oracle but I don't understand what are the exact steps needed . I was just doing trial and error.
Please let me know the software or steps to follow which needs do be installed such that my .net site which is connecting to its Oracle database works .
Edit 1 :
Hi ,
I performed the following steps .
As suggested by you I added Oracle.managedDataaccess dll(x86) . It worked well in my local.
Deployed the same code in the server.
I installed the oracle_12.1.0.1.0
In C:/oracle_12.1.0.1.0/odp.net/managed/x86 I ran the bat file for configuring the managed odac in the server. I was able to see the changes in the machine.config file .
5.Now when I ran the site I got the below error .
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.TypeInitializationException: The type initializer for
'Oracle.DataAccess.Client.OracleClientFactory' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'OraOps12.dll': The specified module could not be found. (Exception from HRESULT:
0x8007007E) at
Oracle.DataAccess.Client.OpsInit.CheckVersionCompatibility(String
version) at Oracle.DataAccess.Client.OracleInit.Initialize() at
Oracle.DataAccess.Client.OracleClientFactory..cctor() --- End of
inner exception stack trace --- --- End of inner exception stack
trace --- at System.RuntimeFieldHandle.GetValue(RtFieldInfo field,
Object instance, RuntimeType fieldType, RuntimeType declaringType,
Boolean& domainInitialized) at
System.Reflection.RtFieldInfo.UnsafeGetValue(Object obj) at
System.Reflection.RtFieldInfo.GetValue(Object obj) at
System.Data.Common.DbProviderFactories.GetFactory(DataRow providerRow)
at
System.Data.Entity.Internal.LazyInternalConnection.CreateConnectionFromProviderName(String
providerInvariantName) at
System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings
appConfigConnection) at
System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String
name, AppConfig config) at
System.Data.Entity.Internal.LazyInternalConnection.Initialize() at
System.Data.Entity.Internal.LazyInternalConnection.get_Connection()
at Sample.Data.AbstractEFUnitOfWork2.SetClientId(String clientId)
at Sample.Web.Controllers.ApiControllerBase1..ctor(IUow uow,
IConnectionManager cm, IEnumerable`1 allowedAppUserbases, String
connectionName, Boolean allowSaves)
In order to fix this I added OraOps12 dll from c:/oracle_12.1.0.1.0/bin to the wwwroot/site/bin folder. Then I got the below error .
System.ArgumentException: Unable to find the requested .Net Framework
Data Provider. It may not be installed. at
System.Data.Common.DbProviderFactories.GetFactory(String
providerInvariantName) at
System.Data.Entity.Internal.LazyInternalConnection.CreateConnectionFromProviderName(String
providerInvariantName) at
System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings
appConfigConnection) at
System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String
name, AppConfig config) at
System.Data.Entity.Internal.LazyInternalConnection.Initialize() at
System.Data.Entity.Internal.LazyInternalConnection.get_Connection()
at Sample.Data.AbstractEFUnitOfWork2.SetClientId(String clientId)
at Sample.Web.Controllers.ApiControllerBase1..ctor(IUow uow,
IConnectionManager cm, IEnumerable`1 allowedAppUserbases, String
connectionName, Boolean allowSaves)
Checking to resolve this .
Appreciate your suggestions.

Visual Basic 2015 project for VB.NET to work in XP

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/

OrangeBits extension for WebMatrix may have caused a crash and has been disabled

I'm getting the following error every time I open WebMatrix with the OrangeBits extension installed:
The "OrangeBits" extension may have caused a crash and has been disabled. We recommend contacting the extension owner for assistance.
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> Ionic.Zip.ZipException: The file C:\USERS\NAME\APPDATA\LOCAL\MICROSOFT\WEBMATRIX\EXTENSIONS\30\OrangeBits\Tools\bin\cake already exists.
at Ionic.Zip.ZipEntry.CheckExtractExistingFile(String baseDir, String targetFileName)
at Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password)
at Ionic.Zip.ZipEntry.Extract(String baseDirectory)
at OrangeBits.OrangeBits.<>c__DisplayClass17.<UnpackModules>b__15()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) Ionic.Zip.ZipException: The file C:\USERS\NAME\APPDATA\LOCAL\MICROSOFT\WEBMATRIX\EXTENSIONS\30\OrangeBits\Tools\bin\cake already exists.
at Ionic.Zip.ZipEntry.CheckExtractExistingFile(String baseDir, String targetFileName)
at Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password)
at Ionic.Zip.ZipEntry.Extract(String baseDirectory)
at OrangeBits.OrangeBits.<>c__DisplayClass17.<UnpackModules>b__15()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
Referencing Justin Beckwith's answer here
Resolving this issue was as simple as navigating to:
C:\USERS\NAME\APPDATA\LOCAL\MICROSOFT\WEBMATRIX\EXTENSIONS\30\OrangeBits\Tools
And deleting modules.zip

Resources