Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an executable
Message
De
13/08/2008 19:27:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01338423
Message ID:
01338744
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Bob,

Your config file I think actually becomes yourExeName.exe.config and should be generated for you. If you look in your bin folder locally where you have been running it you should be able to find that file.
Tim

>Paul,
>
>One more question if I may... I have successfully created and tested this in my dev environment, but now I need to deploy. I have created a setup project, but I am unclear as to how the program knows where to find the app.config file. I copied the app.config file to the application directory, but when I run the program it errors out on finding the connection string.
>
>Can you tell me how to indicate the location of the app.config file for the executable?
>
>TIA
>
>Bob
>
>>>OK. That makes sense but I have tried this and I am still getting an error and I believe it is because the database connection has not been established as I am getting an object null reference.
>>>
>>
>>You need to initialize the framework first. I don't have the code handy here at home but take a look at a MM.NET WinForm app, inside of the startup program - there is some code there that starts up the App object. There is also a help topic about using MM.NET with NUnit, which is basically the same idea.
>>
>>The code you need to use is something like:
>>
>>
>>public static OakLeaf.MM.Main.mmAppBase App;
>>// You may have a different (subclassed) App object.
>>App.Factory = new AppBase();
>>
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform