I have an assembly that contains a function that could be called from IIS or from a console app.
Because of this I have opted for the following to get the path:
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
obviously this will return the bin directory in the case of the function being called from IIS.
I intend to create a txt file on this path. Is it such a bad idea to have text files sitting in the bin directory? Please give valid objections (if any) why this could cause problems.