Aug 02

Publishing to Azure: Could not load file or assembly ‘Microsoft.Web.XmlTransform,Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies

When publishing my MVC 5 webapp to Azure I get the error:

The “ImportParametersFile” task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Web.XmlTransform,Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. File name: ‘Microsoft.Web.XmlTransform, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

I’m using Visual Studio 2012 Update 4. Azure SDK 2.3.

I’ve tried:

– reinstall azure SDK
– reinstall Web Tools 2013.1 for VS2012
– installed slowcheetah nuget package
– installed Microsoft.Web.xdt nuget package
– uninstalled VS 2013

So far no luck, the Microsoft.Web.Xmltransform.dll is just missing and the version that is somewhere on my system is the wrong version. I’ve tried to find the version somewhere, but it seems unfindable.


– repair Microsoft ASP.NET & Web Tools 2013.1 Visual Studio 2012

reinstall does not work

May 10

Could not load file or assembly ‘system.web.http’ file not found when running custom tool on Typelite

I got the error message Could not load file or assembly ‘system.web.http’ file not found when running custom tool on Typelite. File not found. This was after updating some nuget packages.

The issue is that apperently there are several version installed. How to get rid of this misery:

– start the nuget package manager console in Visual Studio

– type: update-package (all packages are updated)

– type: get-package (you get a list of installed packages)

– remove all packages from old versions (e.g.: uninstall-package xxxx.yyy -Version 1.0.0)

– if still an old assembly exists in the references, delete it and reinstall the package (UpdatePackage <PACKAGE>  reinstall

– run update-package again

If you get a message that the package is not installed, install it! (install-package <PACKAGE NAME>

All should work now (at least it did for me)


Jan 30

Build fails (of test project) but no errors are reported in the Visual Studio 2012 Build Output window after nuget package update

After updating my nuget packages my build of the test project was failing, without any error reported in the build output window.

First of all you can turn on verbose logging:

  • Tools
  • Options
  • Project and Solutions
  • Build and Run
  • Set these to options to Diagnostic:
    • MSBuild project build output verbosity
    • MSBuild project build log file verbosity

Probably you’ll see the error appearing in you build log file of in the build output file.

In my case the System.web.mvc reference was updated, but the fake assembly that I had generated was not updated and one assembly was missing.

Dec 24

Typescript Common errors and issues for newbies

Recently I started working with Typescript. I’ve noticed that I made some Typescript Common errors and issues for newbies. So I’ve deceided to blog about them. I hope others can benefit from this:

Error 1:
Javascript critical error at line X, column Y, in http…./yourfile.ts
SCRIPT1004: Expected ‘;’

Solution 1:
You’ve probably included the .ts (TypeScript) file in your HTML. But you must include the generated .js (JavaScript) file. Replace the .TS extention for .JS extention, compile the project and you’re all set.

Error 2:
Unhandled exception at line X, column Y in http://localhost/…..yourfile.js.

0x800a138f – JavaScript runtime error: Unable to get property ‘YOURCLASS’ of undefined or null reference

Solution 2:
You’ve probably NOT include the .js file in your HTML file. Include the file <script scr=”YOURFILE.js”></script> in the HTML page.

Error 3: (this error occurs at Typescript compile time, in the editor, at compile time)
Invalid ‘new’ expression

Solution 3:
You must include the correct namespace for the class to create:

Wrong: new Project();
OK: new MySolution.Classes.Project()

Error 4: (this error occurs in the editor, at compile time)
The property XX does not exists on value of type YY

Example code:
public Project: Myapp.Models.ProjectInfo;

Solution 4:
Although you’ve probably used Intellisense when editing. Still this error does appear. You must include a reference to the .ts file. Put the following line at top of the Typescript file that generates this error:

/// <reference path=”PATH TO YOUR TS CLASS FILE”/>

Error 5:
Supplied parameters do not match any signature of call target: type ‘XYX’ is missing property ‘concat’ from type ‘XYX[]’

Solution 5
The parameter expected is an array of XYZ, but the passed parameter is XYZ. Replace the parameter with the correct one (should be an array in this case).


Hope these error messages and the solutions I have provided you, will give you a head start. In my case, most error gave me a terrible a headache.

Happy coding

Dec 03

(SOLVED) Intellisense is not working with Typescript and ReSharper

(SOLVED) Intellisense is not working with Typescript and ReSharper. I’m using Visual Studio 2012. Typically the options:

Tools -> Options -> Languages -> TypeScript -> Auto List Members & Parameter information

get unchecked. This happens every time you display a different file. Basically you have to manually select these options over and over again. This cannot be why you use ReSharper and Visual Studio’s Intellisense.

I’ve tried a lot of things in vain to resolve this issue:

  • deleted 10.0 folder in %APPDATA%/microsoft/visual studio
  • checked the correct opening tag:  /// <reference in stead of /// reference
  • repaired visual studio
  • disabled Typescript in ReSharper (ReSharper > options > languages  >uncheck typescript)

The Solution to this intellisense issue:

None of them gave the deired results. But fortunately I’ve found the solution:

  • In Visual Studio 2012:
    • ReSharper
    • Options
    • Intellisense
    • General
    • Limited ReSharper IntelliSense
    • Check all but TypeScript (ts. files)

And Intellisense works fine again in my case. I hope it helps you to solve the issue your experience..