N
Nathan Kovac
I am not sure why this wasn't sent last week. I keep posting a reply but it
just doesn't go. Here it is again.
I have inserted answers below. By the way the error is back today, so if
you want me to get any additional information about the error this would be
the time to do it.
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?
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;
/// 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(lcAssemblyDll);
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");
}
just doesn't go. Here it is again.
I have inserted answers below. By the way the error is back today, so if
you want me to get any additional information about the error this would be
the time to do it.
Willy Denoyette said: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?
The dll's are installed to the same folder as the rest of the application.Where are these dll's located?
SystemMethods.dllWhat dependencies do they have?
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;
/// <summary>What's are you using in AddAssembly to locate/load the DLL's?
/// 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(lcAssemblyDll);
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");
}