question

Aparna-4624 avatar image
0 Votes"
Aparna-4624 asked YijingSun-MSFT answered

Upgrading to .NET Framework 4.8 removes .xsd designer files

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.

dotnet-aspnet-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YijingSun-MSFT avatar image
0 Votes"
YijingSun-MSFT answered

@Aparna-4624 ,
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.