The scenario – you have an asp.net app that creates a file of some kind – everything works great – then you upload it and the file is not created.
It turns out that Visual Studio will not deploy an empty folder, or a folder that it seems as empty anyway – if the app is creating the files, the new files will not be visible to Visual Studio. Visual Studio will see an empty folder and not create it on the server. You will run the app, and it will try to save a file to a folder that isn’t there, and will create an error.
The easiest way to do that is to just create a blank text file in the folder. Visual Studio will see that file, and then upload the text file (in doing so creating the folder) and the app will have a folder to create the new file in.
||Written By Steve French|
Leave a Reply