[CLOSED] Restricion in nesting Ext.Net.Controls?

Page 2 of 5 FirstFirst 1234 ... LastLast
  1. #11
    Does restarting VS help?
  2. #12
    restarting VS doesn't help :( restore default settings of VS neither.

    I'm starting to think I'm curse or something:P
  3. #13
    Well, I believe you are not:)

    Could you provide more details about the problem? How exactly are things going?
  4. #14
    Quote Originally Posted by Daniil View Post
    Well, I believe you are not:)

    Could you provide more details about the problem? How exactly are things going?
    I was be able to add Reference it's simply start working today.... but I when I start my project i got this error :

    Could not load file or assembly 'Ext.Net.Utilities, Version=1.3.0.39155, Culture=neutral, PublicKeyToken=2c34ac34702a3c23' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    but the Version of this utilities I got is 2.0.0.189 and in *.csproj version is correct and *.dll got 2.0.0.189 version.

    What can cause this weird behaviour?
  5. #15
    It looks like you have mixed up Ext.NET v1 and v2.
  6. #16
    Quote Originally Posted by Daniil View Post
    It looks like you have mixed up Ext.NET v1 and v2.
    hmm but I'm using same *.dll that are working on another project.
  7. #17
    Well, just the following items
    Quote Originally Posted by ViDom View Post
    Could not load file or assembly 'Ext.Net.Utilities, Version=1.3.0.39155
    and
    Quote Originally Posted by ViDom View Post
    but the Version of this utilities I got is 2.0.0.189 and in *.csproj version is correct and *.dll got 2.0.0.189 version.
    looks inconsistent.

    Please clarify what Ext.NET version do you use and how have you got the assemblies?
  8. #18
    If you're manually adding a Reference to the Ext.Net.dll, then you must also add the proper versions of the Ext.Net. Utilities.dll and Newtonsoft.Json.dll.

    If any of the above References are already present, then you first delete those Assembly References.

    Ext.Net.dll
    Ext.Net.Utilities.dll
    Newtonsoft.Json.dll
    Transformer.NET.dll <-- Ext.NET 2.x only.

    All the above (except Transformer.NET in v1.x) must be added at the same time using the .dll's that were compiled together.

    The error you are receiving is because you're using one version of Ext.Net.dll which was compiled against a different version of Ext.Net.Utilities.dll.

    Hope this helps.
    Geoffrey McGill
    Founder
  9. #19
    Now I get latest version from nuget.

    And changed a little structure of Daniil sample.

    Got error "Unknown server tag 'ext:BorderLayout'." when I trying to LoadControl from code behind

    here is my structure:

    root:
    master.page
    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Page.master.cs" Inherits="ExtNetLayouts.Page" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel
                        runat="server"
                        Region="North"
                        Title="Main North"
                        Height="200" />
                    <ext:Panel runat="server" Region="Center" Title="Main Center">
                        <Content>
                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" />
                        </Content>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
    next is Default.aspx:
    <%@ Page Language="C#" MasterPageFile="Page.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ExtNetLayouts.Default" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register TagPrefix="uc" Namespace="ExtNetLayouts.controls" Assembly="ExtNetLayouts" %>
     
     
    
    <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <uc:SpecialControlContainer runat="server"/>
    </asp:Content>
    next is SpecialControlContainer.ascx:
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SpecialControlContainer.ascx.cs" Inherits="ExtNetLayouts.controls.SpecialControlContainer" %>
    <%@ Import Namespace="ExtNetLayouts.controls" %>
    
    <script runat="server">
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            someControlBorderLayout someControlBorderLayout = (someControlBorderLayout)LoadControl("~/controls/someControlBorderLayout.ascx");
            this.Controls.Add(someControlBorderLayout);
        }
    
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
    </script>
    
    <ext:Container runat="server" ID="pnContainer">
        <Items>
            <ext:Button runat="server" ID="btnSample" Text="button" Icon="ErrorAdd" Cls="topButton"></ext:Button>
        </Items>
    </ext:Container>
    and last one is control with borderLayout someControlBorderLayout.ascx:
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="someControlBorderLayout.ascx.cs" Inherits="ExtNetLayouts.controls.someControlBorderLayout" %>
    
    <%@ Register TagPrefix="ext" Namespace="Ext.Net" assembly="Ext.Net" %>
     
    <ext:BorderLayout runat="server">
        <North>
            <ext:Panel runat="server" Title="Nested North" Height="100" />
        </North>
        <Center>
            <ext:Panel runat="server" Title="Nested Center" />
        </Center>
    </ext:BorderLayout>
    Any ideas why it's make error? Did v2.0 rc2 remove borderLayout?

    I need to do this in v1.3 but can't find *.dll from this build :(
  10. #20
    There are no layout controls in Ext.NET v2 anymore, the changelog item #34:
    https://examples2.ext.net/#/Getting_...nts/CHANGELOG/

    I need to do this in v1.3 but can't find *.dll from this build :(
    I would just update to v1.5.
    http://ext.net/download

    Anyways, v1.3 sources you can find here:
    https://github.com/extnet/Ext.NET.Community/tree/1.3.0
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Replies: 1
    Last Post: Jul 20, 2012, 8:08 AM
  2. [CLOSED] How should I nested ext.net.controls with user controls?
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 04, 2012, 11:14 AM
  3. Replies: 5
    Last Post: Nov 03, 2011, 2:39 AM
  4. Replies: 2
    Last Post: Feb 16, 2011, 9:10 AM
  5. Replies: 0
    Last Post: Jan 05, 2011, 6:48 AM

Tags for this Thread

Posting Permissions