Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by guimak · Mar 02, 2017 at 11:34 PM · unity 5servicein-app-purchase

Unity IAP plugin is installed, but Unity IAP is disabled - error

hi,

I'm constantly getting errors with Unity IAP when I'm working offline. It's slightly random, but definitely very frequent.

The gist is while I'm online and I can see the services on the Services tab then everything is fine. If I go offline though,a few minutes later, Visual Studio asks to Reload the project as there has been modifications. Browsing back to Unity I see loads of errors on the console relating to Unity IAP. Besides the one on the title, it also says "Could not load file or assembly UnityEngine.Purchasing, Version=0.0.0.0."

I can "fix" the problem by going online again, waiting for the services to refresh then go back to visual studio and reload the solution again, but this is happening way too often now to the point that it's slowing down my development.

I'm on version 5.5.0f3 using Visual Studio 2015 Enterprise Edition Update 2.

alt text Any ideas would be very much appreciated.

thanks a bunch!

unity-iap-error.png (35.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by bouemama · Mar 24, 2017 at 10:33 PM

This how I fix this error .... Double click on red alert will open "PurchasingCheck.cs" codes :

 #if !UNITY_PURCHASING
 #error "Unity IAP plugin is installed, but Unity IAP is not enabled. Please enable Unity IAP in the Services window."
 #endif

  1. cut this code + save => unity services tab will reload and work

  2. past the code again + save .

i think this is another bug still exist on last version 5.5.2f1

EDIT 2

since this is a known bug i just trying to set how i skip it

  1. cut this code + save => unity

  2. Assets reimport All

  3. click services icone

  4. past the code again + save .

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by MaxBackcountry · May 22, 2017 at 01:32 PM

@nicholasr

Hi Nicholas,

I experienced the same problem (working with version 5.5.2 f1). But bouemama's workaround did not work for me. I had to remove the whole folder UnityPurchasing from the Assets/Plugins folder. After having done that services window in the editor loaded again (which was very important as we use Colleborate). After loading IAP service was toggled off.

I refrain from integrating the IAP plugin again. The problem occurred totally out of the blue. We had integrated the IAP plugin about two weeks ago and until today there were no problems.

What do you recommend? Update to 5.6? Thanks

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Moath-Qwaqneh · Jun 01, 2017 at 08:16 AM 0
Share

Thanks a lot :) it works very well with me

avatar image
0

Answer by MaverickPL · Mar 13, 2017 at 06:55 AM

I have the same problem ... Someone can fix that ? Im trying to relog, exit Unity, relog again and IAP not start.

 TypeLoadException: Could not load type 'LODLightmapScale' from assembly 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
 
 FileNotFoundException: Could not load file or assembly 'UnityEngine.Purchasing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
 System.Reflection.MonoMethodInfo.GetMethodInfo (IntPtr handle) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:59)
 System.Reflection.MonoMethod.GetPseudoCustomAttributes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:293)
 System.MonoCustomAttrs.GetPseudoCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:78)
 System.MonoCustomAttrs.IsDefined (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:301)
 System.Reflection.MonoMethod.IsDefined (System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:274)
 System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:326)
 System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:299)
 UnityEditor.EditorAssemblies.ProcessStaticMethodAttributes (System.Type type) (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:95)
 UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:158)
 UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
 
 Assets/Plugins/UnityPurchasing/script/PurchasingCheck.cs(3,0): error CS1029: #error: '"Unity IAP plugin is installed, but Unity IAP is not enabled. Please enable Unity IAP in the Services window."'
 
 The Unity IAP plugin is installed, but Unity IAP is disabled. Please enable Unity IAP in the Services window.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by nicholasr · Mar 29, 2017 at 05:37 PM

@bouemama @guimak @MaverickPL I apologize for the frustration. Thank you for sharing the issues and the workaround.

We're planning on addressing the online/offline "sensitivity" generally, for all Unity Services in an upcoming Unity version. We recognize its faults. The work is ongoing so no release date is available yet. A workaround that may also work is to manually copy the UnityEngine.Purchasing.dll into your project (from /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityPurchasing/ folder), bypassing the automatic copying currently performed by the Services window.

Also we're hopefully helping prevent perma-broken projects by changing the PurchasingCheck code to be a 'warning' in Unity IAP 1.10.1, shipping hopefully this week.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kildare88 · May 01, 2017 at 03:52 AM 0
Share

Please also mention where you're supposed to paste the dll file into in the project directory

avatar image
0

Answer by milox777 · Apr 20, 2017 at 07:58 PM

God I hate Unity, I have the same problem, services just crap out for no reason, now I cannot compile, cannot open Services window, NOTHING!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

145 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error setting up Google Play Services - Invalid classname extension has been thrown by the target of an invocation 0 Answers

Unity Ads not showing in editor (dummy ad placement is not showing too) as well as in the build. 2 Answers

How to Add Analytics Tracker Component to GameObject 1 Answer

Unity ads not showing rewarded video ad. 1 Answer

Services option cannot be pressed and cannot be on 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges