I've just been writing a new small windows service project using VS2010, .NET 4.0 and Telerik Open Access.
I first created my shell for the Windows Service that contained a timer ready to start running the required functionality. I had created the setup and deployment project and it would install fine to the services list and write event log entries as required on the timer_elapsed event. All good so far.
I then added my Open Access rlinq diagram with a couple of tables from a MySql database. All fine too, right up to the point where I went to install the service.
This time I recieved the dreaded "unable to load one or more of the requested types" error message during the install.
I ensured that all of the required assemblies were being copied (though shouldn't have been needed as this error was generated on my development machine where the assemblies are in the GAC).
After a frustrating hour it turned out that Visual Studio didn't refresh the dependant files. It looked like they were at first. I had followed other suggestions about deleting the obj and bin folders, but simply deleting and re-adding the set up project did the trick.
Showing posts with label Open Access. Show all posts
Showing posts with label Open Access. Show all posts
Monday, 7 March 2011
Wednesday, 16 February 2011
Resolve Cannot find resource XXX.rlinq embedded in assembly - Telerik Open Access
Just recently, I've been playing with Telerik's Open Access ORM. Now that I have it all set up and working correctly, I find it a joy to use. Unlike the ORMs of old, there is no complex XML configuration. Like an old DBA friend of mine used to say, it's no longer like kicking a whale up a beach.
When I started with it, I went through the on-line tutorial, and follwed everything it said to get my first test solution up and running. but I received an error.
Cannot find resource XXX.rlinq embedded in assembly XXX.
I also noticed that the rlinq diagram had not mapped the types correctly.
After a few attempts, I went to the Telerik Forums, and eventually got my answer. This is an issue that will soon be fixed in the next release, but the workaround is so simple.
In Visual Studio 2010, when you start a new project it adds the project to a temp location until you decide to save the solution in it's 'real' project location (E.g. in your Projects directory).
Simply ensure that you have built and saved your solution before adding your rlinq diagram and it will all work like a dream,
If you experience the error in the screenshot above where the types have not been created correctly, then closing and re-opening the rlinq diagram solves this.
This is due to be resolved in the next release, but until then, I hope someone finds this of use.
When I started with it, I went through the on-line tutorial, and follwed everything it said to get my first test solution up and running. but I received an error.
Cannot find resource XXX.rlinq embedded in assembly XXX.
I also noticed that the rlinq diagram had not mapped the types correctly.
After a few attempts, I went to the Telerik Forums, and eventually got my answer. This is an issue that will soon be fixed in the next release, but the workaround is so simple.
In Visual Studio 2010, when you start a new project it adds the project to a temp location until you decide to save the solution in it's 'real' project location (E.g. in your Projects directory).
Simply ensure that you have built and saved your solution before adding your rlinq diagram and it will all work like a dream,
If you experience the error in the screenshot above where the types have not been created correctly, then closing and re-opening the rlinq diagram solves this.
This is due to be resolved in the next release, but until then, I hope someone finds this of use.
Subscribe to:
Posts (Atom)
