Trying not to use two seperate libraries

Posted by: jimmcgoldrick on 3 March 2020, 8:11 am EST

  • Posted 3 March 2020, 8:11 am EST

    When I compile my ASP.Net 4.6.1 Project I get the following error:

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0433: The type ‘C1.Web.Wijmo.Controls.C1GridView.C1GridView’ exists in both ‘c:\Users\Jim\AppData\Local\Temp\Temporary ASP.NET Files\root\4b062b66\6358ca2\assembly\dl3\33e9c71d\00011bd6_9b9ad501\C1.Web.Wijmo.Controls.4.DLL’ and ‘c:\Users\Jim\AppData\Local\Temp\Temporary ASP.NET Files\root\4b062b66\6358ca2\assembly\dl3\966180ec\002e4cd7_9b9ad501\C1.Web.Wijmo.Controls.45.DLL’

    Source Error:

    Line 79:

    Thanks for logging in <asp:LoginName id=“LoginName1” runat=“Server”></asp:LoginName>.



    Line 80:

    Line 81: <wijmo:C1GridView ID=“grdAwaitingClientGrid” runat=“server” AllowVirtualScrolling=“False” AutogenerateColumns=“False” OnRowCommand=“grdAwaitingClientGrid_RowCommand” Culture=“en-GB” FreezingMode=“None” RowHeight=“19” ScrollMode=“None” StaticColumnIndex=“-1” StaticRowIndex=“-1”>

    Line 82:

    Line 83: <wijmo:C1ButtonField ButtonType=“Button” CommandName=“Allocate” Text=“Allocate” >

    I can see it is trying to use the old and the new Wijmo Libraries, but I can’t identify where it is referencing the old one. I am using Windows 10 home, Visual Studio 2013 and the latest control files

  • Posted 4 March 2020, 4:25 am EST

    Hi,

    It seems you have added the references for both the 4.0 and 4.5 control. Please create a demo project depicting your issue so that we may investigate it at our end.

    Please also try to check the references for your project.

    Regards,

    Manish Gupta

  • Posted 4 March 2020, 5:32 am EST

    Hi Manish

    Well, I took a sledge hammer to the project and rebuilt it from scratch (checking at every stage that the problem had not re-appeared), and lo, it works fine. I think my mistake was to try to use the new 4.5 libraries with the NET 4.5 project without first upgrading to NET 4.61. When half way through my development I realised and upgraded it, I must have been left with a hybrid (ie, corrupt) software combination. Let me close this case, before I embarrass myself yet further!

  • Posted 8 March 2020, 9:24 pm EST

    Hi,

    Thank you for letting us know the issue cause. There is no need to say sorry since sometimes it is not easy to find the issue cause and we are glad to know that we are able to help you in finding the issue cause.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels