As far as I can make out I need an absolute path to the mySchema.xsd
file.
Being inside a DLL, the only way I could see to get this was using the
Assembly.GetAssembly().Location method.
This worked fine on the development machine but on the production
machine the call was returning the root directory.
As a kludge I put mySchema. xsd in the root directory and away we
went.
Would appreciate any thoughts on how to fix this.
thanks
Bob
string path =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
-Drew
"bob" <startatb...@cutthis.adriley.co.nz> wrote in message
news:5in4245tcbunqkbe0...@4ax.com...
The problem is that GetExecutingAssembly.Location passes back a valid
location on the development machine and the root directory on the
production machine.
I will post the result.
thanks
Bob
On Wed, 7 May 2008 22:15:16 -0500, "DrewCE" <moc.sgodniahc@werd -
backwards> wrote:
>Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
this might be what you are looking for..I have not tried it myself..
Assembly.GetEntryAssembly().Location.
On Wed, 7 May 2008 22:15:16 -0500, "DrewCE" <moc.sgodniahc@werd -
backwards> wrote: