Reputation: 76
After a recent update on VS2017. I'm seeing lots of Late binding errors on all projects.
The errors are showing because Option Script of set to on somewhere, but all my projects have the option Option Strict set to Off.
On some projects even if I set Option Strict to Off in the page code behind, I still get the error.
Sometimes if I try to reference Microsoft Visual Basic in the project, the errors go away, sometimes not.
Anyone else experiencing this problem? Any ideas how to fix?
Upvotes: 5
Views: 2206
Reputation: 76
This problem has now been Fixed in release 15.5.2.
You might have to save a project with Option Strict On then save with Option Strict Off. I didn't have to do that.
Upvotes: 0
Reputation: 56
pLease have a look at https://developercommunity.visualstudio.com/content/problem/160609/vb-option-strict-on-warnings-are-shown-on-existing.html So MS is already aware of the bug and proposes another workaround.
Upvotes: 2
Reputation: 51
I'm facing the same problem. The workaround I found is: 1. Turn option strict ON 2. Compile your project (will not succeed due to option strict on) 3. Turn option strict OFF 4. Compile your project (compilation success and no more errors)
Upvotes: 0