473,788 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing to a server log

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
"ItregIntegrati onOrchestration _1.0.0.0_ItregI ntegrationOrche stration.ItregO rchestration_It regWebService_c 4e07ad8f39cd914 "
with URI "http://biztalkliveapp/ItregWebService/ItregWebService .asmx" is
suspended.
Error details: SoapException:
System.Web.Serv ices.Protocols. SoapException: Server was unable to
process request. ---System.InvalidO perationExcepti on: Cannot open log
for source 'ITRegIntegrati onWSLog'. You may not have write access. --->
System.Componen tModel.Win32Exc eption: Access is denied
--- End of inner exception stack trace ---
at System.Diagnost ics.EventLog.Op enForWrite(Stri ng currentMachineN ame)
at System.Diagnost ics.EventLog.In ternalWriteEven t(UInt32 eventID,
UInt16 category, EventLogEntryTy pe type, String[] strings, Byte[]
rawData, String currentMachineN ame)
at System.Diagnost ics.EventLog.Wr iteEntry(String message,
EventLogEntryTy pe type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnost ics.EventLog.Wr iteEntry(String message)
at Uwic.ItregWebSe rviceNamespace. ItregWebService .StudentAdd(Str ing
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
Oct 20 '08 #1
3 2072
Peter Bradley wrote:
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_Mini mal" originUrl=""
processRequestI nApplicationTru st="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
Oct 20 '08 #2
"Peter Bradley" <pb******@uwic. ac.ukwrote in message
news:ek******** *****@TK2MSFTNG P02.phx.gbl...
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

Oct 21 '08 #3
Ysgrifennodd John Saunders:
>
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
Oct 21 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6664
by: SomeDude | last post by:
Hi, I have a question on file writing. I am not very experienced in Java programming. My hobby right now is to write an applet where 2 persons could play Go together (it is a board game). The offline interface is done but I was wondering how to send information between the two players. Since I am not very experienced in Java and I am just a hobby programmer, I found that programming a port listening interface was too difficult. My idea was...
0
2630
by: MB | last post by:
I am writing an FTP Client using the NIO packages because I want to use the non-blocking functionality. I have done this successfully except for the fact that after I "put" an image file to the FTP server (Microsoft FTP server) I never get a valid response (226 Transer Complete) from the FTP server when the file has finished writing. I am using the FileChannel.TransferTo method with a non-blocking SocketChannel that is connected to the...
48
8510
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential problem. The program may crash unexpectedly while writing to the file. If so, my program should detect this during startup, and then (during startup) probably delete the data added to the file and redo the writing operation.
20
3558
by: Brian Burgess | last post by:
Hi all, Anyone know if this is possible? If so, on which page would the cookie be? .. On the page calling a function defined in the include file? thanks in advance.. -BB
7
2998
by: Brian Burgess | last post by:
Hi all, Anyone see anything wrong with the following: *************************************************************** <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit Dim nAcctNbr Dim nMsgStart
13
3111
by: Jeff Pritchard | last post by:
I have an MDB that contains a single table. Checkweigher data is being continuously written to this MDB from a dedicated workstation over a network into the MDB on the server at the rate of about 120 records a minute. This may increase in the future to about 200. The records are not large. We have other workstations that run sessions on Terminal Server querying this MDB, doing things like plotting the last hours data on a graph or...
7
1526
by: John Pote | last post by:
Hello, help/advice appreciated. Background: I am writing some web scripts in python to receive small amounts of data from remote sensors and store the data in a file. 50 to 100 bytes every 5 or 10 minutes. A new file for each day is anticipated. Of considerable importance is the long term availability of this data and it's gathering and storage without gaps. As the remote sensors have little on board storage it is important that a
6
2534
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario, I'm having trouble writing to the server's event log. Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group on
1
5185
by: Jean-Paul Calderone | last post by:
On Fri, 21 Nov 2008 00:20:49 -0200, Gabriel Genellina <gagsl-py2@yahoo.com.arwrote: If you want to try this program out on POSIX, make sure you change the time.clock() calls to time.time() calls instead, otherwise the results aren't very meaningful. I gave this a try on an AMD64 3200+ running a 32 bit Linux installation. Here's the results I got on the server: Packet count 91426
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.