September 18, 2006 at 4:17 pm
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
September 19, 2006 at 6:00 am
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
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply