473,503 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remoting and SoapSuds

Hi,
I am creating a remoting server.
In my project reference I have System.Web.dll. I am able to compile and run
it successfully, BUT when I try to create a dll using SoapSuds I am getting
an exception.. Here is my very simple Code:
Console App:
===============================================
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Http

Class TestObjects : Inherits MarshalByRefObject
Public Function SendEmail(ByVal MailMessage As
System.Web.Mail.MailMessage) As Boolean
Try
System.Web.Mail.SmtpMail.SmtpServer = "mail.myserver.com"
System.Web.Mail.SmtpMail.Send(MailMessage)
SendEmail = True
Catch ex As Exception
MsgBox(ex.Message)
SendEmail = False
End Try
End Function
End Class

Module Module1

Sub Main()
Console.WriteLine("ServerStartup.Main(): Server Initializing...")
Dim chn1 As New HttpChannel(8000)
ChannelServices.RegisterChannel(chn1)
RemotingConfiguration.RegisterWellKnownServiceType (GetType(TestObjects),
"remoteOBJ", WellKnownObjectMode.Singleton)
Console.WriteLine("ServerStartup.Main(): Server Started")
Console.ReadLine()
End Sub

End Module

================================================== ===========
When I try go create a dll :
SoapSuds -url:http://MyMachine:8000/remoteOBJ?wsdl -oa:server.dll
================================================== ===========

Exception I get:
c:\Documents and Settings\MyMachine\Local
Settings\Temp\SS180F.tmp\Server.cs(22,45): error CS0234: The type or
namespace name 'Mail' does not exist in the class or namespace 'System.Web'
(are you missing an assembly reference?)

Please help me, I am struck.
Richard
Nov 21 '05 #1
0 801

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

Similar topics

3
4683
by: Deepal | last post by:
Hi; I'm doing an example program from a book regarding .NET Remoting. Both the Client and Server are C# Console Applications. Server Code is using System; using System.Runtime.Remoting;...
1
2735
by: José Joye | last post by:
When I unload my appdomain, I got the following exception: A blocking operation was interrupted by a call to WSACancelBlockingCall: ..... My appdomain uses remoting... From previous post, I...
2
1218
by: Richard Lewis Haggard | last post by:
I know this is a really simple thing but it is not intuitively obvious on how to do this the first time. I've created a remote server which lives in an EXE. This compiles. I've create a client...
8
2681
by: Richard Bell | last post by:
I have a class in a seperate dll which I want to remote. I have referenced the class and registered it using a simple exe. I can connect to the class's interface using Activator.GetObject and call...
2
3988
by: JJ | last post by:
I want to create a client activated object using TcpChannel. The only way I could get it to work, though, is to provide the client with the remoted object's implementation. I'd rather not do this. ...
8
1728
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
1
1278
by: Gugale at Lincoln | last post by:
Hi, I used soapsuds tool to create an interface assembly for a SAO. I created a client which uses this SAO and added a reference to the interface assembly. The client program worked well when I...
1
1197
by: Dan Avni | last post by:
Using VS 2003, i have a web application that has a business layer & a data access layer. on most installations of my web site, the sql server is residing somewhere in the network and i configure...
5
3076
by: godd | last post by:
I've got next error when try to create client proxy with soapsuds : "Error: Invalid schema data., String Syntax Not Handled Dictionary`2" Here is how I do this : soapsuds -id:c:\Server\...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
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
5578
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
4672
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.