LINQ and WEB FORM

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
pwindal
Posts: 7
Joined: Thu 10 Aug 2006 11:28

LINQ and WEB FORM

Post by pwindal » Tue 25 Aug 2009 14:30

Hello,

How to use "devart LINQ to SQL Model" with WEB Forms, when I try to use them, I receive template errors.

Do you have some web samples to use use devart LINQ?

Many thanks in advance



Pierre :idea:

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 26 Aug 2009 07:56

Please specify the exact text of the error messages and the steps we should follow to reproduce the problem. Have you tried the latest 5.40.39 version of dotConnect for MySQL? Does the problem persist with the x.39 build too?

Our documentation contains the LINQ tutorial at http://www.devart.com/dotconnect/mysql/ ... rials.html , the LINQ to MySQL tutorial section. Also please refer to our samples at \Program Files\Devart\dotConnect\Linq\Samples.

pwindal
Posts: 7
Joined: Thu 10 Aug 2006 11:28

Post by pwindal » Wed 26 Aug 2009 10:00

Hello I'm using well 5.40.39 (true version, not trial) version of dotconnect for mysql.

The steps:
- open a new web site
- add new item and chose "devart linq to sql model" and click on "add"

You receive " Error: this template attempt to load an untrusted component "devart.entitydevelopper.vs version=2.20.35.0 culture... publickeytoken... for more information on how to enable this template..."

I have no problems with sql servers

The linq samples are well running, they are for console app not for web forms

Many thanks

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 27 Aug 2009 11:27

Please try running your Visual Studio from the command line:
devenv.exe /setup

If it doesn't help, uninstall Entity Developer, and make sure there are no files in the D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Devart folder. If you find any files there, remove them. Reinstall Entity Developer. This should help.

pwindal
Posts: 7
Joined: Thu 10 Aug 2006 11:28

Post by pwindal » Fri 28 Aug 2009 04:49

The problem is still the same, directory is empty when deinstallation. I have the same problem with 2 different machine... Mannu thanks for your solution

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 28 Aug 2009 13:18

This bug will be fixed in the nearest build.
As a temporary workaround, please modify the devenv.exe.config file in the following way: add the PrivateAssemblies\Devart directory to the privatePath attribute of the probing element. The result probing element will be like: Note, this workaround may cause some problems with dbForge Fusion if you have one installed. As I mentioned above, correct fix will be available in the next build.

pwindal
Posts: 7
Joined: Thu 10 Aug 2006 11:28

Post by pwindal » Tue 01 Sep 2009 13:59

Hourra, it's functionning...
Many thanks

pgTrialGuy
Posts: 3
Joined: Sat 25 Jul 2009 00:00

Post by pgTrialGuy » Tue 22 Sep 2009 17:25

I have downloaded and upgraded to the latest release (4.55.42 from Sept 4) and this problem still persists. When trying to add DevArt Linq to Sql to a web project, the following error is provided below.

I haven't made a change to the Visual Studio .config file because the above replies seem to indicate it should be fixed in this latest version.

Please Advise... thanks!


---------------------------
Microsoft Visual Studio
---------------------------
Error: this template attempted to load an untrusted component 'Devart.EntityDeveloper.Vs, Version=2.20.37.0, Culture=neutral, PublicKeyToken=09af7300eec23701'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.
---------------------------
OK
---------------------------

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 24 Sep 2009 09:35

The bug with using Entity Developer in Web Site projects is fixed in the upcoming build, which will be available during several working days. I will post here when it can be downloaded from our site. As a temporary solution, please use the mentioned workaround.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 25 Sep 2009 07:44

The new builds of dotConnects are available for download now.

Post Reply