Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiler executable file vbc.exe cannot be found

Tags:

vb.net

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.

like image 631
Asad Avatar asked Jan 28 '26 13:01

Asad


2 Answers

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.

like image 115
wdh Avatar answered Jan 30 '26 02:01

wdh


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.

like image 27
Hans Olsson Avatar answered Jan 30 '26 01:01

Hans Olsson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!