473,320 Members | 2,004 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,320 software developers and data experts.

How do I: Configure WebService Permissions

Hi,

How can I set permissions, so my webservice will run, without entering my
name and password in the Web.Config file?

I have created a WebService, and then added a Web reference to a Windows
Form program.
The webservice is an Administrators Utility, and needs to delete files on
various drives/directories, and do file maintenance.
This will require big access permissions.
I would like to use the credentials from the logged on user, (Windows
Account).

I can get my webservice to work if I do the following:

In IIS, Directory Security tab:
Anonymouse access = checked
Allow IIS to control password = checked
Integrated Windows authentication = checked
All others unChecked.

Web.Config file:
<authentication mode="Windows" />
<identity impersonate="true" userName ="myDomain\MyName" password =
"MyPassword"/>

I am using .Net Framework 1.1
C#
Windows XP sp1

Thanks
Russell Mangel
Las Vegas, NV




Nov 21 '05 #1
2 8893
If I uncheck anonymous access, then the webservice will fail with a
permissions error.

Can you answer my original question?
How can I set permissions, so my webservice will run, without entering my
name and password in the Web.Config file?

There are two problems with my working webservice:
1. I don't want a username/password in web.config file.
2. I don't want anonymous access enabled.

Thanks
Russell Mangel

"Rama.NET" <Ra*****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
Hi Russell
Normally I would uncheck anonymous access for Exclusive Windows only
authentication.
HTH

Nov 21 '05 #2
Don't forget WSE 2.0, which implements the WS-Security specification. You
may also find this article useful:

http://msdn.microsoft.com/library/de...lebasedsec.asp

Jeffrey Hasan, MCSD
President, Bluestone Partners, Inc.
-----------------------------------------------
Author of: Expert SOA in C# Using WSE 2.0 (APress, 2004)
http://www.bluestonepartners.com/soa.aspx

"Rama.NET" <Ra*****@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
Try this
1. Disable anonymous access.
2. Disable integrated Windows authentication.
3. Enable basic authentication.

And in the config
<system.web>
<authentication mode="Windows"/>
</system.web>

HTH

"Russell Mangel" wrote:
If I uncheck anonymous access, then the webservice will fail with a
permissions error.

Can you answer my original question?
How can I set permissions, so my webservice will run, without entering my name and password in the Web.Config file?

There are two problems with my working webservice:
1. I don't want a username/password in web.config file.
2. I don't want anonymous access enabled.

Thanks
Russell Mangel

"Rama.NET" <Ra*****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
Hi Russell
Normally I would uncheck anonymous access for Exclusive Windows only
authentication.
HTH


Nov 21 '05 #3

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

Similar topics

2
by: Raul Cortes | last post by:
I have been developing winforms for a while. I had an app, that downlods exchange rates from an html page from a website, creating a dataset, and then writing the xml to the local drive....
2
by: Lee Silver | last post by:
Environment: W2K SP3 and .NET 1.1 I'm trying to set my machine up to do some Web-form development but am unable to successfully configure the IIS Extensions. When I click Finish at the end of the...
0
by: DotNetter | last post by:
I have two computers. Both computers have Windows 2003 installed as well as Visual Studio.Net 2003 installed. Computer A has active directory set and also has .Net and the webservice called...
0
by: Samuel M. Smith | last post by:
I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge when I run ./configure it fails with ../configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for...
5
by: Daniel Wilson | last post by:
I have a client who is trying to deploy a webservice I wrote. The web service reads a file on a file server and delivers information about it. The file needs to be inaccessible to the user of the...
3
by: xisco | last post by:
hi I can access and play with my webservice without any problems in my localhost. I am using .net 2.0 but I can not access it when I placed it in my win2003 server. also have ..net 2.0 there. ...
4
by: tommaso.gastaldi | last post by:
If one does not configure a virtual dir as an IIS application, he/she receives the common error: ---------------------------------------- Server Error in '/' Application. .... This error can be...
4
by: Boni | last post by:
I want consuming a webserivce trough a proxy. I use this code. myService s = new myService (); System.Net.WebProxy proxyObject = new System.Net.WebProxy("http://proxyhost:8080"); s.Proxy =...
1
by: =?Utf-8?B?SmVzcyBMdW5kYWdlciBBbmRlcnNlbg==?= | last post by:
Hi, I have a problem accessing a web service. The problem consists in that after a couple of hours (approx. 3 hours) the web service is non-responsive. I have then tried accessing it through...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.