I am facing the following error in my VB.NET web app:
compiler executable file vbc.exe cannot be found.
I installed .net framework again and even the IDE, but this error remains. Please help.
I've just run into this myself while play with the CodeDom. If you are manually setting the version you probably have a some code that looks like:
Dim providerOptions = New Collections.Generic.Dictionary(Of String, String)
providerOptions.Add("CompilerVersion", "v4.0")
Dim provider As New VBCodeProvider(providerOptions)
If you forget the "v" and have "4.0" as the value in your dictionary item, you will get this error.
I'd guess that you're missing a path to it or something like that. Try going to look in the [Your Windows Dir]\Microsoft.NET\Framework and go into the sub folders there and see if there isn't a vbc.exe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With