Page 1 of 1
LINQ and WEB FORM
Posted: Tue 25 Aug 2009 14:30
by pwindal
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

Posted: Wed 26 Aug 2009 07:56
by Shalex
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.
Posted: Wed 26 Aug 2009 10:00
by pwindal
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
Posted: Thu 27 Aug 2009 11:27
by Shalex
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.
Posted: Fri 28 Aug 2009 04:49
by pwindal
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
Posted: Fri 28 Aug 2009 13:18
by Shalex
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.
Posted: Tue 01 Sep 2009 13:59
by pwindal
Hourra, it's functionning...
Many thanks
Posted: Tue 22 Sep 2009 17:25
by pgTrialGuy
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
---------------------------
Posted: Thu 24 Sep 2009 09:35
by Shalex
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.
Posted: Fri 25 Sep 2009 07:44
by Shalex
The new builds of dotConnects are available for download now.