Quick way to enable Visual Studio Permissions using Caspol.exe

I’ve ran into this a few times, where i’ve started building console/windows apps in Visual Studio 2005/2008 and the development machine i’m running on, doesnt have permissions to execute programs from a network share and access (for example) the registry or a sql server. The solution is to tell .net that its ok to let things running from that network share, to access the registry or sql server.

The normal, and proper way to do it is using the .net 2.0 SDK and tell it the paths which are allowed full trusts, however, the .net 2.0 SDK isnt fully installed with VS2k5 or VS2k8, and thus you are stuck.

No more, type in the following, replacing <PATH> with either a drive\directory or a \\share\directory and you’re set.

caspol -m -ag 1 -url <PATH> FullTrust

Update: easy quick way to let your local servers get fulltrust

caspol -m -ag 1 -zone intranet FullTrust

Austria Vs Poland

Austria are still in the tournament after a lucky decision in their favor in the dying moments of this game.

In a way, you can call it justice. Poland were awarded a goal that was clearly offside in the first half. At the end of the 2nd half, in stoppage time, Howard Webb awarded a very soft penalty to Austria, who used the opportunity to tie up the game.

Nothing else really happened in this game, except we did see that Austria do have some shooting boots. But i doubt they will poise any problem to Germany in the final game, which Germany have to win.

Croatia Vs Germany

Germany fell today. My day was devastated after waking up to see Germany loose 1-2 to Croatia, a team that have beaten them before in an eerie looking game resembling 1998.

Podolski got the loan goal for Germany, and thats the only thing i’ll say on this game.

Switzerland Vs Turkey

Switzerland were the first team knocked out of the tournament, after a very entertaining game againt Turkey in Group A.

Switzerland lost the game 1-2, after failing to keep the lead. The game started, and then it rained. Not just rained, it poured. It poured a for quiet a while, making hte pitch slow, and sluggish. Switzerland thanked the skies for this, as it fell into the style of play they wanted to play – slow and comfortable. This allowed them to get the first goal. A cross from the right, passed into Yakin. The ball skipped once in the goal keepers box, and came to a stand still 1 yard away from Yakin.

Switzerland kept trying to get the second, but failed to do so before the half. During he half, the grounds men were able to take of a lot of the surface water, which made the game more playable for the turks, who were able to score two goals to win the game.

Czech Republic Vs Portugal

Portugal won the match 3-1, with a good performance from Deco to pull them through. Deco started the scoring with a simple tap in after a fumble by Czech. Ronaldo had driven himself into the box and started rounding the keeper but Czech stopped him, and fumbled into the path of Deco, wh slotted in the early goal. 

Minutes later, the Czech republic tied thegame from a set piece, and the game stayed at 1-1 into the half.

In the second half, Ronaldo found some of his skills and was able to smack in a goal from just outside the box, with a stellar finish.

This was a much better performance from both sides, compared to their first games. The Czech Republic did look a lot better with Milan Baros on the field, rather than the aging Koller.

Greece Vs Sweden

Sweden won this game overcoming some poor football by 2 goals. The greeks started the game with a very defensive posture, 5-4-1. This made it extremely difficult for Sweden to penetrate, and it showed for a while. However, Zlatan got a bit of space late in the 2nd half, and fired the game winner in from about 20yards out. An excellent strike.

Greece had plenty of chances as well, had they put away some of them, they would have shown why they were the champions.

Playing in a 5-4-1 relies heavily on needing a goal early, and then defending strongly, or trying to pip a goal in the later stages (as they did in 2004).

Spain Vs Russia

Mighty Spain toppled Russia 4-1 in Austria, with some brilliant goals n both sides.

Spain started strong, and ended the night with 4 goals, with David Villa scoring 3 in a row, 2 in the first half, the final late n the 2nd half. Russia had plenty of simple chances but failed to put any of them away. Guus Hiddink’s men clearly need some target practice, as had they put only half of them away, this could have been an upset, even with Spain’s 4 goals.

Can Spain continue this run? Only time will tell. 

Arsenal’s Fabregas scored the last goal, a marginal offside goal that was allowed in stoppage time.

Holland Vs Italy

What a game we just witnessed. Holland overpowered italy 3-0 tonight, in the best game of the tournament so far. The Netherlands started attacking, and didnt stop attacking. They might still be attacking now in their sleep.

Italy had their chances in the game but failed to make any of htem count.

The first goal scored by Ruud Van Nistelrooy was clearly offside, but was allowed by some strange officiating byt the lines man. A corner was kicked in, and after some tussling Panucci ended up behind the goal line on the floor, in a heap. Seconds later, a strong fast cross/shot came in which Ruud deflected in. At the time of the cross, Ruud was offside. According to the FIFA Laws book, the goal should not count, since the Panucci was off the field not interfering with play, and did not deliberately stay off to keep Ruud offside.

From the rule book (source):

If a defending player steps behind his own goal line in order to place an opponent in an offside position, the referee shall allow play to continue and caution the defender for deliberately leaving the field of play without the referee’s permission when the ball is next out of play.

It is not an offence in itself for a player who is in an offside position to step off the field of play to show the referee that he is not involved in active play. However, if the referee considers that he has left the field of play for tactical reasons and has gained an unfair advantage by re-entering the field of play, the player shall be cautioned for unsporting behaviour. The player needs to ask for the referee’s permission to re-enter the field of play.

Five minutes after the controversial goal, Sneijder scored a spectacular goal, from a break neck counter attack. A full volley into the goal from a Kuyt head into the box.

In the second half, the game remained at a high pace and both teams produced very good chances, but another wonderful country attack move put Holland 3-0 up, which is how it ended.

Romania Vs France

The game started slow, very slow – like a diesel engine and after it did start, it hardly went off idle till the 90th minute.

France’s typical tournament start. There was little of any attacking style of football from either side and hardly any shot on goal. The goalie’s had little to do during regulation time for the entire game.

I doubt the slow start had anything to do with Henry being sidelined with an injury, he hasn’t lit up any game since leaving Arsenal anyway.

Anelka got the first real chance in the 33rd minute with a header that went just high. The game slightly picked up after that moment with  a few open plays, but i started feeling like i wasted 45mins of my life as half time approached.

The second half started a bit better, with a bit more aggression from both sides, but then died down back to the idle murmuring of a diesel engine. 

For the entire game, France didn’t look like the power they were supposed to be, and I think it’ll be difficult to get out of this group having dropped 2 points against the supposed, easiest side in the group.

0-0.. a non event. Romania got the better point out of the two

Germany Vs Poland

Germany set the tournament on alert after it easily beat Poland 2-0 tonight. The germans looked efficient, attack minded, and well, superb. Captain Ballack keep everything under control and had a few chances himself on goal. But the day belonged to one person only, Young Lucas Podolski.

Podolski netted two easy goals, first one being setup from Klose and the 2nd a fumble from Klose which was cleanly smacked into the back of the net. Poland had little in offence, and struggled to keep Germany out of their area.