When Written: Oct 2008
With the perceived forced demise of Classic ASP by Microsoft in mind and some new admin screens being needed for an existing ASP web site I decided to write these in ASP.NET 2 and just to make things even more ‘fun’ I have decided to use C# rather than VB. There are a couple of reasons for this change of language for me. One is that many of the demos and examples now seem to be written in C#, and the other reason is that I am finding that it is a neater and much more readable language than VB.
To build this admin area of the web site the first stage was to create a project and decide where these files will be stored. When using Visual Studio most people seem to store their projects on their local hard drive. I have never liked this, preferring to store the files on a development server. This server is a web server of similar configuration to one of our live servers, which makes testing more relevant and final deployment less full of unwanted surprises. However Visual Studio barfs at creating a project on a remote web server.
After a little investigation I found that problem was with the permissions ( as it often is! ) on the folders in the web server’s root. For Visual Studio to create a project on a server on your network you need to set read/write/create permissions on that folder to ‘allow all’ to the user ‘IIS_WPG’. With this done you can create Visual Studio projects on a server, test and debug them safe in the knowledge that they are getting backed up.
Article by: Mark Newton
Published in: Mark Newton