PDA

View Full Version : Error on System.Resources.ResourceManager implementing sample


Ministerio
May 22, 2007, 20:35:30
Hi,
When we try to implement the example of Browser_Tutorial_2003 we get an error when loads the document into the control.

Error is on System.Resources.ResourceManager.
This is our stack trace:


Server stack trace:
at System.Runtime.Serialization.Formatters.Binary.Rea dObjectInfo.GetMemberTypes(String[] inMemberNames)
at System.Runtime.Serialization.Formatters.Binary.Obj ectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.Obj ectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryHeaderEnu m binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)

at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.UnsafeDeserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Remoting.Channels.CoreChannel.Deser ializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.BinaryServerForma tterSink.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.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
at TXTextControl.ServerTextControl.Load(String path, StreamType streamType, LoadSettings& loadSettings, Byte[]& internalFormat)
at TXTextControl.BrowserTextControl.Load(String serverPath, String applicationName, StreamType streamType, LoadSettings loadSettings)
at ControlAplicacion.AppControl.LoadFile()
at ControlAplicacion.AppControl.DevolverString()


Do you have any idea of what is happening?

Thanks in advance.

Björn Meyer
May 23, 2007, 09:22:50
Hello

When exactly do you get this error message? What kind of document do you try to load?

Ministerio
May 23, 2007, 15:04:16
Thanks for reply,
the error is raised in the following line:

document.getElementById('BrowserApp').LoadFile("Documents\\Demo.rtf");


Another thing that we have to add is that this is not working when you try to run the project, but when you explore the web form through "View in explorer" option it works great. This option opens a new window inside Visual Studio with an explorer with the form.

Regards

Björn Meyer
May 23, 2007, 16:43:50
Are you saying that you don't get the error message when selecting "View in explorer"?

Ministerio
May 23, 2007, 16:47:57
Yes,that is correct
do you suggest something?

Ministerio
May 23, 2007, 20:56:02
I installed the hotfix: NDP1.1sp1-KB911205-X86.exe
and now its working!!.
But i can see the control only from my machine, another machines can't see the control, they only get a blank object.
the security level of the clients are configured as is said in tutorial.

Thanks.

Björn Meyer
May 24, 2007, 14:01:52
Did you copy all BrowserBin DLLs into the BrowserBin folder of the web application?

Ministerio
May 24, 2007, 16:08:40
yes, i did.

Björn Meyer
May 25, 2007, 09:23:40
Did you adjust all the required security settings on the client machine?

Ministerio
May 28, 2007, 16:40:12
yes, the security level of the clients are configured as is said in tutorial

Björn Meyer
May 30, 2007, 16:59:54
Which Windows versions are used on your client's machines?

Ministerio
May 30, 2007, 17:38:35
we used xp Professional, with iExplorer 6 and iExplorer 7