Re: IIS raises an exception when I use https to connect WCF servic



Microsoft PSS is profession support service. Basically, PSS answer any
and all questions about supported Microsoft software, for a nominal
price. Bug reports are free, though.

ASP.Net code should not be running in dllhost.exe -- that is the
problem. How your system got into that state, I don't know. That is
why you contact PSS.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


On Jul 30, 1:04 am, Laurent111 <Laurent...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Thanks for answer, I am sure that there is a problem beacause the
initialization of the (null) array is performed in function
GetBasicServerVariables in derived class named
ISAPIWorkerRequestInProcForIIS6.  I think it is a bug or unsupported feature
for IIS 5.1.

I do not know what is microsoft PSS and in few days I will have a new laptop
with Vista installed .
Laurent



"David Wang" wrote:
On Jul 28, 1:39 am, Laurent111 <Laurent...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
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 urlhttps://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

It seems odd that the problem is coming from dllhost.exe because
Managed code is NOT supposed to be running in dllhost.exe. The code
flow should move from inetinfo.exe into aspnet_wp.exe. There is no
code to marshall that data into dllhost.exe, so your NullRefException
would be expected.

You should report this issue to Microsoft PSS and open a support case.
If all the data from your investigation is valid, this looks like a
bug in Microsoft software and thus the support case should not cost
you anything.

However, I feel that you need to do some more debugging to make sure
your observation makes sense.

//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: asp:Wizard inside of a asp:FormView breacks two-way databinding (Round 4)
    ... the bug is not totally fixed for all naming container control. ... you open a new case to the Microsoft PSS. ... contact Microsoft Product Support directly to discuss additional support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Indexed View
    ... either case it does sound like a bug and even if you get a work around you ... I'm going to Microsoft PSS another go. ... >>Andrew J. Kelly SQL MVP ...
    (microsoft.public.sqlserver.server)
  • Re: IIS6.0 + SSL Breaks down!
    ... If you think you are seeing a product bug, contact Microsoft PSS for ... they can diagnose it and give you the QFE. ... However, due to how support works, you have to call PSS to have a chance to ...
    (microsoft.public.inetserver.iis)
  • RE: Events etc randomly deleted from "Web Form Designer generated
    ... I suggest you contact our Product Support ... Every MSDN subscriber has two free support ... You could use one of them to contact Microsoft PSS. ... have two free support incidents. ...
    (microsoft.public.vsnet.ide)
  • RE: Event Handler Wizard
    ... >it will add the message map in CMainFrame project A, ... submit a support incident in Microsoft PSS. ... you have two free support incidents. ... If the problem is confirmed by Microsoft PSS as a product issue, ...
    (microsoft.public.vsnet.ide)