Hi,

I've tried creating a new Web Project with RIA Services and Silverlight. I pretty soon ran into a problem that has been registered before (http://forum.x-tensive.com/viewtopic.php?f=29&t=5673&p=13573&hilit=The+Xtensive.Core.Weaver+required#p13573)

Error 10 The plug-in "Xtensive.Core.Weaver" required by the type "Xtensive.Core.Aspects.InitializableAttribute" was not found. C:\Users\Paul\Documents\Visual Studio 2010\Projects\AnyMatrix\AnyMatrix.Web\POSTSHARP AnyMatrix.Web

I tried creating an empty project from scratch using the 'DataObject.Net Web Application Project' Template an got the following pop-up.

C:\Temp\ldmmcsdt.ujk\Temp\Project3.csproj(112,3): The imported project "C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Common\DataObjects.Net.targets" was not found. Confirm that the path in the <import> declaration is correct, and that the file exists on disk.

It seems to me that there's something missing in the setup of 3.4.0 RC4 Installer. The path "....\Latest\Common\DataObjects.Net.targets" does not exist on my computer after installation.

Regards Paul Sinnema Diartis AG


Updated at 07.07.2010 6:57:59

Hi Alex,

Haven't found the time yet. Had to see the Semi-Final World Championship Socker. I'm Dutch and a great fan of the our team :D

Regards Paul Sinnema Diartis AG


Updated at 09.07.2010 15:53:52

it was very obvious from the beginning that the final will be Netherlands - Germany :wink: (another dutch fan :lol: )

Another one bites the dust. So it's not going to be Netherlands - Germany after all. The Trauma continues :shock: .


Updated at 09.07.2010 15:58:23

Hmm, web application project implies it must be processed by PostSharp (i.e. there is a persistent model inside it). You can create separate model project (the one that must be processed by PostSharp) and regular web application referencing it. Then run Upgrade Tool for web app project and turn all options here (see screenshot) to ensure web application project references everything properly, but does not require PostSharp itself.

This isn't working either. After I run it on the 'AnyMatrix.Web.csproj' file, I can't load the project anymore. It says:

The imported project "C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Common\DataObjects.Net.targets" was not found. Confirm that the path in the <import> declaration is correct, and that the file exists on disk.

When I look at the location it says it would like to find the '.targets' file I see there isn't even a 'Common' directory present in the 'Latest' directory.

Regards, Paul Sinnema Diartis AG


Updated at 09.07.2010 18:19:51

I've discovered what seems to be the problem:

When I start the CMD for VS2010 and type 'set' I see the following Path description:

DataObjectsDotNetPath=C:\Program Files (x86)\DataObjects.Net\Bin\Latest

In Project file the following import is done:

<Import Project="$(DataObjectsDotNetPath)\Common\DataObjects.Net.targets" />

This would result in the path

C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Common\DataObjects.Net.targets

Which does not exist.

I came to this discovery after I tried to load our KLIB project at home. At work there's no problem loading the Solution. At home I get the same project load errors.

Regards Paul Sinnema Diartis AG


Updated at 09.07.2010 18:25:42

I've just made a remote desktop connection to my PC at work and guess what I see when I type 'set' in the VS2010 CMD?

DataObjectsDotNetPath=C:\Program Files (x86)\DataObjects.Net

That would lead to the Path:

C:\Program Files (x86)\DataObjects.Net\Common\DataObjects.Net.targets

That one exists and contains the .targets file. Bingo.


Updated at 09.07.2010 18:41:51

Somehow there were 2 paths entered in my Environment variables.

One in the User Variables for Paul (that's me ;-)): C:\Program Files (x86)\DataObjects.Net\Bin\Latest One in the System Variables: C:\Program Files (x86)\DataObjects.Net

Removed the first one and everything loads fine again. Pfffffft :?

Is it possible I did this? I don't remember doing that but, not matter. It works again.

I'll try the Upgrade thingy again soon.

This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked Jul 04 '10 at 09:53

Paul%20Sinnema's gravatar image

Paul Sinnema
261878896


One Answer:

Alex (Xtensive) wrote:

Hmm, web application project implies it must be processed by PostSharp (i.e. there is a persistent model inside it).

You can create separate model project (the one that must be processed by PostSharp) and regular web application referencing it. Then run Upgrade Tool for web app project and turn all options here (see screenshot) to ensure web application project references everything properly, but does not require PostSharp itself.


mdissel wrote:

Haven't found the time yet.

it was very obvious from the beginning that the final will be Netherlands - Germany :wink:

(another dutch fan :lol: )


Alex (Xtensive) wrote:

User variable is definitely a result of your own activity ;)

System variable is set by DO4 installer (actually, by Install\Install.bat, that launched by installer - try running it with "-?" to see all the options; it can be useful if you're thinking about installing DO4 via copying on multiple PCs, eg. TeamCity build agents).

answered Jul 05 '10 at 02:57

Editor's gravatar image

Editor
46154156157

Hi Alex,

I'll try that tonight (my local time of course :D ).

Regards Paul Sinnema Diartis AG

(Jul 05 '10 at 02:57) Paul Sinnema Paul%20Sinnema's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA