473,749 Members | 2,492 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 1674
> 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
1270
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
15097
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
3395
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
2288
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
2427
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
7303
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
1924
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
6964
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
8996
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...
0
9388
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
9333
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
8256
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
6800
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
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
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.