Thursday, July 29, 2010

Cannot load reference assembly Error 13 .NET 4.0 SvcUtil

Just ran into this nice error while trying to generate a proxy using the SvcUtil and /reference option in a .NET 4.0 Project.

Error    13    Cannot load reference assembly 'C:\MySource\bin\Debug\MyReference.dll'   

The solution makes total sense as the current version of SvcUtil is for .NET 3.5 only.

You can get around this by changing your path to:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\svcutil.exe

Alternatively you can download the latest Microsoft Windows SDK for Windows 7 and .NET Framework 4

And then change the SvcUtil path to:

C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\NETFX 4.0 Tools\svcutil.exe

Hope this helps someone.

Tuesday, July 20, 2010

Flex Builder 3 changes not reflected in compiled SWF

I have just spent the last 2 hours trying to figure out why my none of my changes were reflected in the compiled SWF.

Thankfully I came across this post where one of the comments had the solution.

If you have a SWF named <PROJECTNAME>.swf in the html-template then deleting it will fix this issue.

Apparently the existence of this file means that when you do a Build or Release Export it just copies this file and does NOT compile the latest source code.

Makes sense to me!

It turns out that it’s a known bug which has never been fixed, but I hope it’s been fixed in Flex Builder 4.

Hope this helps someone having the same problem in the future.