'This is on a shared .dll Public Interface ICreateNewMouza Function CreateNewMouza(ByVal MouzaToCreate As Mouza) As Integer End Interface Imports System Imports System.Runtime.Serialization <serializable()> _ Public Class CustomException Inherits System.ApplicationException Public Sub New(ByVal message As String) MyBase.New(message) End Sub Public Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext) MyBase.New(info, context) End Sub Public Overrides Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext) MyBase.GetObjectData(info, context) End Sub End Class 'This is remote object which a client will invoke- Imports System.Runtime.Remoting Imports ClassInterfaces Public Class CreateNewMouza Inherits MarshalByRefObject Implements ClassInterfaces.ICreateNewMouza Public Function CreateNewMouza(ByVal MouzaToCreate As ClassInterfaces.Mouza) As Integer Implements ClassInterfaces.ICreateNewMouza.CreateNewMouza Try ' some code Catch ex As Exception ## what should be here? End Try End Function End Class
[FaultContract]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)