Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UWP connection to SQL Server

Discussion in 'Windows' started by rafaelsistrade, Jan 29, 2018.

  1. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Hello Unity 3D people.

    I'm getting some errors when i build my application to UWP.

    Code (CSharp):
    1. Assets\Scripts\Conn.cs(50,16): error CS7069: Reference to type 'Component' claims it is defined in 'System', but it could not be found
    2.  
    3. Assets\Scripts\Conn.cs(50,16): error CS7069: Reference to type 'ICloneable' claims it is defined in 'mscorlib', but it could not be found
    4.  
    5. Assets\Scripts\Conn.cs(55,23): error CS7069: Reference to type 'Component' claims it is defined in 'System', but it could not be found
    6.  
    7. Assets\Scripts\Conn.cs(56,42): error CS7069: Reference to type 'Component' claims it is defined in 'System', but it could not be found
    8.  
    9. Assets\Scripts\Conn.cs(56,38): error CS7069: Reference to type 'Component' claims it is defined in 'System', but it could not be found
    10.  
    11. Assets\Scripts\Conn.cs(56,38): error CS7069: Reference to type 'MarshalByRefObject' claims it is defined in 'mscorlib', but it could not be found
    12.  
    13. Assets\Scripts\Conn.cs(98,20): error CS0155: The type caught or thrown must be derived from System.Exception
    14.  
    15. Assets\Scripts\Conn.cs(98,20): error CS7069: Reference to type 'ExternalException' claims it is defined in 'mscorlib', but it could not be found
    16.  
    17. Assets\Scripts\Conn.cs(100,45): error CS7069: Reference to type 'ExternalException' claims it is defined in 'mscorlib', but it could not be found
    18.  
    19. Error building Player because scripts had compiler errors
    20.  
    21. Build completed with a result of 'Failed'
    22. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    23.  
    24. UnityEditor.BuildPlayerWindow+BuildMethodException: 10 errors
    25.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182
    26.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89
    27. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    28.  

    Those are the lines where the sql connections are made.

    For windows, lnux and Mac works good, including in the editor.

    Best regards, Rafael.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,722
    Sounds like you are using a .dll that is not compatible with UWP. Try to find a version of that .dll file that is compatible with UWP or .NETCore.
     
  3. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Anyone knows where is that file?
     
  4. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    According to Microsoft the SQL server connection is only possible directly in the new version of .NetCore 2.0.

    https://msdn.microsoft.com/en-us/magazine/mt814993.aspx

    And that version of .Netcore is only on mono 5.4 and framework SDK 4.6.1.

    Unity is now on version 4.6 of the sdk and still in tests.

    Best regards, Rafael.
     
  5. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
  6. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    This gonna be fixed? Or i should search for a dll to fix this.

    Best regards, Rafael Pereira.
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    You won't be able to use that DLL on .NET scripting backend. It should work if you switch to IL2CPP.

    We don't plan on supporting .NET Standard 2.0 on .NET scripting backend because that would mean we would have to increase minimum supported OS version to 10.0.16299 (Windows 10 Fall Creators Update), which just came out and that majority of the gamers have not yet updated to it.
     
  8. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Ok, thanks for the fast reply.
    I will try it in the next few days.

    Best regards, Rafael
     
  9. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    I want to use Vuforia too, but Vuforia its not compatible with IL2CPP in UWP, for now.
    Or maybe i need other version of Vuforia.
     
  10. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    After installing the Unity 2017.2.1p2 it's getting better.

    But i get this huge error log:

    Code (CSharp):
    1. UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\Data\Managed\System.Data.dll" --additionalreferences="Temp\StagingArea\Data\Managed","Temp\StagingArea\Data\Managed\Plugins\x86","Temp\StagingArea\Data\Managed\Plugins\x64","Temp\StagingArea\Data\Managed\Plugins\x64","Temp\StagingArea\Data\Managed\Plugins\x86" --platform="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0\Facade\Windows.winmd" --dbg=pdb --framework="Temp\StagingArea\Data\Managed" --alt=Microsoft.Win32.SafeHandles,mscorlib;System,mscorlib;System,System;System,System.ComponentModel.Composition;System,System.Core;System.CodeDom.Compiler,System;System.Collections,mscorlib;System.Collections.Concurrent,mscorlib;System.Collections.Concurrent,System;System.Collections.Generic,mscorlib;System.Collections.Generic,System;System.Collections.Generic,System.Core;System.Collections.ObjectModel,mscorlib;System.Collections.ObjectModel,System;System.Collections.Specialized,System;System.ComponentModel,System;System.ComponentModel.DataAnnotations,System.ComponentModel.DataAnnotations;System.ComponentModel.DataAnnotations.Schema,System.ComponentModel.DataAnnotations;System.Data,System.Data;System.Data.Common,System.Data;System.Diagnostics,mscorlib;System.Diagnostics,System;System.Diagnostics.CodeAnalysis,mscorlib;System.Diagnostics.Contracts,mscorlib;System.Diagnostics.Tracing,mscorlib;System.Dynamic,System.Core;System.Globalization,mscorlib;System.IO,mscorlib;System.IO,System;System.IO,System.Core;System.IO.Compression,System;System.IO.Compression,System.IO.Compression.FileSystem;System.IO.IsolatedStorage,mscorlib;System.Linq,System.Core;System.Linq.Expressions,System.Core;System.Net,System;System.Net.NetworkInformation,System;System.Net.Security,System;System.Net.Sockets,System;System.Numerics,System.Numerics;System.Reflection,mscorlib;System.Reflection.Emit,mscorlib;System.Resources,mscorlib;System.Runtime,mscorlib;System.Runtime.CompilerServices,mscorlib;System.Runtime.CompilerServices,System.Core;System.Runtime.ExceptionServices,mscorlib;System.Runtime.InteropServices,mscorlib;System.Runtime.InteropServices,System;System.Runtime.InteropServices,System.Core;System.Runtime.InteropServices.ComTypes,mscorlib;System.Runtime.InteropServices.ComTypes,System;System.Runtime.InteropServices.WindowsRuntime,mscorlib;System.Runtime.Serialization,mscorlib;System.Runtime.Serialization,System.Runtime.Serialization;System.Runtime.Serialization.Json,System.Runtime.Serialization;System.Runtime.Versioning,mscorlib;System.Runtime.Versioning,System;System.Security,mscorlib;System.Security.Authentication,System;System.Security.Authentication.ExtendedProtection,System;System.Security.Claims,mscorlib;System.Security.Principal,mscorlib;System.ServiceModel,System.ServiceModel;System.ServiceModel.Channels,System.ServiceModel;System.ServiceModel.Description,System.ServiceModel;System.ServiceModel.Dispatcher,System.ServiceModel;System.ServiceModel.Security,System.ServiceModel;System.ServiceModel.Security.Tokens,System.ServiceModel;System.Text,mscorlib;System.Text.RegularExpressions,System;System.Threading,mscorlib;System.Threading,System;System.Threading,System.Core;System.Threading.Tasks,mscorlib;System.Threading.Tasks,System.Core;System.Windows.Input,System;System.Xml,System.Runtime.Serialization;System.Xml,System.Xml;System.Xml.Linq,System.Xml.Linq;System.Xml.Schema,System.Xml;System.Xml.Serialization,System.Xml;<winmd>,Windows.winmd;<winmd>,Windows.ApplicationModel.Calls.CallsVoipContract.winmd;<winmd>,Windows.ApplicationModel.SocialInfo.SocialInfoContract.winmd;<winmd>,Windows.ApplicationModel.StartupTaskContract.winmd;<winmd>,Windows.Devices.Custom.CustomDeviceContract.winmd;<winmd>,Windows.Devices.DevicesLowLevelContract.winmd;<winmd>,Windows.Devices.Printers.PrintersContract.winmd;<winmd>,Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract.winmd;<winmd>,Windows.Devices.SmartCards.SmartCardEmulatorContract.winmd;<winmd>,Windows.Foundation.FoundationContract.winmd;<winmd>,Windows.Foundation.UniversalApiContract.winmd;<winmd>,Windows.Gaming.XboxLive.StorageApiContract.winmd;<winmd>,Windows.Graphics.Printing3D.Printing3DContract.winmd;<winmd>,Windows.Networking.Connectivity.WwanContract.winmd;<winmd>,Windows.Services.Store.StoreContract.winmd;<winmd>,Windows.Services.TargetedContent.TargetedContentContract.winmd;<winmd>,Windows.System.Profile.ProfileHardwareTokenContract.winmd;<winmd>,Windows.System.Profile.ProfileSharedModeContract.winmd;<winmd>,Windows.UI.ViewManagement.ViewManagementViewScalingContract.winmd;<winmd>,Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd;<winmd>,Windows.ApplicationModel.Activation.ActivationCameraSettingsContract.winmd;<winmd>,Windows.ApplicationModel.Activation.ContactActivatedEventsContract.winmd;<winmd>,Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd;<winmd>,Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract.winmd;<winmd>,Windows.ApplicationModel.Calls.Background.CallsBackgroundContract.winmd;<winmd>,Windows.ApplicationModel.Calls.LockScreenCallContract.winmd;<winmd>,Windows.ApplicationModel.FullTrustAppContract.winmd;<winmd>,Windows.ApplicationModel.Preview.InkWorkspace.PreviewInkWorkspaceContract.winmd;<winmd>,Windows.ApplicationModel.Preview.Notes.PreviewNotesContract.winmd;<winmd>,Windows.ApplicationModel.Resources.Management.ResourceIndexerContract.winmd;<winmd>,Windows.ApplicationModel.Search.Core.SearchCoreContract.winmd;<winmd>,Windows.ApplicationModel.Search.SearchContract.winmd;<winmd>,Windows.ApplicationModel.Wallet.WalletContract.winmd;<winmd>,Windows.Devices.Portable.PortableDeviceContract.winmd;<winmd>,Windows.Devices.Printers.Extensions.ExtensionsContract.winmd;<winmd>,Windows.Devices.Scanners.ScannerDeviceContract.winmd;<winmd>,Windows.Devices.Sms.LegacySmsApiContract.winmd;<winmd>,Windows.Gaming.Input.GamingInputPreviewContract.winmd;<winmd>,Windows.Gaming.Preview.GamesEnumerationContract.winmd;<winmd>,Windows.Gaming.UI.GameChatOverlayContract.winmd;<winmd>,Windows.Gaming.UI.GamingUIProviderContract.winmd;<winmd>,Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract.winmd;<winmd>,Windows.Management.Deployment.Preview.DeploymentPreviewContract.winmd;<winmd>,Windows.Management.Workplace.WorkplaceSettingsContract.winmd;<winmd>,Windows.Media.AppBroadcasting.AppBroadcastingContract.winmd;<winmd>,Windows.Media.AppRecording.AppRecordingContract.winmd;<winmd>,Windows.Media.Capture.AppBroadcastContract.winmd;<winmd>,Windows.Media.Capture.AppCaptureContract.winmd;<winmd>,Windows.Media.Capture.AppCaptureMetadataContract.winmd;<winmd>,Windows.Media.Capture.CameraCaptureUIContract.winmd;<winmd>,Windows.Media.Capture.GameBarContract.winmd;<winmd>,Windows.Media.Devices.CallControlContract.winmd;<winmd>,Windows.Media.MediaControlContract.winmd;<winmd>,Windows.Media.Playlists.PlaylistsContract.winmd;<winmd>,Windows.Media.Protection.ProtectionRenewalContract.winmd;<winmd>,Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract.winmd;<winmd>,Windows.Networking.Sockets.ControlChannelTriggerContract.winmd;<winmd>,Windows.Networking.XboxLive.XboxLiveSecureSocketsContract.winmd;<winmd>,Windows.Perception.Automation.Core.PerceptionAutomationCoreContract.winmd;<winmd>,Windows.Security.EnterpriseData.EnterpriseDataContract.winmd;<winmd>,Windows.Security.ExchangeActiveSyncProvisioning.EasContract.winmd;<winmd>,Windows.Services.Maps.GuidanceContract.winmd;<winmd>,Windows.Services.Maps.LocalSearchContract.winmd;<winmd>,Windows.Storage.Provider.CloudFilesContract.winmd;<winmd>,Windows.System.Profile.SystemManufacturers.SystemManufacturersContract.winmd;<winmd>,Windows.System.Profile.ProfileRetailInfoContract.winmd;<winmd>,Windows.System.UserProfile.UserProfileContract.winmd;<winmd>,Windows.System.UserProfile.UserProfileLockScreenContract.winmd;<winmd>,Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd;<winmd>,Windows.UI.Core.AnimationMetrics.AnimationMetricsContract.winmd;<winmd>,Windows.UI.Core.CoreWindowDialogsContract.winmd;<winmd>,Windows.UI.Xaml.Hosting.HostingContract.winmd;<winmd>,Windows.Web.Http.Diagnostics.HttpDiagnosticsContract.winmd;<winmd>,Windows.System.SystemManagementContract.winmd;<winmd>,Windows.ApplicationModel.Calls.CallsPhoneContract.winmd;<winmd>,Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.winmd;<winmd>,Windows.Embedded.DeviceLockdown.DeviceLockdownContract.winmd;<winmd>,Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract.winmd;<winmd>,Windows.Phone.PhoneContract.winmd;<winmd>,Windows.Phone.StartScreen.DualSimTileContract.winmd;<winmd>,Windows.UI.WebUI.Core.WebUICommandBarContract.winmd --ignore=System.IConvertible,mscorlib.
    2. Catastrophic failure while running rrw: System.Exception: Assembly "System.Data" is already registered.
    3.    at Unity.SearchPathAssemblyResolver.AddAssembly(AssemblyDefinition assembly)
    4.    at Unity.ReferenceRewriter.RewriteContext.For(String targetModule, DebugSymbolFormat symbolFormat, String supportModule, String supportModulePartialNamespace, String[] frameworkPaths, String projectLockFile, String[] additionalReferences, String platformPath, ICollection`1 strongNamedReferences, ICollection`1 winmdReferences, IDictionary`2 alt, IDictionary`2 ignore)
    5.    at Unity.ReferenceRewriter.Program.Main(String[] args)
    6.  
    7. PostProcessWinRT.RunReferenceRewriter () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:710)
    8. PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:211)
    9. UnityEditor.WSA.BuildPostprocessor.DoPostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:142)
    10. UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:149)
    11. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    @rafaelsistrade could you try reproducing this on a smallest project possible and upload it here? This shouldn't be happening.
     
  12. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    This is the sample for Hololens Vuforia from the store, i just added a connection to a SQL server database ,some model classes and a button. I got the System.Data from: C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity. Maybe it needs a x86 version, just saying.
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Yeah I'll need the project in order you tell you anything about the failure.
     
  14. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    I sent you a PM with the link.

    Best regards, Rafael Pereira.
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    It's a bug in Unity :(. Can we get a bug report?

    In the meantime, I found a workaround for you:

    1. Move System.Data.dll from Plugins folder to the root of your project (next to Assets/Library/Project Settings folders).
    2. Create two text files named "mcs.rsp" and "csc.rsp". Make sure that is their exact names. Put this into both of them:

    Code (csharp):
    1. -r:System.Data.dll
    I was able to build your project after making these changes.
     
  16. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Hello.

    I made the changes you told me to do. But when i remove the dll from assets it keeps saying that Data doesn't exit in System.
    What I'm doing wrong?

    https://imgur.com/tRhvV7l
     
  17. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    I sent the bug report.
    You can build the project in Unity, then use it in the Visual Studio as a Hololens project?

    Best regards, Rafael Pereira.
     
  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Did you put mcs.rsp and csc.rsp files into your Assets folder in your project?
     
  19. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    It was that missing.
    I's working.
    Thanks for the excellent support.

    Now in visual studio, i get a 0xC0000005: Access violation executing location. And it get stuck in the Hololens emulator, if i use the Vuforia SDK in the XR Settings.
    If i don't use it, it say that the device is not supported by Vuforia, but it opens the application.


    Best regards, Rafael Pereira.
     
    Last edited: Feb 6, 2018
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Try setting debugger to mixed mode in VS project properties - it should better show you the location of the crash.
     
  21. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    I don't have that option in Visual Studio 2017.

    upload_2018-2-8_14-48-40.png
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Oh, Native Only should work too.
     
  23. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Still the same. No more info.
     
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    So what's the stacktrace when that happens?
     
  25. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Just give this error in the 0 part of memory
     

    Attached Files:

  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Click on the "Call Stack" tab in Visual Studio. It will give you more information.
     
  27. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
  28. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Right click on UnityPlayer.dll and press "Load symbols". The PDB file should be located in <UnityInstallDir>\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\x86\debug.
     
  29. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    > 00000000() Unknown Non-user code
    [Frames below may be incorrect and/or missing] Annotated Frame
    UnityPlayer.dll!VRVuforia::DeviceConnectedCheckCallback(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!VRDevice::UpdateCachedDeviceState(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!VRDevice::StartRenderingToDevice(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!VRDevice::SetEnabled(bool) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!VRDevice::Initialize(bool) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!VRModule::InitializeDevice(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!`VRModule::VRModule'::`2'::playerLoadFirstScenePreAwakeRegistrator::Forward() Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!CallbackInfoBase<void (*)(void),void (*)(void const *)>::Invoke(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!PlayerLoadFirstScene(bool) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!metro::LoadFirstScene(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!UnityPlayer::AppCallbacks::UnitySplashScreenLoop(void) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThreadImplementation(void *) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!UnityPlayer::AppCallbacks::_AppThread(void *) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!<lambda>(void)() Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!Platform::Details::__abi_FunctorCapture<class <lambda_8be051150a60ea47db50e12fdb4d75d2>,void,struct Windows::Foundation::IAsyncAction ^>::Invoke(struct Windows::Foundation::IAsyncAction ^) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!Windows::System::Threading::WorkItemHandler::Invoke(struct Windows::Foundation::IAsyncAction ^) Unknown Non-user code. Symbols loaded.
    UnityPlayer.dll!Windows::System::Threading::WorkItemHandler::[Windows::System::Threading::WorkItemHandler::__abi_IDelegate]::__abi_Windows_System_Threading_WorkItemHandler___abi_IDelegate____abi_Invoke(struct Windows::Foundation::IAsyncAction ^) Unknown Non-user code. Symbols loaded.
    threadpoolwinrt.dll!6dd84c6f() Unknown Non-user code. Cannot find or open the PDB file.
    threadpoolwinrt.dll!6dd8aff6() Unknown Non-user code. Cannot find or open the PDB file.
    ntdll.dll!77629bd2() Unknown Non-user code. Cannot find or open the PDB file.
    ntdll.dll!77629b92() Unknown Non-user code. Cannot find or open the PDB file.
     
  30. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
  31. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    Based on the callstack, it's crashing in Vuforia's native code. Unfortunately Unity doesn't manage their native code, so I can only either pass on your call stack and repro steps to Vuforia, you can submit a bug report to use and with your permission I will share the project with them for them to resolve the issue, or you can submit a bug report to them.
    I can say that where it is crashing is when attempting to confirm the Hololens device is connected. Meaning it is on, it is tracking and it has focus. I've personally not seen this callstack when using Vuforia on a Hololens device, but it very well could be a regression as well.
    If you do submit a bug report through Unity, please respond in this thread with the bug number if you are okay with us sharing the project with Vuforia.
     
  32. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Maybe the problem is that i'm testing in the Hololens Emulator.
     
  33. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    You can pass the call stack and the project to Vuforia, please.
    I have sent the project to Tautvydas-Zilys already.
     
  34. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    Speaking with Tautvydas, it seems the link to your project has expired. Rather than hosting the project on an external site again, it would be better if you could submit a bug report through the Editor using Help->Report a bug and post the bug case number here please. Doing so will allow our QA teams to better track the bug and the fix and provide you with an update when the fix is available.
     
  35. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Hello Ed.
    The case report is number 1002690.
     
  36. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    Thank you for submitting the report! I've forwarded the project to Vuforia and we'll update your bug report when a resolution has been found.
     
  37. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Still without any answer from Vuforia.
     
  38. NoureddineH

    NoureddineH

    Joined:
    Nov 7, 2016
    Posts:
    2
    Hi! I'm sorry to be bumping such an old thread. But I'm running into the very same issue that started this thread and the workaround didn't work for me.

    Is there any other way to make it work?

    Thanks!
     
  39. Subere023

    Subere023

    Joined:
    Apr 27, 2016
    Posts:
    47
    I am looking for help with this issue as well. While using the response files lets me compile the project, it doesn't actually seem to do anything.
     
  40. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
  41. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    I need to use the .NET assembly, because i need to use Vuforia.
     
  42. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    System.Data is only supported on IL2CPP. Why can't you use Vuforia with IL2CPP?
     
  43. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    In the version 7.0.50 of Vuforia it say its not supported IL2CPP.
     
  44. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    Vuforia currently does not support the IL2CPP scripting backend for Windows Store Apps. Please select ".NET" as the scripting backend in the "Other Settings" section of the Player Settings
     
  45. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Interesting. Let me look at this.
     
  46. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Looks like IL2CPP support was added to Vuforia 7.1, which is included with Unity 2018.1.
     
  47. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    So i can't use the version 2017.4.2 that's the version that Microsoft refer as usable version.
     
  48. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    System.Data is not compatible with .NET scripting backend. There's no way around it except for not using it.

    Vuforia is not compatible with UWP with IL2CPP scripting backend until Unity 2018.1.

    In either case, you'll have to make a choice on what's more important to you. Besides, 2018.1 is a fully supported Unity version too.
     
  49. rafaelsistrade

    rafaelsistrade

    Joined:
    Jan 29, 2018
    Posts:
    68
    It compiles with the version Unity 2018.1, i just need the Hololens to test it better.

    Thanks for the reply.
     
  50. HoloDeveleoper

    HoloDeveleoper

    Joined:
    May 14, 2018
    Posts:
    12
    I have a similar Problem and upgraded to 2018.1 aswell to fix it. But the Problem still remains.
    Maybe u use a diffrent .dll than me? where did you get yours from?