Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a website that runs, I didn't make any changes to it for a while. VS2019 notified about the available update and I ran it. Then, when I opened my website, I have 99 errors regarding WithEvents. All controls in .vb files underlined red, can't debug, and any changes I make (like adding a new control) won't reflect in run time. I have .design files and all controls are in it declared correctly (WithEvents). The website works btw.

VB
'code:
lblID.Text = i.student_id.ToString 

'design:
Protected WithEvents lblID As Global.System.Web.UI.WebControls.Label



Thank you!

What I have tried:

I tried to remove/add controls. I tried to create a new website, new .asp/.vb pages. Copying the code from the old ones gave me the same errors.
Posted
Updated 27-Mar-22 21:08pm
v2
Comments
CHill60 25-Mar-22 5:26am    
Barboskin 25-Mar-22 9:44am    
I reinstalled VS. Didn't help. It happens only to this one website.
CHill60 25-Mar-22 9:48am    
None of the suggestions on that link were to re-install VS so I guess you didn't try them
Barboskin 25-Mar-22 12:05pm    
I did it before I read your comment. I'll try it now.
Barboskin 26-Mar-22 0:37am    
I did follow the steps recommended. No change. Still the same errors. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900