Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS properties files

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Expiration date changes every few days  
Author Message
Albert Greinoecker

External


Since: Oct 10, 2007
Posts: 4



(Msg. 1) Posted: Wed Oct 10, 2007 11:00 am
Post subject: IIS properties files
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi NG,

maybe a too simple question for this newsgroup, but I could'nt manage to
solve this problem: how can I set up the directory lookup path where IIS
looks for custom configuration files or where should I place such files so
IIS can find them just the way java does with .properties-files
on the classpath?

thx in advance,
Albert

 >> Stay informed about: IIS properties files 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 2) Posted: Wed Oct 10, 2007 11:56 pm
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry - but what sort of "custom" configuration file are you looking for?
IIS itself can not use custom configuration files. Are you talking about a
configuration file for your application?

Cheers
Ken

"Albert Greinoecker" <albert.greinoecker.RemoveThis@uibk.ac.at> wrote in message
news:470ccffa$1@sia.uibk.ac.at...
> Hi NG,
>
> maybe a too simple question for this newsgroup, but I could'nt manage to
> solve this problem: how can I set up the directory lookup path where IIS
> looks for custom configuration files or where should I place such files so
> IIS can find them just the way java does with .properties-files
> on the classpath?
>
> thx in advance,
> Albert

 >> Stay informed about: IIS properties files 
Back to top
Login to vote
Albert Greinoecker

External


Since: Oct 10, 2007
Posts: 4



(Msg. 3) Posted: Thu Oct 11, 2007 11:39 pm
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

i just meant a simple text file holding configuration information like
database-url...or to generalize my question: how can I instruct the IIS to
look into a certain directory to find any kind of file needed within the
web application?

cheers,
Albert
 >> Stay informed about: IIS properties files 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 4) Posted: Fri Oct 12, 2007 1:06 am
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are not making much sense.

Why would IIS need to look at another configuration file? IIS can not
connect to a database (for example).

Something like ASP.NET can connect to a database (using .NET libraries), and
ASP.NET uses web.config configuration files (which is where you would your
connection string).

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken


"Albert Greinoecker" <albert.greinoecker.DeleteThis@uibk.ac.at> wrote in message
news:470e9801$1@sia.uibk.ac.at...
>i just meant a simple text file holding configuration information like
> database-url...or to generalize my question: how can I instruct the IIS to
> look into a certain directory to find any kind of file needed within the
> web application?
>
> cheers,
> Albert
 >> Stay informed about: IIS properties files 
Back to top
Login to vote
Albert Greinoecker

External


Since: Oct 10, 2007
Posts: 4



(Msg. 5) Posted: Fri Oct 12, 2007 8:56 am
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

sorry for imprecise formulation, of course I meant ASP.NET and I just want
to avoid web.config files.

cheers,
Albert
 >> Stay informed about: IIS properties files 
Back to top
Login to vote
David Wang

External


Since: Nov 01, 2007
Posts: 309



(Msg. 6) Posted: Thu Oct 18, 2007 5:19 am
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 18, 3:12 am, Albert Greinoecker <albert.greinoec....RemoveThis@uibk.ac.at>
wrote:
> ok, so just for clarification: there is no way to make a ASP.NET
> application look after a file located relatively to the application's
> current directory?
>
> The problem is: in my ASP.NET application,
> System.Envirmonment.CurrentDirectory points to c:\windows\System32, which
> does not make any sense...can this setting be modified?
>
> thx,
> Albert


You may want to ask questions in an ASP.Net dedicated forum for even
better responses, like at www.asp.net

I don't see why you want something like Java's .properties file
when .Net has similar and/or better solutions.

For example, ASP.Net web.config's AppSettings node allows generic name/
value pair storage/retrieval with a single line of .Net code. Plus,
web.config natively supports encrypted (including custom encryption
protocol) property values, handy for storing database query/username/
passwords.

Other platforms like Java, PHP, and ASP makes one build all the basic
building blocks like storage, session state, connectivity, etc for a
Web Application, so one gets all anxious at writing code to do such
things. Be very happy that ASP.Net 2.0 is far better. It verifiably
allows you to drag-and-drop your way to developing more functional web
applications with up to 80% less code than every other platform
including ASP.Net 1.1.

Now, why would "System.Environment.CurrentDirectory" change to map to
the current directory of an application? That would be something like
Application.Environment.CurrentDirectory , which doesn't exist for a
good reason. By definition, a process has a single "current
directory", which is what System.Environment.CurrentDirectory returns,
but multiple web applications can share a single process for
execution, so there is no way to have a single value for "current
directory" work for all web applications like the way you imagine.

How you find the "current directory" of an application is to use
Server.MapPath(), which allows you to determine the absolute
filesystem pathname that maps to a given URL virtual name. You can
also use Request.ServerVariable to retrieve APPL_PHYSICAL_PATH (which
is legacy, IIS-related), or you can retrieve the SCRIPT_NAME or URL
server variables, diff between the two to determine the URL root, and
Server.MapPath that value. You have complete flexibility to do
"current application directory" and everything in between.

Personally, I think ASP.Net 2.0 makes it incredibly easy to write
incredibly sophisticated web applications with very little effort.
Thus, if you are thinking of something too complex or if you had to
spend too long thinking about a solution, there's probably a better
solution/implementation that already exists within ASP.Net or
someone's shared component.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
 >> Stay informed about: IIS properties files 
Back to top
Login to vote
Albert Greinoecker

External


Since: Oct 10, 2007
Posts: 4



(Msg. 7) Posted: Thu Oct 18, 2007 10:05 am
Post subject: Re: IIS properties files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok, so just for clarification: there is no way to make a ASP.NET
application look after a file located relatively to the application's
current directory?

The problem is: in my ASP.NET application,
System.Envirmonment.CurrentDirectory points to c:\windows\System32, which
does not make any sense...can this setting be modified?

thx,
Albert
 >> Stay informed about: IIS properties files 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
File properties not showing on list of files when director.. - Hello. I was wondering how I can get the webserver to show the file information on the files listed in a browser, when examining a webfolder that has directory browsing enabled. I can only see the filenames without the extension and nothing else. What a...

COM+ properties - Hi.. I have a problem with DLLHOSt consuming lot of memory due to some kind of memory leak in the application. Since the application is a third party application I cannot fix the problem. I was told that by modifying the properties of the COM+ I may....

Why don't appear the properties window? - Hi i repost the question. i use w2k pro sp3 with iis5 and from some days ago i can't see the properties window of the web site preferred, but i see the window of ftp server and smtp server. i obtain only a popup window that say: mmc.exe have caused an..

IIS properties doesn't show - I installed Windows XP with SP 1a, then Autopatcher (April Update) - it's a FREE pack of patches to XP and other useful programs. Since then IIS properties window doesn't show! When I right click "Default Web Site" and choose "properties...

Vbscript IIS Properties - Hello I am a Vb,(5\6\net\Vbwscript), person, but new to IIS. If I go into the Internet Services Manager MMC, and I right click on one of the virtual directories, and then select properties, I can see, and modify the properties. How to access, and..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]