Installing Xamarin fail on Mac due to Android SDK - c#

I'm trying to install Xamarin on my MacBook Pro 2011 running 10.7.4.
When I run the installer it attempts to install the Android SDK first, however after a while it fails and the error report states:
Error downloading from Google server. Android SDK.
The operation has timed out.
Exception type: System.Net.WebException
Message: The operation has timed out.
at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.DownloadService.DoDownload (Int64 totalBytes, System.IO.Stream responseStream, System.IO.Stream outputStream, System.Object state) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Utilities.DownloadUrl (System.Net.HttpWebResponse response, System.String url, System.Action`4 doDownload, Boolean noCache, System.Object state) [0x00000] in <filename unknown>:0
Android SDK installation failed with more than one exception (Attempt #Android SDK)
Some installation errors are present.
Exception type: System.AggregateException
Message: Some installation errors are present.
Exception type: Xamarin.Web.Installer.InstallException
Message: Download failed.
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem () [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install (UInt32 tryNumber) [0x00000] in <filename unknown>:0
at MacInstaller.WizardPageInstallationController.InstallationWorker () [0x00000] in <filename unknown>:0
Exception type: System.Net.WebException
Message: The operation has timed out.
at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.DownloadService.DoDownload (Int64 totalBytes, System.IO.Stream responseStream, System.IO.Stream outputStream, System.Object state) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Utilities.DownloadUrl (System.Net.HttpWebResponse response, System.String url, System.Action`4 doDownload, Boolean noCache, System.Object state) [0x00000] in <filename unknown>:0
Exception type: Xamarin.Web.Installer.InstallException
Message: Download failed.
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem () [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install (UInt32 tryNumber) [0x00000] in <filename unknown>:0
at MacInstaller.WizardPageInstallationController.InstallationWorker () [0x00000] in <filename unknown>:0
Exception type: System.Net.WebException
Message: The operation has timed out.
at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.DownloadService.DoDownload (Int64 totalBytes, System.IO.Stream responseStream, System.IO.Stream outputStream, System.Object state) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Utilities.DownloadUrl (System.Net.HttpWebResponse response, System.String url, System.Action`4 doDownload, Boolean noCache, System.Object state) [0x00000] in <filename unknown>:0
Exception type: Xamarin.Web.Installer.InstallException
Message: Download failed.
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem () [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install (UInt32 tryNumber) [0x00000] in <filename unknown>:0
at MacInstaller.WizardPageInstallationController.InstallationWorker () [0x00000] in <filename unknown>:0
Exception type: System.Net.WebException
Message: The operation has timed out.
at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.DownloadService.DoDownload (Int64 totalBytes, System.IO.Stream responseStream, System.IO.Stream outputStream, System.Object state) [0x00000] in <filename unknown>:0
at Xamarin.Web.Installer.Utilities.DownloadUrl (System.Net.HttpWebResponse response, System.String url, System.Action`4 doDownload, Boolean noCache, System.Object state) [0x00000] in <filename unknown>:0
What's wrong?

Related

Error while sending email on iOS app with unity

I'm working on a school project and I'm trying to log data that is stored from a game that I made in unity.
My problem is that I want to email the data true the app. Everything works fine, email is sending with the data etc. But when I build the app to an iOS device it is not sending the email.
I do not have any errors in unity but I get this error in Xcode when I build the app.See the error below. I hope someone can help me.
Greetings,
Georgi Iliev
MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Net.Configuration.MailSettingsSectionGroup'.
at Mono.Security.Authenticode.AuthenticodeBase.GetSecurityEntry () [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSectionGroupInstance (System.Configuration.SectionGroupInfo group) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationSectionGroupCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Net.Mail.SmtpClient..ctor (System.String host, Int32 port) [0x00000] in <filename unknown>:0
at MonoGmail.Start () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
added #programmers solution and got a new mixed error.
MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Net.Configuration.MailSettingsSectionGroup'.
at StartMenu.CloseApp () [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigInfo.CreateInstance () [0x00000] in <filename unknown>:0
at System.Collections.Generic.Comparer`1[T].get_Default () [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSectionGroupInstance (System.Configuration.SectionGroupInfo group) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationSectionGroupCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.MonoTODOAttribute..ctor () [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Net.Mail.SmtpClient..ctor (System.String host, Int32 port) [0x00000] in <filename unknown>:0
at System.Net.Mail.SmtpClient..ctor (System.String host) [0x00000] in <filename unknown>:0
at Mono_Gmail.Start () [0x00000] in <filename unknown>:0
at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0
at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0
at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0
at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)
(Filename: currently not available on il2cpp Line: -1)
This is a bug in IL2CPP. Unity does not have any plan to fix this issue any time soon because there is a temporary solution to fix it.
In your link.xml, add the following to it.
<linker>
<assembly fullname="System">
<type fullname="System.Net.Configuration.MailSettingsSectionGroup" preserve="all"/>
<type fullname="System.Net.Configuration.SmtpSection" preserve="all"/>
<type fullname="System.Net.Configuration.SmtpNetworkElement" preserve="all"/>
</assembly>
</linker>
It is basically telling Xcode to not strip these mail stuff out.
If you don't have link.xml, create it and put the code above in it then place the file in the Asset folder. Rebuild the project.
EDIT:
According to a comment below, it is now required to add the line below too:
<type fullname="System.Net.Configuration.SmtpSpecifiedPickupDirectoryElement" preserve="all"/>

Mono.Security.Protocol.Tls.TlsException: buffer underrun

I have a very strange problem.
We implemented a Soap API to talk to a third party. The API sort of works. There is an IsAlive method which checks if the third party service is alive.
Our application is hosted on an Ubuntu 14.04 server under Apache with Mod-Mono (Mono).
We call this API when we load a particular page. It works up to a point then we get an error. I.E. You can make a request to the IsAlive xxx (It's random) amount of times and it works, then next time you try and do it the following exception gets thrown:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: buffer underrun
at Mono.Security.Protocol.Tls.RecordProtocol.ReadRecordBuffer (Int32 contentType, System.IO.Stream record) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: buffer underrun
at Mono.Security.Protocol.Tls.RecordProtocol.ReadRecordBuffer (Int32 contentType, System.IO.Stream record) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) [0x00000] in <filename unknown>:0
at System.Net.WebConnectionStream+<SetHeadersAsync>c__AnonStorey1.<>m__0 (IAsyncResult r) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Web.UI.Page.ProcessException (System.Exception e) [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at ASP.somepage_aspx.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
Mono.Security.Protocol.Tls.TlsException: buffer underrun
at Mono.Security.Protocol.Tls.RecordProtocol.ReadRecordBuffer (Int32 contentType, System.IO.Stream record) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
The API at this point does not work anymore. Even if we refresh the page and make another call. We try to re-request 2-3 times then we get another error.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Web.UI.Page.ProcessException (System.Exception e) [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at ASP.somepage_aspx.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00000] in <filename unknown>:0
The only way to make the API work again is if we restart the Ubuntu Server.
Here is a snippet of how we send the request.
public string TestSiteStatus()
{
getSiteStatus site = new getSiteStatus();
site.site = "XXX";
string res = "";
using (SiteServiceImplService service = new SiteServiceImplService())
{
res = service.getSiteStatus(site);
}
return res;
}
Does anyone know what is wrong here? Is there a problem with my implementation or is this a Mono framework issue?
I have tried the instructions on this page: http://www.mono-project.com/docs/faq/security/ but no success. When I run thetest, it passes the first and sometimes the second time but fails after that.
Turns out there was a certificate issue with our third party. They updated their certificates, we added them to our stores, and it worked.
Our the API SSL cert was vulnerable to a LogJam attack. The ciphering of the certificate caused problems with our server.
This link helped us test and find the problem.

ExecutionEngineException - Error at iOS Runtime with parse.com SDK

We're creating a game for iOS and android using Unity3d (version 5.0.1p1), and since we are using Parse.com data services we naturally went with it to implement the remote push notifications.
The problem is that after building the game and running it on a test device (iPhone 4s iOS8.1.2) we get at game start an execution engine exception that we cant figure out. Here is the exception :
ExecutionEngineException: Attempting to call method
'System.Reflection.MonoProperty::StaticGetterAdapterFrame' for which no ahead of time (AOT) code was
generated.
at System.Reflection.EventInfo+AddEventAdapter.Invoke (System.Object
_this, System.Delegate dele)
[0x00000] in <filename unknown>:0
at System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object
_this) [0x00000] in <filename
unknown>:0
at AOGenerator.BlurBuffer () [0x00000] in <filename unknown>:0
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in
<filename unknown>:0
at Newtonsoft.Json.Bson.BsonRegex.get_Type () [0x00000] in <filename unknown>:0
at Parse.ParseInstallation.get_Badge () [0x00000] in <filename unknown>:0
at Parse.ParseInstallation.SetPlatformAutomaticValue () [0x00000] in <filename unknown>:0
at Parse.ParseInstallation.SetAutomaticValues () [0x00000] in <filename unknown>:0
at Parse.ParseInstallation.SaveAsync (System.Threading.Tasks.Task toAwait, CancellationToken
cancellationToken) [0x00000] in <filename unknown>:0
at Parse.PlatformHooks+<>c__DisplayClass38.<RequestAsync>b__33 (System.Threading.Tasks.Task`1 _)
[0x00000] in <filename unknown>:0
at Parse.ParseObject+<>c__DisplayClass18.<SaveAsync>b__17 (System.Threading.Tasks.Task toAwait)
[0x00000] in <filename unknown>:0
at FlurryAnalyticsIOS.SetSessionTimeout (Int32 seconds) [0x00000] in <filename unknown>:0
at
System.Collections.Generic.Dictionary`2[System.Int64,System.Boolean].Do_ICollectionCopyTo[KeyValuePair`2]
(System.Array array, Int32 index, System.Collections.Generic.Transform`1 transform) [0x00000] in <filename
unknown>:0
at Parse.Internal.TaskQueue.Enqueue[Task] (System.Func`2 taskStart, CancellationToken cancellationToken)
[0x00000] in <filename unknown>:0
at Parse.ParseObject.SaveAsync (CancellationToken cancellationToken) [0x00000] in <filename unknown>:0
at Parse.ParseObject.SaveAsync () [0x00000] in <filename unknown>:0
at Parse.ParseInitializeBehaviour.<Awake>b__0 (System.Byte[] deviceToken) [0x00000] in <filename
unknown>:0
at FlurryAnalyticsIOS.SetSessionTimeout (Int32 seconds) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonRegex.get_Type () [0x00000] in <filename unknown>:0
at Parse.PlatformHooks+<>c__DisplayClass24.<RegisterDeviceTokenRequest>b__22 () [0x00000] in
<filename unknown>:0
at System.Action.Invoke () [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonRegex.get_Type () [0x00000] in <filename unknown>:0
at Parse.PlatformHooks+<RunDispatcher>d__44.MoveNext () [0x00000] in <filename unknown>:0
at System.Nullable`1[System.DateTimeOffset].ToString () [0x00000] in <filename unknown>:0
System.Nullable`1:ToString()
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Parse.<RunDispatcher>d__44:MoveNext()
System.Nullable`1:ToString()
The problem just appeared with the new Unity Parse SDK 1.5 (which contains the PNS feature). What we know is that running an empty project with just the parse sdk goes fine and the notifications work just fine, but in our actual project, because of the exception, devices dont register for the notifications in parse, so we are assuming there is a kind of a conflict between parse and one of the other tools we are using.
FYI : We are building the game using IL2CPP for a universal architecture (we re also building with .Net 2.0 subset, but I dont think that this has something to do with the problem).
Thank you for your time and for your answers.
UPDATE ::
We tried to build using Mono(2.x) this time and we have pretty much the same exception that turned into this :
ExecutionEngineException: Attempting to JIT compile method
'System.Reflection.MonoProperty:StaticGetterAdapterFrame
(System.Reflection.MonoProperty/StaticGetter`1,object)' while
running with ­­aot­only.
at System.Reflection.MonoProperty.GetValue (System.Object obj,
System.Object[] index)
[0x00000] in :0
at Parse.ParseInstallation.get_Badge () [0x00000] in :0
at Parse.ParseInstallation.SetPlatformAutomaticValue () [0x00000] in
unknown>:0
at Parse.ParseInstallation.SetAutomaticValues () [0x00000] in
:0
at Parse.ParseInstallation.SaveAsync (System.Threading.Tasks.Task
toAwait,
CancellationToken cancellationToken) [0x00000] in :0
at Parse.ParseObject+<>c__DisplayClass18.b__17
(System.Threading.Tasks.Task toAwait) [0x00000] in :0
at Parse.Internal.TaskQueue.Enqueue[Task] (System.Func`2 taskStart,
CancellationToken
cancellationToken) [0x00000] in :0
at Parse.ParseObject.SaveAsync (CancellationToken cancellationToken)
[0x00000] in
:0
at Parse.ParseObject.SaveAsync () [0x00000] in :0
at Parse.ParseInitializeBehaviour.b__0 (System.Byte[]
deviceToken) [0x00000] in
:0
at
Parse.PlatformHooks+<>c__DisplayClass24.b__22
()
[0x00000] in :0
at Parse.PlatformHooks+d__44.MoveNext () [0x00000] in
unknown>:0
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Parse.d__44:MoveNext()
Hopes it bring you guys more details about the problem.
Update 2 ::
We know exactly what causes the exception to happen and unfortunately we have no control over it, its when we register for notification, we do it this way :
using NotificationServices = UnityEngine.iOS.NotificationServices;
using NotificationType = UnityEngine.iOS.NotificationType;
/*
.
.
.
*/
void ACalledFunction ()
{
// Ask for permission for push notifications (Can Receive deviceToken)
#if UNITY_IPHONE
NotificationServices.RegisterForNotifications(
NotificationType.Alert |
NotificationType.Badge |
NotificationType.Sound);
#endif
}
}
UPDATE 15/06/2015 : Parse Unity SDK 1.5.1 (il2cpp scripting backend)
We re still having the same error when trying to register for parse PNs :
ExecutionEngineException: Attempting to call method
'System.Reflection.MonoProperty::StaticGetterAdapterFrame' for which
no ahead of time (AOT) code was generated.
System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object
_this) System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object _this) CurvedText.OnRectTransformDimensionsChange ()
System.Reflection.MonoProperty.GetValue (System.Object obj,
System.Object[] index)
Newtonsoft.Json.Bson.BsonString.set_IncludeLength (Boolean value)
Parse.ParseInstallation.get_Badge ()
Parse.ParseInstallation.SetPlatformAutomaticValue ()
Parse.ParseInstallation.SetAutomaticValues ()
Parse.ParseInstallation.SaveAsync (System.Threading.Tasks.Task
toAwait, CancellationToken cancellationToken)
Parse.PlatformHooks+<>c__DisplayClass42.b__36 (System.Object _)
Parse.ParseObject+<>c__DisplayClass18.b__17
(System.Threading.Tasks.Task toAwait)
FlurryAnalyticsIOS.SetSessionTimeout (Int32 seconds)
Parse.ParseObject.SetProperty[ParseACL] (Parse.ParseACL value,
System.String propertyName) Parse.Internal.TaskQueue.Enqueue[Task]
(System.Func2 taskStart, CancellationToken cancellationToken)
Parse.ParseObject.SaveAsync (CancellationToken cancellationToken)
Parse.ParseObject.SaveAsync () Parse.ParseInitializeBehaviour.b__0
(System.Byte[] deviceToken) FlurryAnalyticsIOS.SetSessionTimeout
(Int32 seconds) Newtonsoft.Json.Bson.BsonString.set_IncludeLength
(Boolean value) Parse.PlatformHooks+<>c__DisplayClass24.b__22 ()
System.Action.Invoke ()
Newtonsoft.Json.Bson.BsonString.set_IncludeLength (Boolean value)
Parse.PlatformHooks+d__44.MoveNext ()
System.Array+InternalEnumerator1[System.UInt64].get_Current ()
UnityEngine.Debug:LogException(Exception) Parse.d__44:MoveNext()
System.InternalEnumerator`1:get_Current()
It is possible to use reflection with AOT builds (both using the Mono scripting backend and the IL2CPP scripting backend). The restriction is really on using anything in the System.Reflection.Emit namespace.
Some parts of the mscorlib.dll assembly that ship with the Unity version of Mono are not friendly to AOT code paths, and System.Reflection.MonoProperty::StaticGetterAdapterFrame is one of them. This code won't work with an AOT build, but unfortunately it is not something that Unity can determine at compile time, so the error will only happen at runtime.
This is probably an issue to bring up on the Parse SDK forums. It may be that the SDK can be used differently to avoid this issue.

Glimpse is breaking signalr on mono

After installing Glimpse,
my ~/signalr/hubs stopped working at Mono productions server.
However it still works when running locally using IIS Express.
System.ArgumentNullException
Argument cannot be null.
Parameter name: httpContext
at System.Web.HttpContextWrapper..ctor (System.Web.HttpContext httpContext) [0x00000] in <filename unknown>:0
at Glimpse.AspNet.AspNetFrameworkProvider.get_Context () [0x00000] in <filename unknown>:0
at Glimpse.AspNet.AspNetFrameworkProvider.get_HttpRequestStore () [0x00000] in <filename unknown>:0
at Glimpse.Core.Framework.GlimpseRuntime.GetRuntimePolicy (RuntimeEvent runtimeEvent) [0x00000] in <filename unknown>:0
at Glimpse.Core.Framework.GlimpseRuntime.HasOffRuntimePolicy (RuntimeEvent policyName) [0x00000] in <filename unknown>:0
at Glimpse.Core.Framework.GlimpseRuntime.EndSessionAccess () [0x00000] in <filename unknown>:0
at Glimpse.AspNet.HttpModule.EndSessionAccess (System.Web.HttpContextBase httpContext) [0x00000] in <filename unknown>:0
at Glimpse.AspNet.HttpModule.<Init>b__2 (System.Object context, System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<RunHooks>c__Iterator5.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
I dont need to view signalr requests, so turning the diagnostics off would also solve my issue.
You can disable Glimpse for a given set of URI's in your web.config.
Take a look at the URI section of our configuration docs to see how to make the change.

WebClient "error getting response stream"

I've just got an error report from a client using a program I wrote, and I've been googling the nuts off of this error and can't find anything useful. The error is:
System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where)
at System.Net.WebConnection.ReadDone(IAsyncResult result)
at System.Net.WebConnection.HandleError (WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
at System.Net.WebClient.DownloadFileCore (System.Uri address, System.String fileName, System.Object userToken) [0x00000] in <filename unknown>:0
at System.Net.WebClient.<DownloadFileAsync>m__F (System.Object state) [0x00000] in <filename unknown>:0
System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where)
at System.Net.WebConnection.ReadDone(IAsyncResult result)
at System.Net.WebConnection.HandleError (WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0
at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in <filename unknown>:0
at System.Net.WebClient.DownloadFileCore (System.Uri address, System.String fileName, System.Object userToken) [0x00000] in <filename unknown>:0
at System.Net.WebClient.<DownloadFileAsync>m__F (System.Object state) [0x00000] in <filename unknown>:0
The application is the launcher program for a game, it pulls down a manifest of files and patches any which are non-existent or outdated. All the files it downloads with a WebClient object, it looks like the error is being thrown by WebClient::DownloadFileAsync, but I can't find any documentation as to why this could be happening.
Any help would be much appreciated, the quicker I can fix this monday morning the better!
Cheers
Joe
Does the client uses a proxy?
If yes, are you attaching the proxy to the WebClient object?
Your error simply mentions that the file could not be found, DownloadFileAsync needs a file stream, and if that's not there, you get an error...
Any thoughts in implementing a log system that can be activate through a parameter that would POST the log file into your FTP for example?
You could make use of several open source projects out there, like ExceptionReporter.
After the sysadmin played with the server config a bit this problem seemed to go away, I'm not sure exactly what was done though.

Categories

Resources