Enable Windows Authentication on ASPX page allowing all users without login

Simple config which is obvious when you remember and dont forge  This allows all users access your website but also allows you to check via your code or other custom authentication their right to access it.       <authenticationmode=“Windows“>       </authentication>       <authorization>         <allowusers=“*“ />         <denyusers=“?“ />       </authorization>       <anonymousIdentificationenabled=“false“ /> You will get…

0

Azure: Windows 7 VM, Hyper-V enabled Azure VMs

If you are trying or wondering if Windows Azure supports Windows 7, Windows 8 or other OS via a Hyper-V on a 2008 VM image uplodaed to Azure you will realise you cant do this. The operating system that is installed can be one of the following: Windows Server 2008 R2 Enterprise (English only) Windows…

0

Strong name validation failed. (Exception from HRESULT: 0x8013141A)

If you come across this error: {“Could not load file or assembly ‘TheAssemblyYouHaveReferenced’ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)”:”TheAssemblyYouHaveReferenced’} And you meet the following criteria You are referencing a Delay Signed Dll in your project Your OS is Win7 x64 or Vista x64 You have the messages mentioned…

4

Cannot find the X.509 certificate , load cert WCF

I just had an interesting problem trying to load a cert for my WCF service. The cert was installed perfectly into both the Local machine and current user store. No matter what I could do I couldnt get the WCF service to load the aqppropriate client certificate using its thumprint. It always just couldnt find…

1

SilverLight Get user or Windows Credentials

SilverLight hosted in ASPX with WCF integration to retrieve user Credentials: First Setup IIS  correctly: 1:Create a new AppPool in IIS  and give it an identity with suitable privileges –  Ill call it “NewAppPool” 2: In IIS add a new application “Example” 3. Edit the Basic Settings so your new app uses the “NewAppPool” 4….

3

Silverlight cant communicate with WCF in certain config situations – solution

Sample Error piece: Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() This problem manifests for me in the following situation. Silverlight App hosted in a ASPX site The Silverlight app is a data-consumer and requires data via a WCF service also hosted in the ASPX Page Everything works fantastic when you run it via F5 in…

0

Installutil Windows Service – Not installing – Where is it? ;-) Service missing!

Windows Service – Not installing .Net 4 VS2010  – Where is it? 😉 This is only relevant if your service installs perfect but you can find it – Where is it? It should be identifiable in the services.msc but its not there?? InstallUtil doesn’t complain during install so whats the problem.. ?? Simple & obvious…

0

WCF – Error 500.21 Handler "svc-Integrated" has a bad module "ManagedPipelineHandler" in its module list"

WCF – Error 500.21 Handler “svc-Integrated” has a bad module “ManagedPipelineHandler” in its module list” If you  see this error you havent installed the prerequistes for ASP.NET 4. Try this Open Visual Studio Command Prompt Type the following:  aspnet_regiis.exe -i Run the command Try your service again… Happy Face – it should be working This…

59

IIS 7 Change DefaultAppPool to Network Service for this error ‘System.DirectoryServices.DirectoryServicesCOMException’

You may need to do this when your running you web component WCF service or whatever and you receive unusual errors like ‘System.DirectoryServices.DirectoryServicesCOMException’ when using directory services.   This is due to the fact that by default IIS7 runs as ‘IIS APPPOOL\\DefaultAppPool’  and doesn’t have enough permission. Change to Network service and it should be…

2