I have inherited a VB.NET application that I need to compile so I can run dokumentation on it. I first received “Option Strict On disallows implicit conversion from x to y” errors, so I turned off the Option Strict option in the Project file.
So why do I still fail with the same error message?
As opposed to, say, fixing the error? Pardon my sarcasm but you have chosen the wrong fix: instead of disabling
Option Strictyou should fix the error that the compiler indicated. After all, the whole point ofOption Strictis to help make the code more robust.That said, there are four places which control
Option Strict(and all other options):web.configcompiler command line,Check that
Option Strictis off in places 2., 3. and 4. and that it is on in place 1 (because turningOption Strict Offin general is a really, really bad idea). The problem should be gone then.Also try disabling the setting explicitly in the
web.config. I’m going on a limb here but according to forums.asp.net this can be done by adding the following directly inside the<configuration>node:… probably there already exists a
<compiler>node – modify that.