Msg 6501 - Can''t Create Assemblies

  • I'm unable to create assemblies based on .dll files I've successfully created in C#.  I've tried this with the most basic programs, such as this:

    using System;

    namespace newfileNamespace

    {

     class newfile

     { 

      public static void Main(string[] args)

      {

       Console.WriteLine("Hello World!");

      }

     }

    }

    I compile my .dll using this command string from within Eclipse 3.2.0:

    /target:library ${resource_name} /reference:"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlaccess.dll"

    I then try to create my assembly with this statement:

    create

    assembly match

    from

    'C:\Documents and Settings\jeff seeman\workspace\mycsharp\newfile.dll'

    GO

    Boom!  I get the dreaded Msg 6501 error everytime, with its accompanying explanation:  "... could not open the physical file ..."

    I know that my path is correct, because I've checked it over and over.  Does anyone know what I'm doing wrong?

    Thanks.

    Jeff Seeman

     

  • I think it has to do with the filepath containing a space between 'jeff seeman' and 'Documents and Settings' as well;

    so it finds the file 'c:\Documents' and fails.

    if a filepath has spaces, it must be wrapped in dbl quotes:

    create assembly match

    from

    '"C:\Documents and Settings\jeff seeman\workspace\mycsharp\newfile.dll"'

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply