Results 1 to 3 of 3

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


    Thanks

    gollnick
    William E Gollnick

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

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

    You're trying to build your project as an application, which needs a main method as an entry point. Change the assembly type to a class library in the project properties.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

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

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

    Thanks ...... worked
    William E Gollnick

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