IIS raises an exception when I use https to connect WCF service



Hi everyone, I encountered a problem with https.

First, I have created a new wcf project (I have just kept the Service1 code
sample for test) and configure the service to be connected via IIS using
https.
Then, I have created a certificate using makecert and httpcfg (I have just
followed the instruction given in my book) and configure IIS with
aspnet_regiis to grant access to metabase.
When I try to connect to the service using Internet Explorer an exception
page is displayed (my url https://localhost/testsimplewcfservice/service.svc).



The exception is the following text:


--------- THE EXCEPTION

[NullReferenceException: La référence d'objet n'est pas définie à une
instance d'un objet.]
System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String
name) +1579
System.Web.Security.WindowsAuthenticationModule.OnEnter(Object source,
EventArgs eventArgs) +103

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64


Informations sur la version : Version Microsoft .NET Framework
:2.0.50727.1433; Version ASP.NET :2.0.50727.1433

--------- THE EXCEPTION



I have configured the debug symbol server to step-into.
The exception is thrown in dllhost.exe launched by IIS (so my code is not
reached)

After a little debug (I attached the debugger to dllhost.exe) I discovered
the problem.
The arrays that contains server variables (LOGON_USER, HTTPS, ...) are not
initialized. (see copy/paste from debugger below)



{System.Web.Hosting.ISAPIWorkerRequestInProc}
base {System.Web.Hosting.ISAPIWorkerRequest}:
{System.Web.Hosting.ISAPIWorkerRequestInProc}
_additionalServerVars: null
_basicServerVars: null



Is it a bug with IIS or there is something to configure ?
I have no idea on how to resolve so please help me.


My OS is Windows XP (French) with SP3 installed and every Windows Update are
installed.
Inetinfo.exe version is 5.1.2600.5512 (French)


Thanks in advance

Laurent


.



Relevant Pages

  • Printing problem using - System.Diagnostics.ProcessStartInfo startInfo
    ... Using IIS 6.0 - Windows 2003 Server ... I am attempting to print an Adobe PDF document from a web page ... Base Exception Is System.ComponentModel.Win32Exception: Access is ...
    (microsoft.public.dotnet.languages.csharp)
  • An exercise to exploit IIS ISAPI filter
    ... I began curious how they manage to reproduce around the Internet ... The filter is used by IIS on Window ... Service Manager,choose properties, then ISAPI Filter and from here you can ... An Access violation exception happen when IIS filter handling the ...
    (Vuln-Dev)
  • Re: security header is not present in the incoming message
    ... I get this exception every time I run my service thru ordinary IIS ... My client is simple ASP.NET Web Site ... Security requirements are not satisfied because the security header is ...
    (microsoft.public.dotnet.security)
  • Re: ASP.NET auf IIS
    ... Failed to access IIS metabase. ... Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed ... siteID, VirtualPath path) +3500410 ...
    (microsoft.public.de.inetserver.iis)
  • Re: ASP.NET 2.0: System.Web.HttpException: Path OPTIONS is forbidden
    ... association setup in IIS. ... An unhandled exception has occurred. ... Event time: 20.02.2006 22:51:13 ... Thread account name: NT-AUTORITÄT\NETZWERKDIENST ...
    (microsoft.public.dotnet.framework.aspnet)