When I took my first stab at blogging about a year ago, I decided to start two blogs, one personal and the other technical. As a C# programmer I wanted a place where I could write about the technical things I learn on a day-to-day basis. But I could barely, if ever, find the time to maintain a single blog, much less two separate blogs.
Also, I noticed that a great many of the technical blogs I subscribed to contained personal information as well, and that I was sometimes more interested in reading the personal items than the technical ones! When I decided to resurrect my blog, I discovered that I could categorize my postings and place all my geeky musings in their own “Technical” category. So here’s my first technical blog posting.
In Visual Studio 2005, Microsoft has radically altered the way ASP.Net applications and web services are dealt with in the IDE. No longer are there “web projects”, per se, but now there are only “web sites”, and a web site can either be file-based or http- based. So after creating a “Hello World” web site with a web service in it, I tried to run the project, only to get a message stating: “You are not authorized to view this page (HTTP Error 403 – Forbidden)”. Hmmm. What could be causing that? Well, if you look at the URL, you might notice that you’re pointing at the root folder of the web virtual directory. The fix? When you set up the virtual directory in IIS, be sure to allow “directory browsing.” Then youâ€™ll see all the items there and can select â€œService.asmxâ€ to see the familiar test page. The alternative is to right-click on Service.asmx and choose â€œSet as Start Page.â€
Some of you may be thinking, â€œWhatâ€™s the big deal?â€ Itâ€™s mostly a matter of getting used to the new development environment settings. The project settings properties allow a great deal of flexibility in specifying how you want to start your project. The default is to use whatever file you currently have highlighted in the Solution Explorer. One thing Iâ€™ve always wished the IDE would do is automatically sense when thereâ€™s just one asmx file in the project and set that as the start page. This is how most web services are configured, so it would make sense and relieve developers from having to perform this mundane chore. OK, so itâ€™s just a couple of clicks, but eliminating extra clicks can add up when youâ€™re doing this sort of thing on a daily basis. Just my two cents :).