Re: Database logging with IIS 7.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Thomas,

Here is an article with some additional steps I did to get to ODBC Logging
on IIS 7.5.

http://weblogs.asp.net/steveschofield/archive/2009/11/26/odbc-logging-iis-7-5-sql-server-2008.aspx

Hope this helps,

Steve Schofield
Microsoft MVP - IIS
"Thomas J" <newsgroups101@xxxxxxxxx> wrote in message
news:085c446b-db0a-4981-aa06-1559ada73b17@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi

I am trying to setup database logging with IIS 7. I am following these
instructions:
http://weblogs.asp.net/steveschofield/archive/2007/12/20/iis7-post-57-how-to-setup-odbc-logging-in-iis-7-0.aspx

This is not working and I am receiving the following error in the
System event log:
"The World Wide Web Publishing Service (WWW Service) did not configure
logging for site 1. The data field contains the error number."

This is the same problem that has been experienced here:
http://forums.iis.net/t/1154908.aspx

This is a x64 W2K8 environment. SQL Server is 2008

I have tried the following:
- Logging to a remote SQL Server and logging to a local SQL Express
2008 instance. Same problem.
- Turning on ODBC tracing. No log file was created.
- Turning on SQL Profiler. Nothing was captured.
- Tried all the three SQL Server ODBC clients (SQL Server, Native
Clients, Native Clients 10). No difference
- SQL Server user is a Sys Admin
- Tried using Named Pipes and tried TCP/IP. No difference. (BTW Named
Pipes is enabled on the SQL Servers)
- Cross referenced my configuration with this article:
http://blogs.iis.net/rakkimk/archive/2008/04/16/how-to-configure-iis-7-0-for-odbc-logging.aspx
and checked my appcmd parameters a hundred times. Still no difference.
- UAC is turned off.

I believe this is a problem in IIS. This Event Viewer error message
always appears during the Start phase of an IISRESET, even before a
web resource is even access.

From the applicationHost.config here is the odbcLogging section
<odbcLogging dataSource="InternetDB" tableName="inetlog"
userName="IISLogsUser"
password="[enc:AesProvider:J5roPFr1OyiT4EmFUm1AjeoY3KJF0uGyLaKp9DSBKZE=:enc]"
/


and here is the Site section:
<site name="Microsoft Dynamics CRM" id="1"
serverAutoStart="true">
<application path="/" applicationPool="CRMAppPool">
<virtualDirectory path="/" physicalPath="C:\inetpub
\wwwroot" />
</application>
<application path="/ISV/Praxa/Praxa.Web"
applicationPool="CRMAppPool">
<virtualDirectory path="/" physicalPath="C:\inetpub
\wwwroot\ISV\Praxa\Praxa.Web" />
</application>
<application path="/Help"
applicationPool="CRMAppPool">
<virtualDirectory path="/" physicalPath="C:\inetpub
\wwwroot\Help" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":
80:" />
</bindings>
<logFile customLogPluginClsid="{FF16065B-DE82-11CF-
BC0A-00AA006111E0}" logFormat="Custom" enabled="true" />
</site>

I have spent a full day on this, and my client cannot justify anymore
time. I really hope someone can point me in the right direction.

Regards,
TJ


.



Relevant Pages

  • Re: Database logging with IIS 7.0
    ... I'm happy to report I was able to get ODBC logging to work but made the ... same error continues to be generated in the system log when I restart IIS ... run cliconfg.exe and enable TCP/IP and Named Pipes if not already. ...
    (microsoft.public.inetserver.iis)
  • Re: CE & merge replication
    ... Beware that after changing the logging level on the registry, ... >> running IIS. ... >>> I am using merge replication between SQL Server 2K and CE. ...
    (microsoft.public.sqlserver.ce)
  • Database logging with IIS 7.0
    ... I am trying to setup database logging with IIS 7. ... Logging to a remote SQL Server and logging to a local SQL Express ... Tried all the three SQL Server ODBC clients (SQL Server, ...
    (microsoft.public.inetserver.iis)
  • RE: SBS 2003
    ... The following article describes how to configure IIS logging to an ODBC ... | Elmo Scheffer ...
    (microsoft.public.windows.server.setup)
  • Exchange log
    ... I'm logging to SQL server with ODBC. ... how I can group records per mail? ...
    (microsoft.public.exchange2000.general)