unity3d 5 android throws TypeInitializationException socket Net.Dns
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi
when i run on android get this exeption:
"System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Sockets.Socket ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'.\n at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0 \n at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 \n at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostInitParams) [0x00000] in :0 \n at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in :0 \n at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in :0 \n at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0 \n --- End of inner exception stack trace ---\n at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0 \n at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in :0 \n at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0 \n at System.Net.Sockets.Socket.CheckProtocolSupport () [0x00000] in :0 \n at System.Net.Sockets.Socket..cctor () [0x00000] in :0 \n --- End of inner exception stack trace ---\n at System.Net.Dns..cctor () [0x00000] in :0 "
Thankful.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported failure on Android with Unity 5 and trace the websocket-sharp path into System.Net.Dns and System.Net.Sockets.Socket. Compare the configuration initialization stack trace with a working environment; done means the Android socket/DNS path no longer throws the reported TypeInitializationException, with a regression check for the affected scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile-dev, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100