The first time you run the Scanning Solution in Visual Studio you will need to configure your development environment to support it.
Install ComponentOne for WPF if not already installed
This can be found at T:\Dev Tools\ComponentOne and is labelled as the latest AppDev version. There will be a WPF installer in there and should get you to a point where the solution compiles.
Install the WPF Toolkit
Get it from CodePlex.
Trust Secure Websites in IIS Express
We need to trust secure websites through IIS Express on the address localhost. This is well described on the following forum. Once you have done this for one secure website on your PC it is done for all - this isn't a Scanning solution specific requirement.
Enable Windows Authentication for Scan Factory Service
The Scanning Solution requires Windows Authentication to work with the ScanFactoryService which is a Distributed Service in the Solution. To enable this on your PC we need to edit the applicationhost.config of IIS Express. Follow the steps below, replacing my username with yours.
- Open: C:\Users\john.UK\Documents\IISExpress\config\applicationhost.config
- Edit authentication SectionGroup so it allows the web.config I've checked in to override the authentication types for the service so it looks like this:
<sectionGroup name="authentication">
<section name="anonymousAuthentication" overrideModeDefault="Allow" />
<section name="basicAuthentication" overrideModeDefault="Allow" />
<section name="clientCertificateMappingAuthentication" overrideModeDefault="Deny" />
<section name="digestAuthentication" overrideModeDefault="Deny" />
<section name="iisClientCertificateMappingAuthentication" overrideModeDefault="Deny" />
<section name="windowsAuthentication" overrideModeDefault="Allow" />
</sectionGroup>
Visual Studio 2015
If you are using Visual Studio 2015 each solution now has it's own applicationhost.config file so you will need to perform the changes above to this config file too. You will find the config file in $(SolutionDir)\.vs\config\applicationhost.config
Comments
0 comments
Please sign in to leave a comment.