Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to connect MySQL Pin
noke98-Sep-03 20:23
sussnoke98-Sep-03 20:23 
GeneralDirectDraw transparency problem Pin
outlawhacker7-Sep-03 12:29
outlawhacker7-Sep-03 12:29 
GeneralEvent Properties Pin
J. Dunlap7-Sep-03 9:02
J. Dunlap7-Sep-03 9:02 
GeneralRe: Event Properties Pin
leppie7-Sep-03 9:24
leppie7-Sep-03 9:24 
GeneralRe: Event Properties Pin
J. Dunlap7-Sep-03 9:30
J. Dunlap7-Sep-03 9:30 
GeneralRe: Event Properties Pin
leppie7-Sep-03 9:44
leppie7-Sep-03 9:44 
GeneralRe: Event Properties Pin
J. Dunlap7-Sep-03 9:55
J. Dunlap7-Sep-03 9:55 
GeneralRe: Event Properties Pin
leppie7-Sep-03 13:06
leppie7-Sep-03 13:06 
GeneralRe: Event Properties Pin
J. Dunlap7-Sep-03 16:18
J. Dunlap7-Sep-03 16:18 
GeneralScreen Saver Pin
Ivan Vasic7-Sep-03 6:27
Ivan Vasic7-Sep-03 6:27 
GeneralRe: Screen Saver Pin
cduced7-Sep-03 6:57
cduced7-Sep-03 6:57 
GeneralA question about c# Pin
Snyp7-Sep-03 5:42
Snyp7-Sep-03 5:42 
GeneralRe: A question about c# Pin
Alvaro Mendez8-Sep-03 9:38
Alvaro Mendez8-Sep-03 9:38 
Generalsimple question - Windows Services Pin
SHenin7-Sep-03 5:37
SHenin7-Sep-03 5:37 
Generalcan't finalize an object which holds a System.Timers.Timer Pin
MeisterBiber7-Sep-03 2:53
MeisterBiber7-Sep-03 2:53 
GeneralRe: can't finalize an object which holds a System.Timers.Timer Pin
leppie7-Sep-03 3:53
leppie7-Sep-03 3:53 
GeneralRe: can't finalize an object which holds a System.Timers.Timer Pin
MeisterBiber7-Sep-03 10:11
MeisterBiber7-Sep-03 10:11 
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

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.