This is a migrated thread and some comments may be shown as answers.

Cannot find resource db.rlinq embedded in assembly MyProgram

3 Answers 325 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guy
Top achievements
Rank 1
Guy asked on 12 May 2011, 08:00 AM
I have looked at all the prior threads on how to solve this problem.  I have tried them all.  OpenAccess ORM was working flawlessly until this afternoon when the error message first occurred.  Now I cannot seem to get around this problem.  Prior threads do not provide a single, concise or complete solution.

I reinstalled OpenAccess.  I upgraded OpenAccess to the latest build.  I tried changing the Build Action on db.rlinq to Embedded Resource.  I started from scratch with a blank winforms C# project and tried to add a new class library project to contain db.rlinq.  Always the same error message.

The last remaining thing to try is to uninstall vs2010 and start all of that from scratch.  Perhaps there's a quicker answer on this forum.

The exception is thrown beneath application code:

EntitiesModel em = new EntitiesModel();

The output window actually shows two "first chance" exceptions:

A first chance exception of type 'System.ArgumentException' occurred in Telerik.OpenAccess.dll

A first chance exception of type 'System.TypeInitializationException' occurred in DataEntry.exe


In entitiesmodel.cs, generated by ORM, the line of code is:

private static MetadataSource metadataSource = XmlMetadataSource.FromAssemblyResource("db.rlinq");


As I say, this was working fine until about 8 hours ago.
This may bring an end to my evaluation of OpenAccess as there are only two days left to complete the evaluation.

Regards,
Guy

3 Answers, 1 is accepted

Sort by
0
Guy
Top achievements
Rank 1
answered on 15 May 2011, 04:24 AM
FYI.  Removed vs2010 sp1.  Reinstalled OpenAccess ORM.  Rebuilt ORM for project.  Worked.
0
Zoran
Telerik team
answered on 17 May 2011, 05:28 PM
Hi Guy,

 The behavior that you described is kind of weird and it is one that we have definitely not experienced before. The functioning of the OpenAccess product should not have any dependency to the state of Visual Studio but SP1 is fairly new and we will invest more testing efforts into it. Did you observe that having SP1 of Visual Studio 2010 installed is the difference between working and non-working OpenAccess. Does OpenAccess work as expected when you have Visual Studio 2010 installed but then it is breaking after you install the Service Pack of VS2010?

After all, I am happy that you managed to resolve this issue. Thanks in advance for your collaboration on this problem. 

All the best,
Zoran
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
Guy
Top achievements
Rank 1
answered on 18 May 2011, 02:32 AM
I had SP1 installed (although I did not verify nor knew now to verify that it worked) for about a week before the problem appeared.  The most weird part was that I could not identify what triggered the problem as it seemed that I was in an edit compile debug cycle for a few days before it appeared.

I do know that I had problems during the SP1 install where the install script would never return from its progress bar.  Having read other trouble stories describing similar "infinite" installations, I decided at that time to leave SP1 in place because all things seemed to work and the control panel reported it was installed.

I don't have any more specifics on why the problem occurred because I am under a time crunch to deliver an application using your tools.  But to answer your question directly, OpenAccess worked for a week after I had installed SP1 (which was installed after Telerik).  Then the problem occurred.  I uninstalled Telerik and then uninstalled SP1, then reinstalled the newer OpenAccess.  Also, I went back a got a backup of the vs2010 C# winform project file.  Perhaps the problem was embedded in the project file, I didn't do a diff to find out.

At some point, I have to start working with Silverlight and WPF for the next project and will have to install SP1 (or relevant update) at that time.  Most likely, I will be using Telerik ORM and technology to proceed.  I'd like to believe I will not have the same problem.  I will use an update from the MSDN subscription for vs2010 instead of downloading it next time.

Regards,
Guy
Tags
General Discussions
Asked by
Guy
Top achievements
Rank 1
Answers by
Guy
Top achievements
Rank 1
Zoran
Telerik team
Share this question
or