Upgrading to .NET Framework 4.8 removes .xsd designer files

Aparna 21 Reputation points
2021-10-05T20:01:15.91+00:00

while upgrading to .NET Framework version 4.0 to 4.8, the designer files for dataset .XSD files are removed and when on right click the xsd file --> Run Custom Tool throws a popup window with the error message "Error101 Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown". Also tried to connect to Oracle DB connection from server explorer but was not able to connect to Oracle DB.

Any support is greatly appreciated!!

Thankyou.

Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2021-10-06T02:36:42.863+00:00

    @Aparna ,
    May be you could change the ConnectionStringObject attribute on the Connection node inside the XSD file.And set it to a valid connection string pointing to the database your dataset corresponds to.
    You could refer to below this article:https://stackoverflow.com/questions/17914840/failed-to-generate-code-error-when-compiling-a-asp-net-website-on-a-new-computer

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.