c# - how to get the path for executable file that started the application? -


I am working on a web application using C #,

I know that How to give in the windows application The path to the executable file that started the application (if (!! (System.IO.File.Exists (application.StartupPath + "\ gsdll32.dll")))

But I do not know how to give that path

Use the method in ASP.NET:

  var siteRootPath = Server.MapPath ("~ /");  

There is another possibility to use fixed assets:

path = hosting environment. Application physical path;

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -