I am trying to create a dll that I can call from my web pages. The problem
is that it doesn't work the same way as a web page that calls the web
services.
I created a Library Project and added a web reference: RemoteUser, just like
I do in my Web Page.
I have the following:
************************************************** ****************
using System;
using MyFunctions.RemoteUser;
namespace MyFunctions
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class NewHire
{
public static int AddNewHire()
{
RemoteUserServiceService remoteUserService = new
RemoteUserServiceService();
RemoteUserDataBean ruDataBean;
ruDataBean = remoteUserService.fetchRemoteUserInfo(
"st",
"sw",
"10.0.0.5",
"C", //Client (employer)
"150");
if (ruDataBean.errorCode == 0)
{
return 0;
}
else
{
return;
}
}
}
}
**************************************************
In my Web Page, I append the reference name with the Namespace
(MyFunctions.RemoteUser). In the Dll, this does not seem to be the case.
The error I get when I try to build is:
C:\VSProjects\ClassLibrary4\NewHire.cs(3): The type or namespace name
'RemoteUser' does not exist in the class or namespace 'MyFunctions' (are you
missing an assembly reference?)
What am I missing here?
This code comes directly from my Web Page.
Thanks,
Tom