473,382 Members | 1,407 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,382 software developers and data experts.

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 1641
> 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**************@TK2MSFTNGP12.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****************@TK2MSFTNGP12.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
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',...
4
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
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...
0
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:...
2
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...
2
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...
4
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...
3
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...
2
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...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.