473,416 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Meta Data not found when using a Windows Service

Yesterday afternoon I was getting the following errors in a windows service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process and
the errors are no longer there. Only thing I can think of is if logging off
and back on did something. I should also note that yesterday visual studio
crashed on me when I had the solution open and tried to connect to the
windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan
Nov 17 '05 #1
6 2144
Nathan,

Are all of these your dlls? Are these exceptions that are being thrown
and logged? If so, what are the types of the exceptions, as well as the
other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process and
the errors are no longer there. Only thing I can think of is if logging
off and back on did something. I should also note that yesterday visual
studio crashed on me when I had the solution open and tried to connect to
the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan

Nov 17 '05 #2
Scripting Methods.dll I wrote from scratch.

RemoteLoader.dll and wwScripting.dll are mostly code snippets from others
have done online.

In 'DatabaseManager.DataComponent' which is one I wrote I have the following
method. Notice the error handling. All I logged was e.Message. If you
think I should grab more information for next time please let me know. When
I was debugging with a windows form I was logging to a file. When I made it
a service I discovered I couldn't do that, and at the time I got these
errors I was simply having log dump to the Debug.WriteLine. I will have it
logging to Sql soon.

public void RunEventsByStockID(int stockID, int eventTypeID, int accountID)
{

//Use AccountID=0 to execute event on all accounts

RefreshEventList();

foreach (StockData.EventListRow r in stockData2.EventList)

{

if (r.StockID==stockID && r.EventTypeID==eventTypeID && (accountID==0 ||
accountID==r.AccountID))

{

wwScripting loScript = new wwScripting(r.EventLanguage);

// loScript.CreateAppDomain("MyAppDomain")
// Add any assemblies referenced

loScript.AddAssembly("ScriptingMethods.dll");

loScript.AddNamespace("ScriptingMethods");

System.Text.StringBuilder sb=new System.Text.StringBuilder("");

sb.Append("public string ExecEvent(int accountID, int eventTypeID, int
stockID, string sqlConnectionString) {");

sb.Append("\r\n");

sb.Append("ScriptingMethods.StockMethods Stock=new
ScriptingMethods.StockMethods(accountID, eventTypeID, stockID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append("ScriptingMethods.AccountMethods Account=new
ScriptingMethods.AccountMethods(accountID, eventTypeID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append(@"string LogMessage=""Blank Log Message"";");

sb.Append("\r\n");

sb.Append(r.EventCode);

sb.Append("\r\n");

sb.Append("return LogMessage;");

sb.Append("\r\n");

sb.Append("}");

sb.Append("\r\n");

string code=sb.ToString();

object objResult=loScript.ExecuteMethod(code, "ExecEvent", r.AccountID,
r.EventTypeID, r.StockID, this.sqlConnectionString);

string lcResult;

try{

lcResult=(string) objResult;

}

catch(Exception e)

{

lcResult=e.Message;

}
if (loScript.bError)

{

log.LogText(this.ToString(),"Error",loScript.cErro rMsg);

}

else

{

if(lcResult.Length>0)

log.LogText(this.ToString(),"Result",lcResult);

}

loScript.Dispose();

}

}

}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP14.phx.gbl...
Nathan,

Are all of these your dlls? Are these exceptions that are being thrown
and logged? If so, what are the types of the exceptions, as well as the
other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process
and the errors are no longer there. Only thing I can think of is if
logging off and back on did something. I should also note that yesterday
visual studio crashed on me when I had the solution open and tried to
connect to the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan


Nov 17 '05 #3
What's the identity of the service account?
Where are these dll's located?
What dependencies do they have?
What's are you using in AddAssembly to locate/load the DLL's?

Willy.

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Scripting Methods.dll I wrote from scratch.

RemoteLoader.dll and wwScripting.dll are mostly code snippets from others
have done online.

In 'DatabaseManager.DataComponent' which is one I wrote I have the
following method. Notice the error handling. All I logged was e.Message.
If you think I should grab more information for next time please let me
know. When I was debugging with a windows form I was logging to a file.
When I made it a service I discovered I couldn't do that, and at the time
I got these errors I was simply having log dump to the Debug.WriteLine. I
will have it logging to Sql soon.

public void RunEventsByStockID(int stockID, int eventTypeID, int
accountID)
{

//Use AccountID=0 to execute event on all accounts

RefreshEventList();

foreach (StockData.EventListRow r in stockData2.EventList)

{

if (r.StockID==stockID && r.EventTypeID==eventTypeID && (accountID==0 ||
accountID==r.AccountID))

{

wwScripting loScript = new wwScripting(r.EventLanguage);

// loScript.CreateAppDomain("MyAppDomain")
// Add any assemblies referenced

loScript.AddAssembly("ScriptingMethods.dll");

loScript.AddNamespace("ScriptingMethods");

System.Text.StringBuilder sb=new System.Text.StringBuilder("");

sb.Append("public string ExecEvent(int accountID, int eventTypeID, int
stockID, string sqlConnectionString) {");

sb.Append("\r\n");

sb.Append("ScriptingMethods.StockMethods Stock=new
ScriptingMethods.StockMethods(accountID, eventTypeID, stockID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append("ScriptingMethods.AccountMethods Account=new
ScriptingMethods.AccountMethods(accountID, eventTypeID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append(@"string LogMessage=""Blank Log Message"";");

sb.Append("\r\n");

sb.Append(r.EventCode);

sb.Append("\r\n");

sb.Append("return LogMessage;");

sb.Append("\r\n");

sb.Append("}");

sb.Append("\r\n");

string code=sb.ToString();

object objResult=loScript.ExecuteMethod(code, "ExecEvent", r.AccountID,
r.EventTypeID, r.StockID, this.sqlConnectionString);

string lcResult;

try{

lcResult=(string) objResult;

}

catch(Exception e)

{

lcResult=e.Message;

}
if (loScript.bError)

{

log.LogText(this.ToString(),"Error",loScript.cErro rMsg);

}

else

{

if(lcResult.Length>0)

log.LogText(this.ToString(),"Result",lcResult);

}

loScript.Dispose();

}

}

}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Nathan,

Are all of these your dlls? Are these exceptions that are being
thrown and logged? If so, what are the types of the exceptions, as well
as the other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process
and the errors are no longer there. Only thing I can think of is if
logging off and back on did something. I should also note that
yesterday visual studio crashed on me when I had the solution open and
tried to connect to the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan



Nov 17 '05 #4
I have inserted answers below. I won't be able to check this again until
tomorrow.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
What's the identity of the service account?
I don't know what you mean by identity of the service account. The name of
the service is StockMgrService. Where do I look for this Identity?
Where are these dll's located? The dll's are installed to the same folder as the rest of the application.
What dependencies do they have? SystemMethods.dll
System
System.Data
System.XML
using System;

using System.Data;

using System.Diagnostics;
RemoteLoader.dll
System
using System;

using System.Reflection;

wwScripting.dll
RemoteLoader
System
System.Data
using System;

using System.IO;

using System.Text;

using Microsoft.CSharp;

using Microsoft.VisualBasic;

using System.Reflection;

using System.Runtime.Remoting;

using System.CodeDom.Compiler;
What's are you using in AddAssembly to locate/load the DLL's? /// <summary>

/// Adds an assembly to the compiled code

/// </summary>

/// <param name="lcAssemblyDll">DLL assembly file name</param>

/// <param name="lcNamespace">Namespace to add if any. Pass null if no
namespace is to be added</param>

public void AddAssembly(string lcAssemblyDll,string lcNamespace)

{

if (lcAssemblyDll==null && lcNamespace == null)

{

// *** clear out assemblies and namespaces

this.oParameters.ReferencedAssemblies.Clear();

this.cNamespaces = "";

return;

}
if (lcAssemblyDll != null)

this.oParameters.ReferencedAssemblies.Add(lcAssemb lyDll);
if (lcNamespace != null)

if (this.cScriptingLanguage == "CSharp")

this.cNamespaces = this.cNamespaces + "using " + lcNamespace + ";\r\n";

else

this.cNamespaces = this.cNamespaces + "imports " + lcNamespace + "\r\n";

}

/// <summary>

/// Adds an assembly to the compiled code.

/// </summary>

/// <param name="lcAssemblyDll">DLL assembly file name</param>

public void AddAssembly(string lcAssemblyDll)

{

this.AddAssembly(lcAssemblyDll,null);

}

public void AddNamespace(string lcNamespace)

{

this.AddAssembly(null,lcNamespace);

}

public void AddDefaultAssemblies()

{

this.AddAssembly("System.dll","System");

this.AddNamespace("System.Reflection");

this.AddNamespace("System.IO");

}


Willy.

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Scripting Methods.dll I wrote from scratch.

RemoteLoader.dll and wwScripting.dll are mostly code snippets from others
have done online.

In 'DatabaseManager.DataComponent' which is one I wrote I have the
following method. Notice the error handling. All I logged was
e.Message. If you think I should grab more information for next time
please let me know. When I was debugging with a windows form I was
logging to a file. When I made it a service I discovered I couldn't do
that, and at the time I got these errors I was simply having log dump to
the Debug.WriteLine. I will have it logging to Sql soon.

public void RunEventsByStockID(int stockID, int eventTypeID, int
accountID)
{

//Use AccountID=0 to execute event on all accounts

RefreshEventList();

foreach (StockData.EventListRow r in stockData2.EventList)

{

if (r.StockID==stockID && r.EventTypeID==eventTypeID && (accountID==0 ||
accountID==r.AccountID))

{

wwScripting loScript = new wwScripting(r.EventLanguage);

// loScript.CreateAppDomain("MyAppDomain")
// Add any assemblies referenced

loScript.AddAssembly("ScriptingMethods.dll");

loScript.AddNamespace("ScriptingMethods");

System.Text.StringBuilder sb=new System.Text.StringBuilder("");

sb.Append("public string ExecEvent(int accountID, int eventTypeID, int
stockID, string sqlConnectionString) {");

sb.Append("\r\n");

sb.Append("ScriptingMethods.StockMethods Stock=new
ScriptingMethods.StockMethods(accountID, eventTypeID, stockID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append("ScriptingMethods.AccountMethods Account=new
ScriptingMethods.AccountMethods(accountID, eventTypeID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append(@"string LogMessage=""Blank Log Message"";");

sb.Append("\r\n");

sb.Append(r.EventCode);

sb.Append("\r\n");

sb.Append("return LogMessage;");

sb.Append("\r\n");

sb.Append("}");

sb.Append("\r\n");

string code=sb.ToString();

object objResult=loScript.ExecuteMethod(code, "ExecEvent", r.AccountID,
r.EventTypeID, r.StockID, this.sqlConnectionString);

string lcResult;

try{

lcResult=(string) objResult;

}

catch(Exception e)

{

lcResult=e.Message;

}
if (loScript.bError)

{

log.LogText(this.ToString(),"Error",loScript.cErro rMsg);

}

else

{

if(lcResult.Length>0)

log.LogText(this.ToString(),"Result",lcResult);

}

loScript.Dispose();

}

}

}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Nathan,

Are all of these your dlls? Are these exceptions that are being
thrown and logged? If so, what are the types of the exceptions, as well
as the other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process
and the errors are no longer there. Only thing I can think of is if
logging off and back on did something. I should also note that
yesterday visual studio crashed on me when I had the solution open and
tried to connect to the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan



Nov 17 '05 #5
I am not sure why this wasn't sent last week. Here it is again.

I have inserted answers below. I won't be able to check this again until
tomorrow.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
What's the identity of the service account?
I don't know what you mean by identity of the service account. The name of
the service is StockMgrService. Where do I look for this Identity?
Where are these dll's located? The dll's are installed to the same folder as the rest of the application.
What dependencies do they have? SystemMethods.dll
System
System.Data
System.XML
using System;

using System.Data;

using System.Diagnostics;
RemoteLoader.dll
System
using System;

using System.Reflection;

wwScripting.dll
RemoteLoader
System
System.Data
using System;

using System.IO;

using System.Text;

using Microsoft.CSharp;

using Microsoft.VisualBasic;

using System.Reflection;

using System.Runtime.Remoting;

using System.CodeDom.Compiler;
What's are you using in AddAssembly to locate/load the DLL's? /// <summary>

/// Adds an assembly to the compiled code

/// </summary>

/// <param name="lcAssemblyDll">DLL assembly file name</param>

/// <param name="lcNamespace">Namespace to add if any. Pass null if no
namespace is to be added</param>

public void AddAssembly(string lcAssemblyDll,string lcNamespace)

{

if (lcAssemblyDll==null && lcNamespace == null)

{

// *** clear out assemblies and namespaces

this.oParameters.ReferencedAssemblies.Clear();

this.cNamespaces = "";

return;

}
if (lcAssemblyDll != null)

this.oParameters.ReferencedAssemblies.Add(lcAssemb lyDll);
if (lcNamespace != null)

if (this.cScriptingLanguage == "CSharp")

this.cNamespaces = this.cNamespaces + "using " + lcNamespace + ";\r\n";

else

this.cNamespaces = this.cNamespaces + "imports " + lcNamespace + "\r\n";

}

/// <summary>

/// Adds an assembly to the compiled code.

/// </summary>

/// <param name="lcAssemblyDll">DLL assembly file name</param>

public void AddAssembly(string lcAssemblyDll)

{

this.AddAssembly(lcAssemblyDll,null);

}

public void AddNamespace(string lcNamespace)

{

this.AddAssembly(null,lcNamespace);

}

public void AddDefaultAssemblies()

{

this.AddAssembly("System.dll","System");

this.AddNamespace("System.Reflection");

this.AddNamespace("System.IO");

}


Willy.

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Scripting Methods.dll I wrote from scratch.

RemoteLoader.dll and wwScripting.dll are mostly code snippets from others
have done online.

In 'DatabaseManager.DataComponent' which is one I wrote I have the
following method. Notice the error handling. All I logged was
e.Message. If you think I should grab more information for next time
please let me know. When I was debugging with a windows form I was
logging to a file. When I made it a service I discovered I couldn't do
that, and at the time I got these errors I was simply having log dump to
the Debug.WriteLine. I will have it logging to Sql soon.

public void RunEventsByStockID(int stockID, int eventTypeID, int
accountID)
{

//Use AccountID=0 to execute event on all accounts

RefreshEventList();

foreach (StockData.EventListRow r in stockData2.EventList)

{

if (r.StockID==stockID && r.EventTypeID==eventTypeID && (accountID==0 ||
accountID==r.AccountID))

{

wwScripting loScript = new wwScripting(r.EventLanguage);

// loScript.CreateAppDomain("MyAppDomain")
// Add any assemblies referenced

loScript.AddAssembly("ScriptingMethods.dll");

loScript.AddNamespace("ScriptingMethods");

System.Text.StringBuilder sb=new System.Text.StringBuilder("");

sb.Append("public string ExecEvent(int accountID, int eventTypeID, int
stockID, string sqlConnectionString) {");

sb.Append("\r\n");

sb.Append("ScriptingMethods.StockMethods Stock=new
ScriptingMethods.StockMethods(accountID, eventTypeID, stockID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append("ScriptingMethods.AccountMethods Account=new
ScriptingMethods.AccountMethods(accountID, eventTypeID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append(@"string LogMessage=""Blank Log Message"";");

sb.Append("\r\n");

sb.Append(r.EventCode);

sb.Append("\r\n");

sb.Append("return LogMessage;");

sb.Append("\r\n");

sb.Append("}");

sb.Append("\r\n");

string code=sb.ToString();

object objResult=loScript.ExecuteMethod(code, "ExecEvent", r.AccountID,
r.EventTypeID, r.StockID, this.sqlConnectionString);

string lcResult;

try{

lcResult=(string) objResult;

}

catch(Exception e)

{

lcResult=e.Message;

}
if (loScript.bError)

{

log.LogText(this.ToString(),"Error",loScript.cErro rMsg);

}

else

{

if(lcResult.Length>0)

log.LogText(this.ToString(),"Result",lcResult);

}

loScript.Dispose();

}

}

}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Nathan,

Are all of these your dlls? Are these exceptions that are being
thrown and logged? If so, what are the types of the exceptions, as well
as the other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process
and the errors are no longer there. Only thing I can think of is if
logging off and back on did something. I should also note that
yesterday visual studio crashed on me when I had the solution open and
tried to connect to the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan




Nov 17 '05 #6
I keep posting a reply but it isn't going.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u0**************@TK2MSFTNGP12.phx.gbl...
What's the identity of the service account?
Where are these dll's located?
What dependencies do they have?
What's are you using in AddAssembly to locate/load the DLL's?

Willy.

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Scripting Methods.dll I wrote from scratch.

RemoteLoader.dll and wwScripting.dll are mostly code snippets from others
have done online.

In 'DatabaseManager.DataComponent' which is one I wrote I have the
following method. Notice the error handling. All I logged was
e.Message. If you think I should grab more information for next time
please let me know. When I was debugging with a windows form I was
logging to a file. When I made it a service I discovered I couldn't do
that, and at the time I got these errors I was simply having log dump to
the Debug.WriteLine. I will have it logging to Sql soon.

public void RunEventsByStockID(int stockID, int eventTypeID, int
accountID)
{

//Use AccountID=0 to execute event on all accounts

RefreshEventList();

foreach (StockData.EventListRow r in stockData2.EventList)

{

if (r.StockID==stockID && r.EventTypeID==eventTypeID && (accountID==0 ||
accountID==r.AccountID))

{

wwScripting loScript = new wwScripting(r.EventLanguage);

// loScript.CreateAppDomain("MyAppDomain")
// Add any assemblies referenced

loScript.AddAssembly("ScriptingMethods.dll");

loScript.AddNamespace("ScriptingMethods");

System.Text.StringBuilder sb=new System.Text.StringBuilder("");

sb.Append("public string ExecEvent(int accountID, int eventTypeID, int
stockID, string sqlConnectionString) {");

sb.Append("\r\n");

sb.Append("ScriptingMethods.StockMethods Stock=new
ScriptingMethods.StockMethods(accountID, eventTypeID, stockID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append("ScriptingMethods.AccountMethods Account=new
ScriptingMethods.AccountMethods(accountID, eventTypeID,
sqlConnectionString);");

sb.Append("\r\n");

sb.Append(@"string LogMessage=""Blank Log Message"";");

sb.Append("\r\n");

sb.Append(r.EventCode);

sb.Append("\r\n");

sb.Append("return LogMessage;");

sb.Append("\r\n");

sb.Append("}");

sb.Append("\r\n");

string code=sb.ToString();

object objResult=loScript.ExecuteMethod(code, "ExecEvent", r.AccountID,
r.EventTypeID, r.StockID, this.sqlConnectionString);

string lcResult;

try{

lcResult=(string) objResult;

}

catch(Exception e)

{

lcResult=e.Message;

}
if (loScript.bError)

{

log.LogText(this.ToString(),"Error",loScript.cErro rMsg);

}

else

{

if(lcResult.Length>0)

log.LogText(this.ToString(),"Result",lcResult);

}

loScript.Dispose();

}

}

}

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Nathan,

Are all of these your dlls? Are these exceptions that are being
thrown and logged? If so, what are the types of the exceptions, as well
as the other details?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nathan Kovac" <na**@tctelco.net> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Yesterday afternoon I was getting the following errors in a windows
service:

'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'

Service ran all night fine. This morning I reconnected to the process
and the errors are no longer there. Only thing I can think of is if
logging off and back on did something. I should also note that
yesterday visual studio crashed on me when I had the solution open and
tried to connect to the windows service project.

Does anyone with a better understanding of the CLR have any possible
explaination for the inconsistant errors?

Thanks,
Nathan



Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dylan | last post by:
Hello, I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/ BuildingHelloWorld.aspx). I need to get the meta data from my service usin svcutil.exe why is not working? Please see...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.