473,883 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing the server's registry in an ASP.Net Web Service...

[ the article ]

I've found this article on how to get ASP.Net to read/write from the
server's registry, but it got heavily critted as being something that you
should not do...

http://www.wwwcoder.com/main/parenti...8/default.aspx
[ why is that? ]

what's the problem with a server side application reading data from a server
box, and using that in it's functions?
the second major question then is, what are the alternatives?
[ a bit of background ]

I've got a messaging framework, and have exposed an incoming interface into
this via HTTP through Web Services. But I don't know how this web service
can directly invoke my application, so i'm going through the input file
layer I've created, that polls a folder for valid files...
So the configurable value i need is the path where this putting and getting
of files is going to take place, the obvious thing to do is stick it in the
server registry so that when the web service is sent data, it sticks the
relevant files into the folder, who's location it finds in the registry.

Thanks for your time.
Daniel Bass.
Nov 18 '05 #1
2 1679
> I've found this article on how to get ASP.Net to read/write from the
server's registry, but it got heavily critted as being something that you
should not do...
By whom? The article certainly doesn't say that wiritng to the Registry is
not something you should do. It merely warns you about the possible issues
that you may encounter.
[ why is that? ]
Again, who said that?
what's the problem with a server side application reading data from a server box, and using that in it's functions? The article does a good job of explaining what issues you will have to deal
with.
the second major question then is, what are the alternatives?
I've got a messaging framework, and have exposed an incoming interface into this via HTTP through Web Services. But I don't know how this web service
can directly invoke my application, so i'm going through the input file
layer I've created, that polls a folder for valid files...
So the configurable value i need is the path where this putting and getting of files is going to take place, the obvious thing to do is stick it in the server registry so that when the web service is sent data, it sticks the
relevant files into the folder, who's location it finds in the registry.
Putting data into the System Registry is hardly "the obvious thing to so" -
actually, a database is the usual place to store data persistently. You can
also write the information to a file. While using the registry for such a
purpose isn't going to harm anything necessarily, it will add to the size of
the registry, which is not necessarily a good thing.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:#U******** ******@TK2MSFTN GP12.phx.gbl... [ the article ]

I've found this article on how to get ASP.Net to read/write from the
server's registry, but it got heavily critted as being something that you
should not do...

http://www.wwwcoder.com/main/parenti...8/default.aspx
[ why is that? ]

what's the problem with a server side application reading data from a server box, and using that in it's functions?
the second major question then is, what are the alternatives?
[ a bit of background ]

I've got a messaging framework, and have exposed an incoming interface into this via HTTP through Web Services. But I don't know how this web service
can directly invoke my application, so i'm going through the input file
layer I've created, that polls a folder for valid files...
So the configurable value i need is the path where this putting and getting of files is going to take place, the obvious thing to do is stick it in the server registry so that when the web service is sent data, it sticks the
relevant files into the folder, who's location it finds in the registry.

Thanks for your time.
Daniel Bass.

Nov 18 '05 #2
Well, for me if I need a simple configuration value that my webservice needs
to read, I put it in the web.config file. I like to keep out of the
registry as much as possible.

If you need more details about how to work with the web.config, let me know.

Michael

"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
[ the article ]

I've found this article on how to get ASP.Net to read/write from the
server's registry, but it got heavily critted as being something that you
should not do...

http://www.wwwcoder.com/main/parenti...8/default.aspx
[ why is that? ]

what's the problem with a server side application reading data from a server box, and using that in it's functions?
the second major question then is, what are the alternatives?
[ a bit of background ]

I've got a messaging framework, and have exposed an incoming interface into this via HTTP through Web Services. But I don't know how this web service
can directly invoke my application, so i'm going through the input file
layer I've created, that polls a folder for valid files...
So the configurable value i need is the path where this putting and getting of files is going to take place, the obvious thing to do is stick it in the server registry so that when the web service is sent data, it sticks the
relevant files into the folder, who's location it finds in the registry.

Thanks for your time.
Daniel Bass.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
Nov 18 '05 #3

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

Similar topics

4
1275
by: Jay | last post by:
Here lies my quandry: I have written a service that makes registry changes. The problem I run into is that, if I create the service under any account other than 'User' (i.e. 'LocalSystem', 'LocalService'), access to the registry is denied. If I create the service under the 'User' account, any time the user changes his network password (which is vigorously mandated in my workplace) he must also change it for the service.
4
15107
by: Ashok | last post by:
Hello I need to programmatically change the permissions (ACL) on a specific registry key in a .NET app. Is there a way to do this in .NET? Thanks for the help, Ashok
14
3406
by: John J. Hughes II | last post by:
I have "Computer A" which is running Win2K3 and MS SQL server. And "Computer B" which is running a service that I have created. If I change the service on "Computer B" to run as a user my program is able to connect to the SQL server on "Computer A" correctly. But if I set the service on "Computer B" to run as a local system then I get an error connecting to the SQL on "Computer A" --- "NT AUTHORITY\ANONYMOUS LOGON". I understand why I...
0
800
by: Maciek | last post by:
Hi When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET 2.0) in my application, I have recived this message: ----------------------------------------------------------------------------------------------------------------- Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a...
2
2297
by: Kevin R | last post by:
I'm trying to get asp.net 1.1 running on my home PC. When I try creating a new ASP.NET Web Application in 'Visual Studio .NET 2003' I get the following error: "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services" Thanks for any help in advance. Kevin ===============================
2
2433
by: Mostafa Salama | last post by:
i have a problem in accessing registry from web service i made a web service that call a function to access registry The web service contain the following code Dim RegKey As Microsoft.Win32.RegistryKey RegKey = Microsoft.Win32.Registry.LocalMachine RegKey = RegKey.OpenSubKey(KeyPath, True) but it gives me an error, unauthorized access of registry thanks
4
7309
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always get the same error message: "An error occurred while creating one or more registry entries. Please see C:\WINDOWS\sqlstp.log for details. The problem could be caused by a low registry quota condition" I have tried to clean the registry and i...
3
1930
by: mark.jerrom | last post by:
I'm fairly new to this Web Service game so please feel free to suggest something different if it looks like i'm completely off track! I'm trying to write an application that runs on a Pocket PC that is accessing data stored in a SQL server database on a seperate server (not on the pocket pc). This wil be deployed to lots of customers sites so I can't hard-code the location of the database in the program. I wrote a seperate little app...
2
6984
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
0
9933
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10836
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
10407
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9564
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
7960
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
5791
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5982
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4606
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
3
3230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.