HerrKater / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Error user field filled only when running the application from Visual Studio #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an application that generates an exception
2. generate the error by running the application in visual studio 2005. the
user field in elmah.axd is filled.
3. generate the error by running the application using virtual directory.
the user field is empty.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by webqates...@gmail.com on 9 Mar 2009 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 9 Mar 2009 at 8:30

GoogleCodeExporter commented 9 years ago
Does the web.config of the application enforce Windows authentication? Like 
this?

<authentication mode="Windows" /> 
<authorization>
   <allow users="*" />
   <deny users="?" />
</authorization>

Does adding the above give you a consistent user field when running the 
application 
from Visual Studio versus under IIS?

Original comment by azizatif on 9 Mar 2009 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 9 Mar 2009 at 9:36

GoogleCodeExporter commented 9 years ago
adding the above didn't help.
but i got the user field filled by changing iis property from anonymous access 
to
integrate windows authentication.

but how do i fill the user field with the logged in username.

Original comment by webqates...@gmail.com on 10 Mar 2009 at 6:35

GoogleCodeExporter commented 9 years ago
Sorry, that was my bad. The <authorization> section should have read:

<authorization>
   <deny users="?" />
   <allow users="*" />
</authorization>

Anyhow, this issue is not a problem with ELMAH. What you are observing is 
simply a
difference of implementation between the ASP.NET Development Server that ships 
with
Visual Studio and IIS. The ASP.NET Development Server seems to, by default, 
associate
the process user with the request. IIS, on the other hand, associates a user 
with the
request only if necessary (due to authorization) and authenticated.

Original comment by azizatif on 12 Mar 2009 at 10:50

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 13 May 2009 at 9:07