Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Settings Config File Path
Message
From
13/01/2011 17:13:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
13/01/2011 09:37:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01496034
Message ID:
01496086
Views:
38
Frank,

Is this ASP.Net you are working on still? Do you need to use Server.MapPath for that? I was under the impression the path was still relevant to the application path. Try using the same syntax you are using for controls or other path references. I would also suggest putting a reference to this settings file somewhere in the app as a property so it only has to be accessed and read once.
Tim

>Hi,
>
>I have subclassed the mmAppConfiguration and have set it to use this config file:
>
>
this.ReadKeysFromConfig("C:\\Development\\Mere Mortals .NET Framework 2008\\SamaanSystems\\IAS.Web\\Admin\\SIASSettings.config");
>
>Of course this won't exist on the client's computer.
>
>I have tried using this:
>
>
//this.ReadKeysFromConfig(Server.MapPath(@"~/Admin/SIASSettings.config"));
>
>but that gives me an error on Server saying "The name 'Server' does not exist in the current context". If I try to resolve the reference the only option I have available is Microsoft.SqlServer.Server, which doesn't seem right to me.
>
>What should I use?
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform