473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Current directoy of the Web Service

Hello,

How can I get the current directory of Web Service?
Usually my Web services are under Inetpub directory.

I would like to write trace file into that place.
If I try to trace e.g. C:\Temp directory I usually havenät got
permissions to write the trace file.

So, do I have special Permissions for wrting trace file from Web Service or
can I query Web Service's default Assemply location and write there?

Cheers
Jun 12 '07 #1
2 1341
On Jun 12, 10:19 am, "Alwin D" <d...@mail.nowrote:
Hello,

How can I get the current directory of Web Service?
Usually my Web services are under Inetpub directory.

I would like to write trace file into that place.
If I try to trace e.g. C:\Temp directory I usually havenät got
permissions to write the trace file.

So, do I have special Permissions for wrting trace file from Web Service or
can I query Web Service's default Assemply location and write there?

Cheers

I do something similar, I created a global application file
Global.asax/.cs and took over the Application_Start(..) event and
inspect the this.Context.Request.PhysicalApplicationPath to
initialize my tracer


Jun 12 '07 #2
Hello and thanks,
It work,
Cheers

<ro*************@yahoo.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
On Jun 12, 10:19 am, "Alwin D" <d...@mail.nowrote:
Hello,

How can I get the current directory of Web Service?
Usually my Web services are under Inetpub directory.

I would like to write trace file into that place.
If I try to trace e.g. C:\Temp directory I usually havenät got
permissions to write the trace file.

So, do I have special Permissions for wrting trace file from Web Service
or
can I query Web Service's default Assemply location and write there?

Cheers

I do something similar, I created a global application file
Global.asax/.cs and took over the Application_Start(..) event and
inspect the this.Context.Request.PhysicalApplicationPath to
initialize my tracer

Jun 12 '07 #3

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

Similar topics

1
by: Zeya | last post by:
I have this code, which uses WMI to operate on Windows service from C# code. When Service.InvokeMethod is called, the method throws an exception: System.Management Operation is not valid due...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
0
by: Matt | last post by:
Hello all, We are using Forms Authentication in an application to protect both sensitive ASP.Net pages and Web services. This question is relating to Web services and forms authentication,...
0
by: Sharon McCarty | last post by:
Hi Everyone, I created a managed c++ web service and I would like to get the current user that is accessing the web service. This can be done in asp.net using c# by going:...
2
by: | last post by:
Today I learned that creating cookies inside of a custom class in ASP.NET 2.0 requires that you prefix it with HttpContext.Current..., e.g. : ...
4
by: Greg Allen | last post by:
I have a web service and am trying to use WSE 2.0 to pass attachments. I have enabled both the checkboxes in the WSE properties page in VS. The problem occurs when I try to get the...
2
by: TheBurgerMan | last post by:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I started getting the message below last week. I googled the error and not much was returned, but I did find this;...
5
by: Philipp | last post by:
I need to rename a directory. How can I do that in ASP.NET?
3
by: namewitheldbyrequest | last post by:
"The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is already present in the current scope" I created a Web Service: I imported System.Data.SqlClient so I could access SQL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...

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.