Click here to Skip to main content
15,884,176 members
Home / Discussions / C#
   

C#

 
GeneralMS Script Control Pin
Anonymous7-Sep-03 1:53
Anonymous7-Sep-03 1:53 
GeneralRe: MS Script Control Pin
Uwe Keim7-Sep-03 8:20
sitebuilderUwe Keim7-Sep-03 8:20 
GeneralRe: MS Script Control Pin
Roger Alsing7-Sep-03 22:44
Roger Alsing7-Sep-03 22:44 
GeneralInstalling Windows Media Player 9 during deployment of .NET application. Pin
Jonas Follesø7-Sep-03 1:35
Jonas Follesø7-Sep-03 1:35 
GeneralRe: Installing Windows Media Player 9 during deployment of .NET application. Pin
Mazdak7-Sep-03 1:50
Mazdak7-Sep-03 1:50 
GeneralRe: Installing Windows Media Player 9 during deployment of .NET application. Pin
Meysam Mahfouzi7-Sep-03 17:39
Meysam Mahfouzi7-Sep-03 17:39 
GeneralHelpProvider Class Pin
Mazdak6-Sep-03 22:04
Mazdak6-Sep-03 22:04 
GeneralRemoting - Custom objects Pin
Tatham6-Sep-03 19:42
Tatham6-Sep-03 19:42 
I am currently developing a remoting object for my wbsite (www.play47.net) and am experiencing the following problem. If you have any ideas, they would be greatly appreciated...

The remoting object has the following method:

public void MailQueueItemsSet(MailQueueItem job)


This returns a custom object which I have defined back to the DB (ie deletes / updates and needed).

This object (MailQueueItem) has the following definition:

[Serializable()]
public class MailQueueItem : DataItem, ISerializable


Now, from my client application I call the following method:

coordination.MailQueueItemsSet(job);


And receive this exception:

System.Runtime.Serialization.SerializationException: Because of security restrictions, the type play47.mail.RemotingInterfaces.MailQueueItem cannot be accessed. ---> System.Security.SecurityException: Request failed.
   at System.Security.SecurityRuntime.FrameDescSetHelper(FrameSecurityDescriptor secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
   at System.Runtime.Serialization.FormatterServices.nativeGetSafeUninitializedObject(RuntimeType type)
   at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)
   --- End of inner exception stack trace ---

Server stack trace: 
   at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr)
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.UnsafeDeserialize(Stream serializationStream, HeaderHandler handler)
   at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
   at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at play47.mail.RemotingInterfaces.CoordinationServer.MailQueueItemsSet(MailQueueItem job)
   at play47.mail.SMTPClient.SMTPClient.DoJob(MailQueueItem job) in C:\Inetpub\wwwroot\play47\SMTPClient\SMTPClient.cs:line 257
   at play47.mail.SMTPClient.SMTPClient.DoWork() in C:\Inetpub\wwwroot\play47\SMTPClient\SMTPClient.cs:line 132



If you have any ideas regarding this problem they would be greatly appreciated...

Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
GeneralRe: Remoting - Custom objects Pin
Ranjan Banerji8-Sep-03 6:00
Ranjan Banerji8-Sep-03 6:00 
GeneralRe: Remoting - Custom objects Pin
Tatham10-Sep-03 4:37
Tatham10-Sep-03 4:37 
Generalsnmp Pin
johnhill6-Sep-03 19:05
johnhill6-Sep-03 19:05 
GeneralA question...(?) Pin
Snyp6-Sep-03 16:00
Snyp6-Sep-03 16:00 
GeneralRe: A question...(?) Pin
theJazzyBrain7-Sep-03 3:49
theJazzyBrain7-Sep-03 3:49 
GeneralRe: A question...(?) Pin
Alvaro Mendez8-Sep-03 9:26
Alvaro Mendez8-Sep-03 9:26 
QuestionCheck if Remoting server is running? Pin
Bog6-Sep-03 12:35
Bog6-Sep-03 12:35 
AnswerRe: Check if Remoting server is running? Pin
Tatham6-Sep-03 19:31
Tatham6-Sep-03 19:31 
GeneralRe: Check if Remoting server is running? Pin
Bog7-Sep-03 8:16
Bog7-Sep-03 8:16 
GeneralAllowing a dialog to read data from the calling main form Pin
tsigo6-Sep-03 10:54
tsigo6-Sep-03 10:54 
GeneralRe: Allowing a dialog to read data from the calling main form Pin
Nick Parker6-Sep-03 11:32
protectorNick Parker6-Sep-03 11:32 
GeneralBindableListview and Column Sort Pin
zinzinlabine6-Sep-03 6:19
zinzinlabine6-Sep-03 6:19 
Generalnewline and label question Pin
gilstelzer6-Sep-03 5:59
gilstelzer6-Sep-03 5:59 
GeneralRe: newline and label question Pin
Mazdak6-Sep-03 8:16
Mazdak6-Sep-03 8:16 
Generalconverting web page into image Pin
andrew ryan6-Sep-03 0:03
andrew ryan6-Sep-03 0:03 
GeneralRe: converting web page into image Pin
Jasper4C#6-Sep-03 2:56
Jasper4C#6-Sep-03 2:56 
GeneralLDAP Pin
Salmanzz5-Sep-03 23:28
Salmanzz5-Sep-03 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.