locked
Could not load type 'DataClassesDataContext' VS2017 RRS feed

  • Question

  • SECONDTIME ASKING.  FIRST TIME, WAS TOLD TO INSTALL LINK TO SQL TOOLS.  INSTALLED.  DID NOT RESOLVE.  PROBLEM STILL EXISTS.  HELP!

        Moving code from VS2008 (written by someone else) into VS2017.  Compiles but page crashes.

    COULD NOT LOAD TYPE 'DataClassesDataContext'.

    <

    asp:LinqDataSourceID="LinqDataSource1"runat="server"ContextTypeName="DataClassesDataContext"TableName="Actuals" EnableUpdate="True"OrderBy="sDate"Where="sDate &gt;= @sDate">     

    <WhereParameters>     

    <asp:SessionParameterName="sDate"SessionField="Today"Type="DateTime"/>                   

    </WhereParameters>                

    </asp:LinqDataSource>

    Others with similar problem were told to do "Project" --> "Add New Item" --> "Linq to SQL", which doesn't show up in my VS2017.

    Is there a way to resolve without having to rewrite this web page?  If so, how? 

    Thanks

    Monday, October 22, 2018 6:29 PM

All replies

  • Hi KLGreene,

    >>Others with similar problem were told to do "Project" --> "Add New Item" --> "Linq to SQL", which doesn't show up in my VS2017.

    According to your description, It is visual studio installation issue, I would suggest that you could post your issue visual studio forum for suitable support.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral

    >>Is there a way to resolve without having to rewrite this web page?  If so, how? 

    Based on your code, it seems that it is a asp.net web control, I would suggest that you could post your issue on asp.net forum for suitable support.

    https://forums.asp.net/24.aspx/1?Web+Forms+Data+Controls

    Thanks for your understanding.

    Best regards,

    Zhanglong 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 23, 2018 1:34 AM