1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Unity 5.6 is now released.
    Dismiss Notice
  6. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

Can't publish in Windows store. wininet.ddl is calling unsupported libraries

Discussion in 'Windows' started by FFUFUnity, Jun 13, 2017.

  1. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I'm trying to publish my application in the windows store but the tests fail:

    wmf.JPG

    Seems like the wininet.dll is callin an unsopprted dll advapi32.dll.

    Also it tells me to add linker options in Visual Studio whereI just can't find how to set. So my questions:

    1. How can I set the linker options properly?
    2. Any solution for the wininet.dll problem?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,194
    Where did you get wininet.dll from? It seems to be compiled against windows desktop. I also seem to have one in my C:\Windows\system32\ folder - surely you didn't copy it from there?
     
  3. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I actually did not copy anything. I just exported my app from Unity for "Windows Store" with universal 10. Should I use different settings?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,194
    There is a "wininet.dll" inside your project somewhere, and it's causing issues. I'm asking where you got it from :).
     
  5. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    I'm exporting for Windows Store from Unity. In the created folder the is the wininet.dll. So Unity is getting or creating it from somewhere :)
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,194
    Are you sure it's not somewhere in your project? Can you post your editor log after building the Windows Store player from Unity?
     
  7. FFUFUnity

    FFUFUnity

    Joined:
    Sep 13, 2016
    Posts:
    4
    So I got those two errors in the console:

    Reference Rewriter found some errors while running with command --target="Temp\StagingArea\Vuforia.UnityExtensions.dll" --additionalreferences="Temp\StagingArea","Temp\StagingArea\Plugins\x86","Temp\StagingArea\Plugins\x64","Temp\StagingArea\Plugins\x64","Temp\StagingArea\Plugins\x86","C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevelContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Graphics.Printing3D.Printing3DContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Connectivity.WwanContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Store.StoreContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0","C:\Program Files (x86)\Windows


    ---


    Reference rewriter: Error: method `System.Void UnityEngine.RenderTexture::set_generateMips(System.Boolean)` doesn't exist in target framework. It is referenced from Vuforia.UnityExtensions.dll at System.Void Vuforia.DistortionRenderingBehaviour::CreateRenderTexture().
    UnityEngine.Debug:LogError(Object)
    PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:560)
    PostProcessWinRT:process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:127)
    UnityEditor.HostView:OnGUI()

    and the editor.log is attached.
     

    Attached Files:

  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,194
    Well as far as I can tell, that method does not exist. It might cause issues at runtime. That doesn't seem related to your wininet.dll issue. I would try figuring out where that DLL comes from, because it's definitely not produced by Unity.