exception has been thrown by the target of an invocation

Adding a first (new) user / portal activity notifications / email / chat
dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

exception has been thrown by the target of an invocation

Post by dpap » Wed Jan 06, 2016 1:55 am

Hi,

i've installed onlyoffice on a centos 7 according to the official instructions.
When i try to access the documents section i get this error "exception has been thrown by the target of an invocation"
Any suggestions?

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Wed Jan 06, 2016 2:05 am

Also i can access onlyoffice portal only by the ip 127.0.0.1 and not localhost.
I don't know if these 2 issues have something in common

Dean
Posts: 700
Joined: Tue Sep 30, 2014 11:04 am

Re: exception has been thrown by the target of an invocation

Post by Dean » Wed Jan 06, 2016 1:34 pm

Hello,

Please specify the exact version of the ONLYOFFICE you've installed and the method of installation?

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Wed Jan 06, 2016 11:19 pm

I've used these instructions http://helpcenter.onlyoffice.com/server ... ation.aspx for installing on a centos 7

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Fri Jan 08, 2016 7:22 pm

Any suggestion?

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Tue Jan 12, 2016 6:01 pm

Version of community server is 8.5, centos version 7

Alex
Posts: 52
Joined: Sat Nov 07, 2015 3:19 pm

Re: exception has been thrown by the target of an invocation

Post by Alex » Wed Jan 13, 2016 1:59 pm

If there are any errors in the browser console, make a screenshot of them and describe your actions step by step
Also i can access onlyoffice portal only by the ip 127.0.0.1 and not localhost.
I don't know if these 2 issues have something in common
Can the portal be accessed by the local ip?

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Wed Jan 13, 2016 9:27 pm

Now i can access both localhost and 127.0.0.1

i'm getting a 400 bad request when trying to access the documents. Below is the url. After this is the error.
http://my-ip/products/files/services/wc ... 2720237359

Code: Select all

<error xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Detail>Exception has been thrown by the target
 of an invocation.</Detail><inner><message>Exception has been thrown by the target of an invocation.
</message><source>mscorlib</source><stack>  at System.Reflection.MonoMethod.Invoke (System.Object obj
, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization
.CultureInfo culture) <0x41329470 + 0x00127> in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x4130faa0
 + 0x0002a> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlFormatWriterInterpreter.InternalSerialize (System.Reflection.MethodInfo
 methodInfo, System.Func`1 memberValue, System.Type memberType, Boolean writeXsiType) <0x40866cc0
 + 0x00293> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlFormatWriterInterpreter.WriteValue (System.Type memberType, System
.Object memberValue, Boolean writeXsiType) <0x40865ee0 + 0x00a47> in <filename unknown>:0
 
  at System.Runtime.Serialization.XmlFormatWriterInterpreter.WriteMembers (System.Runtime.Serialization
.ClassDataContract classContract, System.Runtime.Serialization.ExtensionDataObject extensionData, System
.Runtime.Serialization.ClassDataContract derivedMostClassContract) <0x408643b0 + 0x004c3> in &lt
;filename unknown>:0 
  at System.Runtime.Serialization.XmlFormatWriterInterpreter.WriteClass (System.Runtime.Serialization
.ClassDataContract classContract) <0x40861380 + 0x003f7> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlFormatWriterInterpreter.WriteToXml (System.Runtime.Serialization
.XmlWriterDelegator xmlWriter, System.Object obj, System.Runtime.Serialization.XmlObjectSerializerWriteContext
 context, System.Runtime.Serialization.ClassDataContract dataContract) <0x40861030 + 0x00153> in
 <filename unknown>:0 
  at System.Runtime.Serialization.XmlFormatWriterGenerator+CriticalHelper+<GenerateClassWriter&gt
;c__AnonStorey0.<>m__0 (System.Runtime.Serialization.XmlWriterDelegator xw, System.Object obj,
 System.Runtime.Serialization.XmlObjectSerializerWriteContext ctx, System.Runtime.Serialization.ClassDataContract
 ctr) <0x40860f20 + 0x00077> in <filename unknown>:0 
  at System.Runtime.Serialization.ClassDataContract.WriteXmlValue (System.Runtime.Serialization.XmlWriterDelegator
 xmlWriter, System.Object obj, System.Runtime.Serialization.XmlObjectSerializerWriteContext context)
 <0x40860a60 + 0x0003c> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue (System.Runtime
.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter,
 System.Object obj, RuntimeTypeHandle declaredTypeHandle) <0x40860a20 + 0x00035> in <filename
 unknown>:0 
  at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType (System.Runtime
.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter,
 System.Object obj, RuntimeTypeHandle declaredTypeHandle) <0x408605e0 + 0x000d6> in <filename
 unknown>:0 
  at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent (System.Runtime.Serialization
.XmlWriterDelegator writer, System.Object graph, System.Runtime.Serialization.DataContractResolver dataContractResolver
) <0x4085eff0 + 0x0016b> in <filename unknown>:0 
  at System.Runtime.Serialization.DataContractSerializer.InternalWriteObject (System.Runtime.Serialization
.XmlWriterDelegator writer, System.Object graph, System.Runtime.Serialization.DataContractResolver dataContractResolver
) <0x4085da10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions (System.Runtime.Serialization
.XmlWriterDelegator writer, System.Object graph, System.Runtime.Serialization.DataContractResolver dataContractResolver
) <0x4085d700 + 0x001e0> in <filename unknown>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions (System.Runtime.Serialization
.XmlWriterDelegator writer, System.Object graph) <0x4085d6d0 + 0x0001b> in <filename unknown
>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.WriteObject (System.Xml.XmlDictionaryWriter writer
, System.Object graph) <0x4085d540 + 0x00053> in <filename unknown>:0 
  at ASC.Web.Files.Services.WCFService.FileEntrySerializer.ToXml (System.Object o) <0x4085b850 + 0x00111
> in <filename unknown>:0 
  at ASC.Web.Files.Services.WCFService.FileStorageServiceController.GetFolderItemsXml (System.String
 parentId, Int32 from, Int32 count, FilterType filter, ASC.Files.Core.OrderBy orderBy, System.String
 subjectID, System.String search) <0x4083f510 + 0x000af> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object
,object[])
  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor+<>c__DisplayClass13
.<GetExecutor>b__c (System.Object instance, System.Object[] methodParameters) <0x4083f3b0 +
 0x00039> in <filename unknown>:0 
  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute (System.Object
 instance, System.Object[] arguments) <0x4083f370 + 0x0002d> in <filename unknown>:0 
  at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+<>c__DisplayClass5.<ExecuteAsync
>b__4 () <0x4083c930 + 0x0005b> in <filename unknown>:0 
  at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult] (System.Func`1 func, CancellationToken
 cancellationToken) <0x4083c4a0 + 0x0005f> in <filename unknown>:0 </stack><type>System.Reflection
.TargetInvocationException</type></inner><message>Κακό αίτημα.</message></error>

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Wed Jan 20, 2016 9:08 pm

Any suggestions on this?

dpap
Posts: 36
Joined: Sun May 31, 2015 11:30 am

Re: exception has been thrown by the target of an invocation

Post by dpap » Thu Jan 21, 2016 6:50 pm

From the error it seems to have an issue with mono and mscrolib.dll
I've disabled the firewall just in case it blocks something but no luck

Post Reply