4th attempt to post this

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.


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?
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(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");

}
 
I

Ignacio Machin \( .NET/ C# MVP \)

hi

well this is the first time I see it :)
somedays there are lot of post

First of all, what is the error you are getting?

From willy's post it may be possible that you are having permission
problems, he was refering under what user the project runs.
did you include a ProjectInstaller in the service?
if dont' so do it.
if you did make sure that the "Account" property of the
ServiceProcessInstaller1 is set to LocalSystem


cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top