Same problem but in RC1

HI,

I installed .net framework 3 beta2 and windows sdk on a clean system , no previous beta installed.

when I try to run the xamlpad, a fatal error happens, I tried to debug then I got the detail error:

================================

An unhandled exception of type 'System.IO.IOException' occurred in PresentationFramework.dll

Additional information: Cannot locate resource 'xamlpadapp.baml'.

I have no idea aboout this. is there anyone can help me?

[500 byte] By [JimmyGao] at [2007-12-24]
«« XNA Pro
»» SQL Help
# 1

Hi Jimmy,

Did you manage to fix this? I am having the same problem and I'm not getting anywhere with it.

Thanks

Andy

Andyhobbs at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 2

Same thing here. I first thought it was related to the WIC (Windows Imaging Component) problem with the .NET Framework 3.0 but, it is not since I finally resolved this issue.

I checked within the application and strangely enough, the xamlpadapp.baml resource is there.

Any clue would be appreciated.

TheCyberKnight at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 3

HI,

I resolved this issue. I removed .net framework 3.0 beta2 and use winfx beta2 instead, then it works.

JimmyGao at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 4

More on this...

I have 2 coworkers who installed the .NET FX 3.0 and they both have the exact same problem. I'll have a look in other newsgroups to see if I can find more on this.

TheCyberKnight at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 5

Hi,

My colleage and me are strugling with the same problem..

3 installations in XP and 1 in the latest vista build all crashing xamlpad.

Is there anybody who doesn't have this problem ? (There must be lots of people otherwise there would be more replies to this one)

Anyway, thx for any advise.

Kris Goossens

(Installing Winfx beta 2 instead of the latest winfx (.net framework 3.0) is not an option to us.)

kris.goossens at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 6

I found nothing new in the groups. Meanwhile, I started investigating the XAMLPad binary and found interesting things.

The constructor for the main window has some code looking like this:

public void InitializeComponent()

{

if (!this._contentLoaded)

{

this._contentLoaded = true;

base.Startup += new StartupEventHandler(this.AppStartup);

base.StartupUri = new Uri("XamlPadPage.xaml", UriKind.Relative);

Uri uri1 = new Uri("xamlpadapp.baml", UriKind.RelativeOrAbsolute);

Application.LoadComponent(this, uri1);

}

}

I found strange that the LoadComponent used a URI named ".baml" where we usually see a ".xaml" file from the resources. Therefore, I used VS2K5 to patch the binary and replace the name to "xamlpadapp.xaml". Now, I get a different error that is even more interesting:

"Version mismatch. BAML stream has version number '0.80' but parser can read only version '0.94'."

This is the error seen when something from the May CTP is used with the June CTP. There is still a possibility that the error is generic and thrown whenever the engine is unable to deserialize the BAML stream. Meanwhile, since it explictly mention version 0.80, one can assume it is a real deserialization error.

Now, the question: Is there someone out there that is able to use XAMLPad from the Windows SDK matching the June 2006 CTP release? If not, it could simply be a packaging error where an old build was used for the application.

Any additionnal input would be appreciated.

TheCyberKnight at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 7

Could someone seeing this issue please post the FileVersion of xamlpad.exe (right click, properties, version tab, FileVersion in the list) they have?

MarkGrinolsMSFT at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 8

Strange, 2 latest releases have the same version number.

june 9 2006 3.0.6218.0 .net framework 3.0 and crashing
april 3 2006 3.0.6218.0 winfx beta 2 and working

Tried to copy the winfx version to the pc with the .net framework 3.0 but this didn't work either.

kris.goossens at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 9

The correct FileVersion for the xamlpad.exe which matches the June CTP bits of Microsoft.Net Framework v3.0 is 3.0.6507.0.

When I installed the SDK here, i wound up with the corect version xamlpad.

The error quoted above was: "Version mismatch. BAML stream has version number '0.80' but parser can read only version '0.94'."

The BAML stream mismatch error is telling us the app (in this case xamlpad) was compiled against a different version of WPF than what is currently installed.

This BAML stream version # is a purely internal construct. It's easier to look at and think about the FileVersion. In your case you do not have the right xamlpad version installed (you have 3.0.6218.0). Now we have to figure out why.

Can you confirm where you installed the SDK from? (the link)

MarkGrinolsMSFT at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 10

Hi Kris,

Can you please try the other way around. Copy the one from the .NET Fx 3.0 to the machine with the May 2006 CTP. If this works, it would confirm the fact that is is an old build using the 0.80 BAML.

Thanks.

TheCyberKnight at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 11

One thing that may be confusing is that xamlpad.exe does not come as part of Microsoft.Net Framework v3.0 (aka the runtime) -- it comes with the SDK. So if you update your runtime to June CTP but do not also update the SDK you will have this mismatch (you'll effectively be trying to run a pre-June CTP version of xamlpad on the june CTP version of the runtime and that's not gonna fly).

The fix is of course to update the SDK so you get the new Xamlpad (and the other goodness with the update).

If after updating to June CTP of the sdk (and the runtime) anyone is still seeing this issue, post back with the FileVersion information for Xamlpad.

Thanks.

MarkGrinolsMSFT at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 12

I will try to copy the xamlpad.exe this evening (only my home-pc still has the previous version of the SDK)

Further more i did the folowing tests on the image file and everything was fine :

Meanwhile i'll try to uninstall, delete all files (if there are any left), and re?nstall the sdk.

===

To run the CRC test, open a command prompt and run the utility. providing it the name of the file (i.e. crc c:\6.0.5456.3.0.WindowsSDK_Vista_idw.DVD.Rel.img) The CRC utility will run two tests on the ISO: it will verify if the ISO is valid, and it will give the AutoCRC signature for the file. The AutoCRC signature for the Windows SDK June CTP ISO is 0x4F2680CF. You should also confirm the size of the ISO is correct: 1.13 GB (1,222,107,136 bytes)

If it fails any of these three tests, re-download the ISO.

kris.goossens at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 13

Hi Mark,

I installed from the June CTP and have the failure.

The FileVersion of my XAMLpad is

The File Version of my June CTP SDK is 3.0.04131.06

I am dust downloading the SDK again from the link you have given and will try again...

Andy

Andyhobbs at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...
# 14
Andyhobbs wrote:

Hi Mark,

I installed from the June CTP and have the failure.

The FileVersion of my XAMLpad is

The File Version of my June CTP SDK is 3.0.04131.06

I am dust downloading the SDK again from the link you have given and will try again...

Andy

Sorry forgot... here is my XAMLpad version 3.0.6218.0

Andyhobbs at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...

Software Development for Windows Vista

Site Classified