CSLA 3.8.1 won't build

CSLA 3.8.1 won't build

Old forum URL: forums.lhotka.net/forums/t/8026.aspx


cmay3 posted on Saturday, November 21, 2009

I'm not sure what I am doing wrong. I had no problems with pre 3.8 versions.

First I got this error:

Wpf\Execute.cs(3,22): error CS0234: The type or namespace name 'Interactivity' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

I then added a ref to the System.Windows.Interactivity.dll in the Dependencies folder.

After doing that I get this build error:

------ Build started: Project: Csla, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(294,9): error MC1000: Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'
Done building project "Csla.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

I am up to date with .Net framwork on my machine up to 3.5 SP1.

What am I doing wrong?


P.S. I don't think the "I forgot my email" service on this site works. I'm on my 3rd username (cmay, cmay2, cmay3). I checked my spam blockers for both my previous email addresses, which are hosted on 2 totally different systems (Exchange 2007 and google apps) and I've checked my spam on both. I've been trying for the last 10 days or so to get back into the cmay account.

sergeyb replied on Saturday, November 21, 2009

Maybe you added reference to SL version of Interactivity assembly?

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: cmay3 [mailto:cslanet@lhotka.net]
Sent: Saturday, November 21, 2009 7:16 PM
To: Sergey Barskiy
Subject: [CSLA .NET] CSLA 3.8.1 won't build

I'm not sure what I am doing wrong. I had no problems with pre 3.8 versions.

First I got this error:

Wpf\Execute.cs(3,22): error CS0234: The type or namespace name 'Interactivity' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

I then added a ref to the System.Windows.Interactivity.dll in the Dependencies folder.

After doing that I get this build error:

------ Build started: Project: Csla, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(294,9): error MC1000: Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'
Done building project "Csla.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========


What am I doing wrong?


P.S. I don't think the "I forgot my email" service on this site works. I'm on my 3rd username (cmay, cmay2, cmay3). I checked my spam blockers for both my previous email addresses, which are hosted on 2 totally different systems (Exchange 2007 and google apps) and I've checked my spam on both. I've been trying for the last 10 days or so to get back into the cmay account.

cmay3 replied on Monday, November 23, 2009

I had tried both with the same result.

I'm going to try uninstalling everything Silverlight on my computer and try again.

cmay3 replied on Monday, November 23, 2009

Uninstalling Silverlight on my machine did the trick.

DanielS replied on Tuesday, January 12, 2010

The file is a part of the Blend SDK - download from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=F1AE9A30-4928-411D-970B-E682AB179E17&displaylang=en

Then you can browse to this file to add the reference: C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\System.Windows.Interactivity.dll

(Remove the (x86) on 32-bit OS's...

RockfordLhotka replied on Tuesday, January 12, 2010

The 3.8.1 download includes a Dependencies folder with the Interactivity assembly, and the projects reference the assembly from that location. You should not need to get the Blend SDK unless you want help or localization for the Interactivity assembly itself.

Roy replied on Thursday, March 11, 2010

I have got 3.8.2 and getting the same failure. I have the Dependencies folder where I can see the assembly. The Csla project had referenced to the assembly. Then I downloaded the Blend SDK that did not help either. Then I removed the class "Execute" which was using "System.Windows.Interactivity". I was able to compile at that time. Followed the link to compile and run SimpleApp.Web.

RockfordLhotka replied on Saturday, November 21, 2009

cmay3:

P.S. I don't think the "I forgot my email" service on this site works. I'm on my 3rd username (cmay, cmay2, cmay3). I checked my spam blockers for both my previous email addresses, which are hosted on 2 totally different systems (Exchange 2007 and google apps) and I've checked my spam on both. I've been trying for the last 10 days or so to get back into the cmay account.

Yes, it is broken and I don't know why. Email me directly and I'll reset your pw.

Copyright (c) Marimer LLC