vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Zippen wie die Profis!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Fortgeschrittene
Re: zur Laufzeit den app.config Pfad erfahren ? 
Autor: ModeratorDaveS (Moderator)
Datum: 19.02.05 10:16

Es gibt einfach eine Namenskonvention, bei einer Exe ist das meine.exe.config. Wenn du eine app.config in deinem (exe) Projekt hast, kopiert VS das als myproject.exe.config ins \bin Verzeichnis. Gehen wir zur Quelle

The name and location of the application configuration file depend on the application's host, which can be one of the following:

Executable–hosted application.
The configuration file for an application hosted by the executable host is in the same directory as the application. The name of the configuration file is the name of the application with a .config extension. For example, an application called myApp.exe can be associated with a configuration file called myApp.exe.config.

ASP.NET-hosted application.
ASP.NET configuration files are called Web.config. Configuration files in ASP.NET applications inherit the settings of configuration files in the URL path. For example, given the URL www.microsoft.com/aaa/bbb, where www.microsoft.com/aaa is the Web application, the configuration file associated with the application is located at www.microsoft.com/aaa. ASP.NET pages that are in the subdirectory /bbb use both the settings that are in the configuration file at the application level and the settings in the configuration file that is in /bbb.

For more information about ASP.NET configuration files, see ASP.NET Configuration

Internet Explorer-hosted application.
If an application hosted in Internet Explorer has a configuration file, the location of this file is specified in a <link> tag with the following syntax:

<link rel="ConfigurationFileName" href="location">

In this tag, location is a URL to the configuration file. This sets the application base. The configuration file must be located on the same Web site as the application.



(MSDN)

________
Alle Angaben ohne Gewähr. Keine Haftung für Vorschläge, Tipps oder sonstige Hilfe, falls es schiefgeht, nur Zeit verschwendet oder man sonst nicht zufrieden ist

alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
zur Laufzeit den app.config Pfad erfahren ?1.919Micke19.02.05 08:37
Re: zur Laufzeit den app.config Pfad erfahren ?1.273ModeratorDaveS19.02.05 09:42
Re: zur Laufzeit den app.config Pfad erfahren ?1.164Micke19.02.05 10:09
Re: zur Laufzeit den app.config Pfad erfahren ?1.356ModeratorDaveS19.02.05 10:16
Re: zur Laufzeit den app.config Pfad erfahren ?1.149Micke19.02.05 13:34

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel