You do not have permissions to debug the server

March 17, 2010

I recently moved an old Visual Studio 2003 project to a new XP machine and of course I got the infamous “You do not have permissions to debug the server” message when I started the project.

I googled around a bit for a solution but there seem to be a lot of different issues and solutions.

Anyway the solution was quite simple, this blog got me on the right track, but I think I found little twist to make it even easier (and probably safer):

In IE:

  • Tools -> Internet Options -> Security -> Local intranet (icon) -> Sites -> Advanced:
    Add ‘http://localhost’ to the zone (type into box and click Add)

That should be all. If it doesn’t work here are some tips:

  • Go back to Security tab, click ‘Custom Level…’
    All the way at the end of the list make sure ‘Automatic logon only in Intranet zone’ is enabled
  • Make sure the user specified in the Anonymous access tab
    (Start -> Administrative tools -> Internet Information Services -> Properties on the web application -> Directory Security -> Edit) is a member of the debuggers group
    (Start -> Administrative tools -> Computer Management -> Local Users and Groups -> Groups -> Debugger Users (right click) -> Add to Group…)

Navigating with the Back button in Visual Studio

December 18, 2008

I have often wanted a Back button in Visual Studio, like there is in every browser. For instance if you right click some object and select “Go To Definition” then it would be nice to be able to jump back to where you where before without setting a bookmark or similar.

Turns out there actually are a back button, it’s just not accessible from the Edit menu, you just have to get the correct toolbar visible. To get it:

  • Right click on the toolbar (any button) and select “HTML source editing
  • The back button is the first button (looks like a document and a small blue arrow (Forward is here too)

To save monitor space, the “HTML source editing” can replace the “Text Editor” toolbar if you use keyboard shortcuts for bookmarks and intellisense.

The only minus is that apparently there are no keyboard shortcut for either Back or Forward button.

Update: There are shortcuts … CTRL+- for Back (I couldn’t get forward to work) or use navigation buttons on the mouse.


Autodesk Inventor Add-In Project Templates in Visual Studio 2008

October 13, 2008

Autodesk Inventor 2009 lacks support for Visual Studio 2008 in that it will not install a template for it. But luckily the VS2005 templates works fine in 2008 so you can just install them manually. Here is how:

  • Make sure you have installed the Inventor SDK:  %program files%/autodesk/inventor/sdk/DeveloperTools.msi
  • Install the templates: %program files%/autodesk/inventor/sdk/Developer Tools/Tools/Wizards/InventorWizards.msi
  • The templates are normally installed to%program files%/Autodesk/Inventor Wizards/ :
  • Now just copy from the VS8.0_USRPRJTEMPL folder to your template folder :%my documents%/Visual Studio 2008/Templates/ProjectTemplates/Visual C#/
  • For VB.NET copy to the VB folder under ProjectTemplates
  • If you’re using Visual Studio 2008 Express, then you should copy the .Zips in the VCSEXP8.0_USERPRJTEMPL or VBEXP8.0_USRPRJTEMPL in stead (although the full templates will work)

No start Visual Studio and select new project, under My Templates you should now have a “Autodesk Inventor AddIn” template.


March 12, 2008


Sorry for no updates… I haven’t really been working with Windows Mobile development for a long time now, so there hasn’t been much to write. However I’ve learned a lot about Web/AJAX and old fashioned Windows Forms programming lately, but that seems to be against the name of this blog 🙂

Thanks for the nice comments though, it’s nice to see my ramblings can be of use to somebody else. Being linked to on Microsoft Small Business Developer Center certainly was a nice suprise  🙂


Windows Mobile 6 SDK gives Empty Toolbox in Visual Studio

May 24, 2007

I finally got around to installing the SDK for WM6. Turned out that my Toolbox (in Visual Studio) was completely empty when I started a new WM6 project afterwards.

The solution was to right-click the toolbox and select “Reset Toolbox” from the context menu. This was highly annoying because it of course removed my custom tools (e.g. the Ajax Toolkit). Anyway, at least it’s working.

File upload with ASP.NET AJAX UpdatePanel

May 15, 2007

I’ve been working with the Microsoft AJAX toolkit recently (and not so much Windows Mobile – hence lack of update 🙂 . It’s an amazing framework for people who don’t know much JavaScript but still would like to do some AJAX style web programming (like me). However since it involves a combination of .NET server side programming, HTML and client side JavaScript figuring out what’s wrong when something doesn’t work can be tricky. I’ll try to post a few tricks I found (mostly on  🙂 even though it’s not directly related to mobile programming.

The ASP.NET FileUpload control doesn’t work within an AJAX UpdatePanel by default (when the upload button you create is inside the same panel). This is because a file cannot be uploaded asynchronously. To be able to upload a file the easiest solution is to make a complete postback when the user uploads a file. To do this add a PostBackTrigger on the button:

<asp:Button ID="ButtonUploadFile" 
    runat="server" Text="Upload" /> 
<asp:PostBackTrigger ControlID="ButtonUploadFile" /> 

(note that it is not an AsyncPostBackTrigger)

Setting MP3s as ringtone

May 9, 2007

Finally I got around to changing the ringtone on my Windows Mobile device. A quick search on how to use a MP3 as ringtone only turned up ads for applications that would do that for you. As I suspected you don’t need any special software for this – it’s actually embarrassingly easy:

Use the file explorer and navigate to the file you want to use. Tap and hold on it to the context menu appears and select “Set as Ringtone” 🙂

Note: This will copy the file to the Windows\Rings folder (i.e. using internal RAM). This is a good idea because there is a gotcha:
 the storage card will usually power down, meaning that if you put it on the card it may take quite a while before the ringtone is heard when someone calls you!