In Microsoft Windows you are able to access some special folders and start some special application from Run… and then type a magic command.
One of these folders is %appsfolder% with a list of installed applications. From this folder you are able to create shortcuts etc. This folder can be accessed using the Windows Run command box and typing “shell:appsfolder”.
When you want to open the folder or run another command without first clicking Windows, Run: You are also able to execute the command from a command prompt using “start” and then the magic words you have to type in the run command box.
When you want to test your website and check it remote you see the error:
Bad Request – Invalid Hostname
HTTP Error 400. The request hostname is invalid.
First thing to do is to find the correct applicationhost.config file. This file can be found in
the solution directory under .vs/<Solution name>/config. This file contains an entry under the tag <sites> for the site with the config that is applied in IISExpress.
This enables binding for the IIS:
<bindings>
<binding protocol="http" bindingInformation="*:29136:localhost" />
<binding protocol="https" bindingInformation="*:44343:localhost" />
</bindings>
Above configuration only allows localhost to access the IISSExpress site.
Change it to:
<bindings>
<binding protocol="http" bindingInformation=":29136:" />
<binding protocol="https" bindingInformation=":44343:" />
</bindings>
to allow remote machines to access the site.
While debugging an Android application I wanted to connect to a new device. I factory reset the device and wanted to deploy the application with adb (Android Debug Bridge).
Response from adb after run android –livereload was:
adb.exe: device unauthorized. This adb server’s $ADB_VENDOR_KEYS is not set Try ‘adb kill-server’ if that seems wrong. Otherwise check for a confirmation dialog on your device.
My colleague had the same experience earlier and didn’t know how to solve this. The first entries in google didn’t provide a correct solution.
I tried several first like removing the .android folder from my profile. All effort was unsuccessful.
The solution simply was to allow USB connection on the device via USB debugging in developer options on the Android Device.
At the office I had a problem with my developer PC. It was running Windows 10 and for some Visual Studio projects (UWP) etc. I had to set my machine to Developer Mode.
This setting can normally be set in Windows Settings, Update & Security, For Developers…
However….
On my machine this window stated that some of these settings are hidden or managed by your organization.
So I called my organization but they were unable to help me out. No one knew the cause of this message. No policy setting was set, I was administrator on the machine etc…
Call closed…
Problem not solved…
I needed this fixed so I gave it my best try… Maybe google could help me out. After a few searches I got the idea the message could erroneously be set by Windows, not because of company policies. I looks like some combination of settings and Windows 10 updates can have this situation as a result.
Walking through various forums with all kind of solutions, there was one simple solution that helped me out…
Remove all settings in the registry key except for one.
Make sure the key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Appx looks like this:
In my case it also contained the key AllowDevelopmentWithoutDevLicence set to false. I completely removed that key and set AllowAllThrustedApps to true. Rebooted my machine.
A new policy implementation on a new Windows 10 machine can cause Windows 10 to report that certain shares are inaccessable due to policy settings.
The solution is to change the Local Group Policy with gpedit.msc:
Navigate to Computer Configuration -> Administrative Templates -> Network -> Lanman Workstation and select the Enable insecure guest logons as shown in the below screenshot.
I wanted my application to be available via a MSIX installer. This new MSIX installer supports all type of Windows applications including Win32, WPF, WinForm and UWP.
I struggled a few days to get the certificate right so that is why I published this article. This article goes through the process of creating a certificate and adding this to the app installer package.
First you need to add a new project to your solution. The solution type is called Windows Application Packaging Project. This is done by right clicking the solution and go to Add > New Project…
Determine the subject of your packaged app To use a certificate to sign your app package, the “Subject” in the certificate must match the “Publisher” section in your app’s manifest.
For example, the “Identity” section in your app’s AppxManifest.xml file should look something like this:
Change config and sign a click once deployment for test in an Azure build application:
I have the following release pipeline in Azure:
Continuous Integration pipeline that will build for every check in on master branch. This build will trigger a Continuous Delivery pipeline that will deploy the release for the click once application to test. The same installation wil be deployed to production after approval in test on this pipeline.
I want the same build that I tested to go to production. The click once is compiled for release. The app.config I have in source is the production version. So once installed the app will default be configured to connect to production datasources.
For test however I want the app.config to be replaced with a app.config.debug version. This is a app.config that contains the test and debug datasources.
After putting this config file in the deployment the signature for the click once is no longer valid. I resigned the click once manifest for the changed config with a tool from Microsoft .NET SDK.
I used the mage.exe (from .NET framework Tools). Path for my installation: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\mage.exe.
I added 3 files to the source directory:
mage.exe app.config.debug ACertificateFile.pfx. This pfx is the same I used in the project to sign the manifest file.
After adding these 3 files to the source folder I added a copy step in the build pipeline to add these files to the app.publish folder:
And a script to update the app.config and resign the manifest has to be executed before copying the files to the local deployment server.
@echo on for /f “delims=” %%F in (‘dir “$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)\Application Files” /B /AD’) do set deployDir=%%F set “to=$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)\Application Files\%DeployDir%” set “from=$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)”
step 1 Build solution with parameter /target:publish
YAML: #Your build pipeline references an undefined variable named ‘Parameters.solution’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references the ‘BuildPlatform’
variable, which you’ve selected to be settable at queue time. Create or edit
the build pipeline for this YAML file, define the variable on the Variables
tab, and then select the option to make it settable at queue time. See
https://go.microsoft.com/fwlink/?linkid=865971
#Your build pipeline references the ‘BuildConfiguration’
variable, which you’ve selected to be settable at queue time. Create or edit
the build pipeline for this YAML file, define the variable on the Variables
tab, and then select the option to make it settable at queue time. See
https://go.microsoft.com/fwlink/?linkid=865971
Yesterday I wanted to build a NuGet package with a dll that references a project in the same solution. The referenced project however was not added to the installation package when I packed a new Nuget package.
I searched the internet and found some remarks about adding a parameter includereferencedprojects.
Then I came to my pack command in Azure and saw that the parameter was not in the Nuget pack task.
The YAML i had:
At first I didn’t know how to add the includereferencedprojects parameter. I then changed the “automatic package versioning” in “pack options”. I set it to “Off” and an extra checkbox was presented:
I checked the box:
And set the versioning back to the previous value.
Now my YAML included the includereferencedprojects parameter.
After I started a new build with this pipeline, the referenced project dll’s were added to my package.
First make a selection of duplicate values using count: SELECT col1, COUNT(col1) AS CountOf FROM test GROUP BY col1 HAVING COUNT(col1)>1
Then join this selection with the table on table keys:
select [key],a.col1 from test a inner join (SELECT col1, COUNT(col1) AS CountOf FROM test GROUP BY col1 HAVING COUNT(col1)>1) b on a.col1 = b.col1
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.