DynamicData Unknown Server Tag

Posts   
 
    
Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 02-Sep-2008 17:41:52   

Friends: This is probably something really easy. I generate a dynamic data site that works fine on the local machine but does not work on the production machine:

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'llblgen:LLBLGenProDynamicDataSource2'.

Source Error:

Line 52: </asp:GridView> Line 53: Line 54: <llblgen:LLBLGenProDynamicDataSource2 runat="server" ID="GridDataSource" Line 55: DataContainerType="EntityCollection" CacheLocation="Session" Line 56: EnableDelete="True" EnableInsert="True" EnableUpdate="True" EnablePaging="True">

I added the correct assemblies into the bin folder and also added the following to the web.config: <add assembly="SD.LLBLGen.Pro.DynamicDataSupportClasses.NET35"/>

with no success. Thanks for your help!

(Using v2.6 adapter release June 6th)

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 03-Sep-2008 11:27:15   

Make sure you have the following line at the start of your aspx file.

<%@ Register Assembly="SD.LLBLGen.Pro.ORMSupportClasses.NET20" Namespace="SD.LLBLGen.Pro.ORMSupportClasses"
    TagPrefix="llblgen" %>
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39951
Joined: 17-Aug-2003
# Posted on: 03-Sep-2008 16:39:22   

Also make sure the dynamic data stuff on the production server is indeed the SP1 version.

Frans Bouma | Lead developer LLBLGen Pro
Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 03-Sep-2008 17:06:01   

Thanks for the help guys! I put what walaa suggested at the top as well as

<%@ Register assembly="SD.LLBLGen.Pro.DynamicDataSupportClasses.NET35" namespace="SD.LLBLGen.Pro.DynamicDataSupportClasses" tagprefix="llblgen" %>

with no success. Also, the DynamicData stuff was downloaded just last week so it should be the newest one. Any other ideas?

Thanks again for your help!

--EDIT I also checked the web config and found the following in there:

<pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="llblgen" namespace="SD.LLBLGen.Pro.DynamicDataSupportClasses" assembly="SD.LLBLGen.Pro.DynamicDataSupportClasses.NET35, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27"/>
            </controls>
</pages>

This should alleviate the requirement to add the tag prefixes to each page (I would think).

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 03-Sep-2008 17:19:06   

Oh sorry, I didn't notice that was the DynamicDataSource control. [EDIT] Please ignore my first message on this thread. As I mistakenly thought you are speaing about LLBLGenProDataSource.

Now for your issue, the definition in the web.config file should be enough. And of-course you should not add another definition to the tagprefix like I said earlier.

I'm not sure what's casuing your problem, but would you please try to modify the version number specified in the web.config tag declaration to be exactly like file version of the file in the bin folder. (Right Click the file -> Properties and look for the file version value).

<add tagPrefix="llblgen" namespace="SD.LLBLGen.Pro.DynamicDataSupportClasses" assembly="SD.LLBLGen.Pro.DynamicDataSupportClasses.NET35, [b]Version=2.6.0.0,[/b] Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27"/>

My file has the version number of 2.6.8.813

Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 03-Sep-2008 20:46:03   

Thanks for the help. I made the suggested change with the following result:

Parser Error Message: Could not load file or assembly 'SD.LLBLGen.Pro.DynamicDataSupportClasses.NET35, Version=2.6.8.813, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Thanks again for your help.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Sep-2008 07:04:24   

Why is your file version mentioned by Walaa? Could you please post that config snippet?

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39951
Joined: 17-Aug-2003
# Posted on: 04-Sep-2008 12:24:25   

813 is the latest build.

In any way, the production site can't find the assemblies it needs. The dyn. data assembly refers to the LinqSupportClasses for .net 35 and the ormsupportclasses for .net 2.0.

Frans Bouma | Lead developer LLBLGen Pro
Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 04-Sep-2008 17:15:24   

I thought I did post the config snippet. I saw that I did not upload the appropriate linq support dll so I did that. After doing that, it still returned the same error.

I am not sure why it would not work!

-Seth

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 04-Sep-2008 17:18:40   

To avoid going in circles, would you please attach a repro solution, better to be based on Northwind?

Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 05-Sep-2008 07:50:38   

I guess I am at a loss. It works on my dev machine. So I am assuming it will work on your dev machine too. Is anyone else having this kind of problem?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 05-Sep-2008 09:24:58   

I guess this might be related to a missing permission (access right), on the file or the folder.

Seth avatar
Seth
User
Posts: 204
Joined: 25-Mar-2006
# Posted on: 08-Sep-2008 21:56:14   

I tried setting the permissions for the ASPNET to full permissions but that did not fix the problem.

--EDIT

It might be that .NET 3.5 SP1 is not installed. I will try that.

--Edit

That was it. It works wonderfully now.