Click here to Skip to main content
15,914,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: CodeDom Problem : How to define new object in method ? Pin
KaptinKrunch25-Apr-08 10:35
KaptinKrunch25-Apr-08 10:35 
QuestionSocket Programing Problem Pin
Member 448762925-Apr-08 5:33
Member 448762925-Apr-08 5:33 
GeneralRe: Socket Programing Problem Pin
KaptinKrunch25-Apr-08 8:54
KaptinKrunch25-Apr-08 8:54 
GeneralDataGridBoolColumn Pin
michael_jhons25-Apr-08 5:32
michael_jhons25-Apr-08 5:32 
GeneralRe: DataGridBoolColumn Pin
KaptinKrunch25-Apr-08 10:45
KaptinKrunch25-Apr-08 10:45 
GeneralRe: DataGridBoolColumn Pin
michael_jhons27-Apr-08 21:21
michael_jhons27-Apr-08 21:21 
QuestionWhat is the internal function of SOAP,WSDL,UDDI in Webservice Pin
bruze25-Apr-08 5:21
bruze25-Apr-08 5:21 
GeneralC# remoting + GAC Pin
Dio2225-Apr-08 4:53
Dio2225-Apr-08 4:53 
I've created a remoting application that uses an assembly located in the GAC. When I try to run a client application that grabs the remote object and uses an object in the GAC assembly I get an exception. Everything works fine if the assembly is not signed. Thanks for any help.

<small>System.Runtime.Serialization.SerializationException was unhandled<br />
  Message="Because of security restrictions, the type PLCLib.PLCMediator+PLCConnection cannot be accessed."<br />
  Source="mscorlib"<br />
  StackTrace:<br />
    Server stack trace: <br />
       at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)<br />
       at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr)<br />
       at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)<br />
       at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)<br />
       at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)<br />
       at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()<br />
       at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)<br />
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)<br />
       at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)<br />
       at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)<br />
    Exception rethrown at [0]: <br />
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br />
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)<br />
       at PLCLib.PLCMediator.WriteBit(PLCConnection connection, String dataAddress, Boolean dataIn)<br />
       at PLCDriverConsole.WriteBit.WriteBits(PLCConnection connection, String dataAddress, Boolean dataIn) in C:\Brad\PLCDriverConsole\PLCDriverConsole\Program.cs:line 57<br />
       at PLCDriverConsole.Program.Main(String[] args) in C:\Brad\PLCDriverConsole\PLCDriverConsole\Program.cs:line 20<br />
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)<br />
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)<br />
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)<br />
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()<br />
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)<br />
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)<br />
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()<br />
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)<br />
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)<br />
       at System.Threading.ThreadHelper.ThreadStart()<br />
  InnerException: System.Security.SecurityException<br />
       Message="Request failed."<br />
       Source="mscorlib"<br />
       GrantedSet=""<br />
       PermissionState="<PermissionSet class=\"System.Security.PermissionSet\"\r\nversion=\"1\"\r\nUnrestricted=\"true\"/>\r\n"<br />
       RefusedSet=""<br />
       Url=""<br />
       StackTrace:<br />
            at System.Runtime.Serialization.FormatterServices.nativeGetSafeUninitializedObject(RuntimeType type)<br />
            at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)<br />
       InnerException: </small>

GeneralRe: C# remoting + GAC Pin
KaptinKrunch25-Apr-08 10:47
KaptinKrunch25-Apr-08 10:47 
GeneralRe: C# remoting + GAC Pin
Dio2228-Apr-08 3:50
Dio2228-Apr-08 3:50 
QuestionConférence Pin
asma_pfe25-Apr-08 3:52
asma_pfe25-Apr-08 3:52 
GeneralRe: Conférence Pin
carbon_golem25-Apr-08 4:44
carbon_golem25-Apr-08 4:44 
GeneralRe: Conférence Pin
J4amieC25-Apr-08 4:47
J4amieC25-Apr-08 4:47 
GeneralRe: Conférence Pin
asma_pfe25-Apr-08 6:31
asma_pfe25-Apr-08 6:31 
GeneralRe: Conférence Pin
carbon_golem25-Apr-08 6:40
carbon_golem25-Apr-08 6:40 
GeneralRe: Conférence Pin
Spacix One25-Apr-08 7:06
Spacix One25-Apr-08 7:06 
AnswerRe: Conférence Pin
asma_pfe25-Apr-08 20:32
asma_pfe25-Apr-08 20:32 
QuestionDoubts of the MS Word Count of pages script Pin
Ferrarih25-Apr-08 3:34
Ferrarih25-Apr-08 3:34 
GeneralRe: Doubts of the MS Word Count of pages script Pin
Derek Bartram26-Apr-08 7:57
Derek Bartram26-Apr-08 7:57 
GeneralSubVersion Question.... Pin
Harvey Saayman25-Apr-08 3:25
Harvey Saayman25-Apr-08 3:25 
Questionhow do I get serial hardware from client with c# or vb.net Pin
indy25-Apr-08 2:46
indy25-Apr-08 2:46 
AnswerRe: how do I get serial hardware from client with c# or vb.net Pin
Spacix One25-Apr-08 3:58
Spacix One25-Apr-08 3:58 
AnswerRe: how do I get serial hardware from client with c# or vb.net Pin
Ravenet25-Apr-08 6:01
Ravenet25-Apr-08 6:01 
GeneralRe: how do I get serial hardware from client with c# or vb.net Pin
indy25-Apr-08 6:47
indy25-Apr-08 6:47 
GeneralRe: how do I get serial hardware from client with c# or vb.net Pin
Ravenet25-Apr-08 21:38
Ravenet25-Apr-08 21:38 

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.