I changed VB 2017 to 2022 and my Imports system.data.Sqlclient turned light color

manny cash

Active member
Joined
Oct 19, 2024
Messages
38
Programming Experience
Beginner
Hi, Guys, Blessing!

I changed my VB 2017 to VB 2022, and my code doesn't work. I had set up my Imports System.Data.SqlClient, and it turned a light color. My connection string doesn't work, and some textboxes and parameters don't work, either. I don't know what I can do. That is something weirder for me, I have no experience solving this situation, so I come back here to ask you for any suggestions.

Thank you very much to all of you.
 
Did you install the framework your project uses?

No, I do not know about that. The 2022 VB.NET doesn't recognize my connection string, but some textboxes in VB 2017 are running well. Also, the parameter for data collection, I tried to fix it with a friend withevents, but nothing worked. I feel frustrated, and I will be working in my old VB 2017.

Thank you
 
Did you install the framework your project uses?

If it's an existing project then, assuming it's still on the same machine, the target framework is already installed. If it's a new project then VS wouldn't let you target a framework that isn't installed.
 
Did you create a new project or did you open an existing project? In either case, what framework is the project targeting?

Yes, I opened a new project, Backup and restore it was a matter of Framework. I put the higher framework 9.0, and my computer is Windows 10. But, now it is running with framework 4.7
This issue is done ! Thanks for your response.
 
Did you install the framework your project uses?

Yes, but I put Framework 9.0, but now it is running with Framework 4.7. When you told me the framework, I went to check it out, I put the 4.7, and it started working as a charm

Thank you, JDelano, for your prompt answer.
 
Back
Top