Connecting Tech Pros Worldwide Help | Site Map

Writing to a server log

Peter Bradley
Guest
 
Posts: n/a
#1: Oct 20 '08
Hi,

I have a Web Service that has been running on a server for a couple of
years. I now have to redeploy it to another server. Everything is fine
except that the Web Service cannot write to its log on the new server.

As part of the redeployment, I created the event log on the server for
the Web service to write to, so I don't understand what the problem can
be. I also checked the permissions on the Web service and couldn't find
anything materially different between the two servers. I even recreated
the log, cutting and pasting the name to make sure that it wasn't a case
of mis-spelling the log name.

Unfortunately, one of the applications that calls the Web service is a
BizTalk application that will fail if the Web Service cannot write to
the log.

Does anyone have any ideas? The full error message is:

---------------------------------------------------------------

Event Type: Error
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5754
Date: 20/10/2008
Time: 11:26:27
User: N/A
Computer: BIZTALKLIVEAPP
Description:
A message sent to adapter "SOAP" on send port
"ItregIntegrationOrchestration_1.0.0.0_ItregIntegr ationOrchestration.ItregOrchestration_ItregWebServ ice_c4e07ad8f39cd914"
with URI "http://biztalkliveapp/ItregWebService/ItregWebService.asmx" is
suspended.
Error details: SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---System.InvalidOperationException: Cannot open log
for source 'ITRegIntegrationWSLog'. You may not have write access. --->
System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.Diagnostics.EventLog.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLog.InternalWriteEvent(UIn t32 eventID,
UInt16 category, EventLogEntryType type, String[] strings, Byte[]
rawData, String currentMachineName)
at System.Diagnostics.EventLog.WriteEntry(String message,
EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message)
at Uwic.ItregWebServiceNamespace.ItregWebService.Stud entAdd(String
PersonalId, String Forename1, String Surname, String EmailAddress,
String ProgTitle, String CourseEndDate, String SchoolId, String
CampusId, String Password, String Progocc)
--- End of inner exception stack trace ---

MessageId: {AA283FEE-F81B-461C-AF58-5A8AA6BAFAEF}
InstanceID: {D2A5EF1F-FC6F-4F50-96D2-07C3A456737D}

----------------------------------------------------------------------------


Cheers


Peter
Peter Bradley
Guest
 
Posts: n/a
#2: Oct 20 '08

re: Writing to a server log


Peter Bradley wrote:
Quote:
Hi,
>
I have a Web Service that has been running on a server for a couple of
years. I now have to redeploy it to another server. Everything is fine
except that the Web Service cannot write to its log on the new server.
>
As part of the redeployment, I created the event log on the server for
the Web service to write to, so I don't understand what the problem can
be. I also checked the permissions on the Web service and couldn't find
anything materially different between the two servers. I even recreated
the log, cutting and pasting the name to make sure that it wasn't a case
of mis-spelling the log name.
>
BizTalk requires Sharepoint as a prerequisite. Sharepoint puts a
Web.config file in wwwroot. This file contains the following line:

<trust level="WSS_Minimal" originUrl=""
processRequestInApplicationTrust="false"/>

For the moment, I've renamed the Web.config file so that it is not read
by the Web service. Everything now runs fine.

Took me all day to find that!


Peter
John Saunders
Guest
 
Posts: n/a
#3: Oct 21 '08

re: Writing to a server log


"Peter Bradley" <pbradley@uwic.ac.ukwrote in message
news:ek$ykuqMJHA.276@TK2MSFTNGP02.phx.gbl...
Quote:
Hi,
>
I have a Web Service that has been running on a server for a couple of
years. I now have to redeploy it to another server. Everything is fine
except that the Web Service cannot write to its log on the new server.
>
As part of the redeployment, I created the event log on the server for the
Web service to write to, so I don't understand what the problem can be. I
also checked the permissions on the Web service and couldn't find anything
materially different between the two servers. I even recreated the log,
cutting and pasting the name to make sure that it wasn't a case of
mis-spelling the log name.
Did you create the event source when you created the event log?

--
John Saunders | MVP - Connected System Developer

Peter Bradley
Guest
 
Posts: n/a
#4: Oct 21 '08

re: Writing to a server log


Ysgrifennodd John Saunders:
Quote:
>
Did you create the event source when you created the event log?
>
Yes. I wrote a little utility a couple of years ago to create (and
delete) logs. We use it regularly - and it won't create the log unless
you give it the event source.

Anyway, everything worked when I altered the web.config filename.

Cheers


Peter
Closed Thread