Tag Archives: Windows 7

Using Tincr with ASP.NET MVC in Windows 7

If you’re not aware, tin.cr is an extension to Chrome that allows you to edit your JavaScript and CSS files in Chrome or using your editor of choice and affecting the source and destination. I personally wanted to use it to make modifications to JavaScript files in VS2012 and have Chrome auto load the file and put it into effect on the page. Thus I save myself numerous page refreshes while I work out kinks. Tincr was developed by Ryan Ackley. Here is the official video for Tincr.

Installing Tincr on Windows 7

  1. Visit the tin.cr website.
  2. Click on the Download Tincr button (Do this through chrome and it will take you to the chrome extension install page).image
  3. Once you have added the extension restart the browser and you should see a Tincr tab in the Developer Tools windowimage<

Setup Tincr

  1. We now need to create a tincr.json file. Open up your favorite editor and post the following code into it (remember to change MyApp to your app name):

        “toFile” : [],
        “fromFile” :
                “from”: “\\\\Scripts\\\\([a-zA-Z]+)\\.js”,
                “to”: “/MyApp/Scripts/$1.js”

    This tincr.json file tells tincr to look for JavaScript files in the Scripts folder and apply that to the ‘to’ URL. Notice it is using regex so if you have funky named files, you will have to change the regex. In my case, the js file is called ‘common.js’. Once you are done, save the tincr.json file to the root directory. This will be the location of the ASP.NET MVC app directory that is hosted in IIS. In my case, it was C:\dev\tfs\MyApp.

  2. Now you need to setup Tincr. You can mimic the options I set here. For Root Directory, you should point to the location of the ASP.NET MVC app directory that is hosted in IIS. In my case, it was c:\dev\tfs\MyApp. You should see the green ‘Project loaded successfully’ before you begin to use this.image

Using Tincr

  1. We are ready to test this out. Open a browser window and navigate to the URL. In my case it is http://localhost/MyApp. Now go into VS2012 and make a change to a JavaScript file. You should see a message in Dev Tools Console saying “Auto-Reloaded http://localhost/MyApp/Scripts/common.js”. In the case below, I had a console.log(‘asdf’) that I changed to ‘its alive’ in a jquery function that did something on hover. So I just saved the file in VS 2012, moved my mouse over the element and saw the new message. AWESOME!image

Issues with Tincr

If you don’t see the Auto-Reloaded message, it means that your tincr.json file is incorrect OR the extension is not able to figure out your file. This is something that I struggled with for a little bit.

  • The Extension has an issue with windows where query string parameters affixed to the JavaScript URL will make it fail.
  • Another possible issue is if you have an AJAX request that downloads a JavaScript file because it’s a link in the content that was returned. Well, your URL for that JavaScript file may have been altered by JQuery. Use Fiddler and make sure that your URL for the file does not contain any query parameters. It will save you a bunch of time.

Happy Coding.

Tagged , , , , , , , ,

Running an existing VHD Image in Windows 7 RC 1

In my previous post, I showed the difficulty of running Virtual Server 2005 on Windows 7 RC 1 due to the “Hard Block” and I vowed to try to get an existing VHD running inside Win 7. Here is a screenshot showing my VHD running in all its glory in Windows 7 Release Candidate 1. Its a SharePoint (MOSS 2007) image that I created a long long time ago.



In order to get an existing VHD running, the option you can use is Windows Virtual PC.

  1. Download and install Windows Virtual PC from http://www.microsoft.com/windows/virtual-pc/download.aspx.
  2. Navigate to a folder that contains the VHD and VMC file like the image shown below and double click on the VMC file.


  3. This will start up the Virtual PC and ask you to install the integration module. Click ok and after a restart, you should see the login screen for your VHD image.


For now this method will get you running in the environment. However, I am finding that it is painfully slow, much like using the Remote Control Client that ships with Virtual Server 2005. Next thing to find out is how to set this up efficiently and in a way that allows you to get things done.



Update (6/1/2009) 

I setup a Microsoft Loopback Adapter on my machine, bound the Network Adapter for the VHD to it and was able to RDP to that IP. However, it is INSANELY slow! This is NOT a way to run a VHD and do local development. I tried using Windows Virtual PC itself instead of RDP and that was just as slow. Here are the settings for the VHD. As you can see, I am using 2560 MB of RAM. My machine is a dual core CPU with native virtualization support.




So to summarize, Windows Virtual PC BLOWS, RDP into Windows Virtual PC BLOWS, making the VHD bootable BLOWS (because its complicated and requires you to exist in the VHD OS at all times).


MICROSOFT! Just what is a Windows 7 RC 1 (x64) user supposed to do?

Tagged , , , , , , , ,

Virtual Server 2005 and Windows 7

Wanna install Virtual Server 2005?

Wanna install it on Windows 7?

“Big Whoop, Wanna fight about it!”


Paddy Tanninger the Caddy Manager

Ok I know, I promised you all this post a long time ago. 2009/01/21 to be exact. So without much further ado, here is Virtual Server 2005 running on Windows 7.


That’s Windows 7 BETA.





When I tried to install this again on Windows 7 RC 1, I ran into this NASTY little thing.

I say nasty with all the venom, hate and loathing I have in every fiber of my body.






To quote Microsoft:

Hard Block:

The software must exhibit the following behavior to qualify for a hard block:

  1. The OS is rendered unusable and unrecoverable (includes bug check).
  2. The hard block is preferable to the alternative user experience, including:

    a. The OS would be left partially functional, and no in-context guidance can be given to the user, and the hard block can provide steps to remedy the problem.

    b. An application would be left unusable and unrecoverable (can’t be repaired by uninstall or upgrade). This should be an extremely rare case, since recovering from an application installation should be possible through install/uninstall software. The vendor would need to prove that that is not an option.




Hard blocks are EVERYTHING that is wrong with our software industry today. The proverbial PRE KILL SWITCH, the DRM SQUARED, the “I know what’s good for your machine mentality.”

If Virtual Server 2005 works with the Windows 7 Beta build, then what have you done to make this program FAIL in the RC version. If all Microsoft is trying to do is encourage people to use the Windows 7 native VHD support, then do so by telling me that in a soft block format but give me the option to do things my way too.

Install Screen 11

Install Screen 12 




Frustrated, my next step was to try to put a stop to Program Compatibility Assistant (henceforth known as ASS) by using gpedit.msc, disabling services and even installing some updates etc.

BTW. What the hell is Program Inventory (PDU), Application Telemetry

“The PDU inventories programs and files on the system and sends information about those files to Microsoft. This information is used to help associate files to programs and diagnose application compatibility problems.”

Hmm. Seems to me like this could be an invasion of privacy waiting to happen.






Frustrated again, I emailed the SharePoint team asking for some sense of sanity. How do they want us developing on SharePoint if we can’t use Virtual Server. Virtual PC? Scoff! That’s for kiddies and your grandma! Ha!


Thank you to Dave Pae for that email.


So now to go to the following URL and read up:






My next post should come up with a solution for how to make your existing VHD files work with Windows 7 RC 1.

Tagged , , , , , , , , , ,

Windows 7: The motherload of Issues


I had promised to write a post on Virtual Server in Windows 7. Well it didn’t materialize and the reason was that my machine got totally screwed. I mean 3700MB RAM and 100% CPU utilization kind of screwed. Nothing and I mean nothing was working. I would try to shut down only to be told that I am not allowed to shut down. No apps were loading, no mouse movement, nothing.

Somehow I managed to get TaskManager going and found that and instance of svchost.exe was totally borking my system. Oh how I wished I could start ProcessExplorer. One of the first things I will do from now on is replace TaskManager with ProcessExplorer

Open ProcessExploere

Click on Options

Click on Replace Task Manager

One of the many reasons why you should do this is because ProcessExplorer will tell you which Services are registered in a process such as with svchost.exe.


The solution I found was to Restore the machine back to a restore point from a couple days prior using System Restore.


Now, everything is working just fine.


I have also tried to install Windows 7 on one of my older machines that wasn’t being used. It was an ASUS P4PE with 2.4GHZ Intel CPU and 512MB of RAM. Well that didn’t turn out too well. There was no problem with the OS installing or even running. Where I couldn’t get any use was with the hardware drivers not being found. No ethernet, sound etc. And since the board is so old, there aren’t even Vista drivers.

I tried plugging in a RealTek lan card I had laying around but that didn’t work either. Finally I tried a USB wireless device that worked like a charm. Only thing was that it required WEP. Bah!

As far as performance goes, things were a little slow initially but then I was able to get it working properly by reducing the Visual Effects to Adjust for best performance in the System Properties.



That said, my machine is completely hosed because I was dual booting XP on IDE versus Windows 7 on SATA. Somehow, that was causing issues and I haven’t had time to play around and fix it.

Tagged , , , , , ,

Running Virtual Server 2005 on Windows 7

I am putting together a step-by-step post on how to install, manage and use Virtual Server 2005 on Windows 7. Personally, I believe that Virtual Server 2005 is a LOT better than Virtual PC so I will work with that technology and point out some of its cool “features”.

So look for details on that in a day or so. Hopefully, it will help you get started on Virtualization or working in a separate OS which is a necessity for SharePoint (MOSS/WSS) development or “testing” downloads. 🙂

Update: See my follow up post at https://aboutdev.wordpress.com/2009/05/21/virtual-server-2005-and-windows-7/

I leave you with a link to the Engineering Windows7 blog and specifically to the The Windows 7 Taskbar post. They even have an image of the Windows 1.01 taskbar. AWESOME!


Tagged , ,