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

  • SEARCH
  • Home
  • 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
  • 1 View
  • 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

First off: ASP.NET Web Application project with SQL Server 2008 I have inherited an
I have inherited couple of .Net (C#) application which does not have any tracing
I have a ASP.NET application I've inherited from the person who did my job
I have inherited a reasonable sized ASP.net solution that has no automated tests. The
First of all, I have no experiences with ASP.NET WebForms. However, I inherited a
I've been developing an application using asp.net MVC, and I have some configurations that
I have inherited an ASP.NET 1.1 web application. On the page there are various
In a .NET application, if you have specific Settings need, such as storing them
I've inherited a .NET application that automatically updates it's version number with each release.
I am fairly new in asp.net development, so you can say that I have

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.