I am publishing my application with HTTPS setup url and host it to HTTPS url.
When I run setup.exe an error occurred.
An error occurred trying to download 'https://***.tjc.tv/WMSClient.application'.
See the setup log file located at 'C:\Users\mkumawat\AppData\Local\Temp\VSD3796.tmp\install.log' for more information.
Log file
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.2.0 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697202'
Error: An error occurred trying to download 'https://***.tjc.tv/WMSClient.application'.
When I manually download this https://***.tjc.tv/WMSClient.application in browser then it's downloading and works fine but in setup.exe it's not working.
I have already tried following solutions but nothing works.
Enable - Launching applications and unsafe files in Custom level in Internet options.
Uncheck - Warn if changing between secure and not secure mode in advanced tab in Internet options.
Sign the ClickOnce Manifests in project properties in VS
But these all are failing nothing works.
This issue occurs with only HTTPS not HTTP. HTTP is working fine but I need to use HTTPS.
SSL certificate is valid.
Anyone know about this.
On our systems setup.exe failed as well, with the error URLDownloadToCacheFile failed with HRESULT '-2146697208', while, when clicking on the ourapp.application link or launching the downloaded file, the applicaction installed with no issue.
If we changed the install source from HTTPS to HTTP, we would then be able to install using setup.exe.
Our resolution was to re-enable the caching of HTTPS pages. Since setup.exe is using WinInet, this is an Internet Settings change that can be made thru IE.
In Internet Explorer, go to Tools/Internet options
Switch to the Advanced tab and scroll down to the Security section.
Un-check the item “Do not save encrypted pages to disk”.
Since most traffic is moving to HTTPS, this security feature doesn't make much sense to me anymore
Related
When deploying 1 application through Visual Studio 2017 & 2015 one of our devs is getting the exception below raised in the servers event logs.
No other developer gets this exception, and it seems to happen for all apps that developer tries to deploy.
Here's what the log says about it on the server ...
The description for Event ID 1 from source Web Deploy cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
User: S0000878\WROW
Client IP: 10.100.177.100:80
Content-Type: application/msdeploy
Version: 9.0.0.0
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 9.0.1972.0
MSDeploy.Method: Sync
MSDeploy.RequestId: 94589097-54ba-4753-a37b-32571bfe6b8f
MSDeploy.RequestCulture: en-GB
MSDeploy.RequestUICulture: en-GB
ServerVersion: 9.0.1962.0
Skip: objectName="^configProtectedData$"
Provider: auto, Path:
A tracing deployment agent exception occurred that was propagated to the client. Request ID '94589097-54ba-4753-a37b-32571bfe6b8f'. Request Timestamp: '16/05/2017 10:26:59'. Error Details:
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt16()
at Microsoft.Web.Deployment.PackageDeserializer.GetNextEntryType()
at Microsoft.Web.Deployment.SerializationProvider..ctor(DeploymentBaseContext baseContext, PackageDeserializer deserializer)
at Microsoft.Web.Deployment.PackageDeserializer.GetSerializationProvider()
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable`1 passId, String user, String siteName)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
I'm at a loss because the deployment process works from all other dev machines and from our build boxes, and yet it's only the server that complains.
What should I be looking for on the developers machine that might help indicate the real problem here?
It seems that the problem was caused by proxy settings on the developers machine.
this sort of problem can be caused by tools like Fiddler (often used by developers to debug API calls to web services).
The developer seems to have fixed it by repairing VS in this instance suggesting that there was also an issue with the VS install.
In my case, the issue was caused by a security software in our environment. However, while doing research about this issue, I noticed that these are also required for Web Deploy to work:
Management Services should be installed (Add Role and Features > Web
Server)
Web Management Service sand Web Deploy Agent Service hould be
running
Make sure Fiddler or any other similar software is not
running while publishing
Make sure TCP port 8172 is open in the
server
Source: Web Deploy experienced a connection problem (ERROR_CONNECTION_TERMINATED)
I have deployed my WCF webservice locally and its working fine, But in a method I got unexpected result so I decided to debug my webservice in Visual Studio. But I get the following errors. (Even I am running VS with administrative privileges).
I also exposed endpoints in web.config but still not working here is the error from Log file,
Failed to register URL "http://localhost:61241/" for site
"TaxiRiderService" application "/". Error description: Access is
denied. (0x80070005)
Open .CSPROJ from project, Delete the whole lines for
<DevelopmentServerPort> and <IISUrl> ...
http://gizmoblogr.com/821/workaround-url-binding-failure-error-iisexpress
I faced same problem windows7, VS15,
I tried adding/removing localhost:port# to urlacl using netsh command but din`t work.
netsh http add urlacl url=http://localhost:63746/ user=everyone
I had to disable Internet Connection Sharing ICS for my ethernet (I had enabled this for sharing internet to VM) and I was able to debug/run solution locally.
Are you sure, that your're debugging the service with an elevated account?
This error is quite common if you're trying to host a service on a non-default port using a standard user.
You could try to register that port to that specific user. Open an elevated command prompt and execute the follwing command:
add urlacl url=http://localhost:61241/TaxiRiderService user=YOURDOMAIN\youruser
For details have a look at: http://msdn.microsoft.com/en-us/library/windows/desktop/cc307223%28v=vs.85%29.aspx
on cmd with admin access
netsh http add urlacl url=http://localhost:80/ user=everyone
From Microsoft Docs: Handling URL Binding Failures in IIS Express
The problem came for me after messing with Hyper V Virtual Switch manager.
I had the lan card driver uninstalled and reinstalled again.
Problem solved at once.
Running visual studio as an administrator solves this issue for me.
Sometimes .vs folder also needs to be deleted.
I'm getting the below error when I try to run the app certification test on my windows 8.1 app. I've looked around for a while and can't seem to find any solutions for this. The app is written in C#/xaml which I wasn't aware even had a linker.
I'm hoping that someone can guide me in the right direction on how I should start to investigate an error like this as web searches have thus far failed me
Binary analyzer
•Error Found: The binary analyzer test detected the following errors:
◦File [MyTabletApplication.exe] has failed the AppContainerCheck check.
•Impact if not fixed: If the app doesn’t use the available Windows protections, it can increase the vulnerability of the customer's computer to malware.
•How to fix: Apply the required linker options - SAFESEH, DYNAMICBASE, NXCOMPAT, and APPCONTAINER - when you link the app. See links below for more information:
If you are using Visual Studio 2015 and this is a new solution/project make sure the 'Compile with .NET Native tool chain' check box is cleared in the startup project properties in the Release configuration.
I have setup my TeamCity to build using MsBuild a project that NuGet packages.
During the build, the following command to install packages is issued, but fails:
..\nuget.exe install "C:\TeamCity\buildAgent\work\811b6866c8757c46\Service\packages.config" -source "https://nuget.org/api/v2/" -RequireConsent -solutionDir "..\ "
Error:
Unable to connect to the remote server
with exit code 1.
Interesting to note is that when I run this exact same command on the cmd prompt (inside the same path), it succeeds without any errors.
This is what I have done so far:
Add a new Build Parameter under environment variables in TeamCity: env.EnableNuGetPackageRestore and set it to 'true'
Add a specific path to the package sources (https://nuget.org/api/v2/) inside the ..nuget\nuget.targets file (as described here)
To provide the additinal paths ways to supply a path:
Modified the nuget.config file inside the .nuget folder (..nuget\nuget.config)
Modified the nuget.config for the SYSTEM account that the build runner is executing under (C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\NuGet\nuget.Config) (as described here)
What I was thinking is that this has something to do with a roaming profile of the System user (that the build agents runs with) because it all works when build agent runs with my account. But the nuget.config is the same for both profiles, and I'm out of ideas. Maybe the System user doesn't have access to the Internet on WinServer2012R2? Maybe it needs additional permissions? Which ones?
Do you have any ideas of what to try?
The error turned out to be the setting for the ISA server we have on our network (the TMG client). By default this isn't set up for new (local) users and therefore the SYSTEM account didn't have access to the web.
I've set this up for a new local user (non-domain, with password that doesn't expire), added it to Administrators group and now it works just fine.
I want to publish an xbap app but I can't get it due to a problem with ClickOnce.
My app needs to use an oracle database. If I publish it with enabled ClickOnce and 'this is a partial trust application' the publishing is OK, but the access to database doesn't work.
If I choose 'this is a full trust application' I can't publish.
I have tried to disable ClickOnce but the wizard enables it again.
Also, I have tried to custom and edit permissions XML and where it reads:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
I have written:
But an exception is ocurred:
ClickOnce is not support the request execution level 'requireAdministrator'
Any help is useful for me.
The errors are:
An exception occurred when determining confidence. We detected the
following error messages: User has declined to grant the required
permissions for the application.
An exception occurred while downloading the application. We detected
the following error messages: AssertApplicationRequirements method
failed. The application can not be confirmed.
But I don't know what AssertApplicationRequirements is.
According to this post on Connect you have to use caspol.exe to fix this:
From the computer that you are trying to run the XBAP application on,
can you run the following command (you can run it from the Run Dialog,
or a command prompt):
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol -m -ag 1 -url
"http://localhost/xbaptest/clickonce*" FullTrust -exclusive on