Results 1 to 8 of 8

Thread: Simple Question--Simple Answer? - No accessible 'Main' method

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Simple Question--Simple Answer? - No accessible 'Main' method

    Working on creating just a simple Forms Class (dll) -- just one form that can be used from multiple apps. Whenever I attempt to build I get this error and the build fails..

    ------ Build started: Project: XYZCorp.Security.Maintenance, Configuration: Debug Any CPU ------
    Preparing resources...
    Updating references...
    Performing main compilation...
    error VR8001: No accessible 'Main' method with an appropriate signature was found.
    Build complete -- 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

    Using ------ Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727


    HELP.....


    Thanks

    gollnick
    __________________
    William E Gollnick
    William E Gollnick

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Did you use Windows Class Library project type?
    "The dark side clouds everything. Impossible to see the future is."

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Yupper..... Windows Class Library

    gollnick
    William E Gollnick

  4. #4
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Its should build fine even without code.Make sure project properties that startup object set to none.
    "The dark side clouds everything. Impossible to see the future is."

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Hmm... was set at Begsr Main..... after failed looked again it was blank
    Still no luck
    William E Gollnick

  6. #6
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Well i don't what else to suggest.
    "The dark side clouds everything. Impossible to see the future is."

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Thanks anyway.. Wonder if anybody else has an idea..

    gollnick
    William E Gollnick

  8. #8
    Hyperactive Member cptHotkeys's Avatar
    Join Date
    Apr 2007
    Location
    New Zealand
    Posts
    294

    Re: Simple Question--Simple Answer? - No accessible 'Main' method

    Are you trying to make a new form, skinned or something?

    Signatures suck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width