Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4346768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:13:01+00:00 2026-05-21T12:13:01+00:00

I have inherited a VB.NET application that I need to compile so I can

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T12:13:02+00:00Added an answer on May 21, 2026 at 12:13 pm

    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.

    As opposed to, say, fixing the error? Pardon my sarcasm but you have chosen the wrong fix: instead of disabling Option Strict you should fix the error that the compiler indicated. After all, the whole point of Option Strict is to help make the code more robust.

    That said, there are four places which control Option Strict (and all other options):

    1. The Visual Studio options which control project defaults,
    2. The project settings,
    3. The web.config compiler command line,
    4. On file basis, the top lines of a source code file.

    Check that Option Strict is off in places 2., 3. and 4. and that it is on in place 1 (because turning Option Strict Off in 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:

    <system.codedom>
        <compilers>
            <compiler compilerOptions ="/optionstrict-" language="vb;vbs;visualbasic;vbscript"
                      extension=".vb"
                      type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        </compilers>
    </system.codedom> 
    

    … probably there already exists a <compiler> node – modify that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited an application that uses the ASP.NET membership provider for user management.
I have inherited a project that has class libraries written in VB.NET, some of
I have a .NET project that's always been built/run by/on 32 bit machines. I
I have a legacy application that I inherited that passes a lot of XML
I've inherited a web application written in ASP.NET that has an incomplete implementation of
I have inherited a working VB.NET 2.0 web app that has several User Controls
I am fairly new in asp.net development, so you can say that I have
I have inherited an asp.net website to maintain when looking at the aspx page,
StackOverflow, you're my only hope! I am unfortunate enough to have inherited an ASP.NET
I have inherited a class in vb.net and when I create the object, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.