Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 AmrAutsera · Aug 19, 2021 at 09:18 AM · systemil2cpp.nethttpstripping

Issue while using HttpClient with Il2cpp builds

When I use System.Net.Http.HttpClient with Il2cpp build for android or ios I always get error for ParseQuery String but it works with mono


  Error: called non-existent method System.Collections.Specialized.NameValueCollection System.Web.HttpUtility::ParseQueryString(System.String)



I though it was related to assemblies stripping, so I added a rule to preserve System.Web assembly

     <assembly fullname="System.Web">
         <type fullname="System.Web.HttpRequest" perserve="all"/>
     </assembly>

But This didn't seem to work


Does anyone have an idea if it is a stripping issue or something related to System.Web dll itself? I appreciate your help

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by JoshPeterson · Aug 24, 2021 at 12:11 PM

It looks like the link.xml file you showed is preserving System.Web.HttpRequest, but the missing method is on System.Web.HttpUtility. Maybe try to add System.Web.HttpUtility to the link.xml file as well.

Comment
Add comment · Show 3 · 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 AmrAutsera · Aug 24, 2021 at 03:28 PM 0
Share

I tried adding it but got the same result

 <assembly fullname="System.Web">
     <type fullname="System.Web.HttpRequest" perserve="all"/>
     <method signature="System.Collections.Specialized.NameValueCollection ParseQueryString(System.String)" />
 </assembly>

maybe unity has its own version of System.Web

avatar image JoshPeterson AmrAutsera · Aug 24, 2021 at 04:01 PM 0
Share

I don't believe that link.xml file will preserve the method you intend. Can you first attempt to keep all of HttpUtility:

 <assembly fullname="System.Web">
          <type fullname="System.Web.HttpRequest" perserve="all"/>
          <type fullname="System.Web.HttpUtility" perserve="all"/>
 </assembly>
avatar image AmrAutsera JoshPeterson · Aug 25, 2021 at 07:12 AM 0
Share

I changed the link file, but I got the same error. I appreciate your help, but it looks like I have to try a different approach that doesn't require System.Web.

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

168 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 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

black screen and froze UI in android AR app with scripting backend il2cpp build 0 Answers

[ASP.NET] [WEB API] Problem with HttpWebRequest.ContentType 0 Answers

UnityWebRequest and System Proxy 0 Answers

build with IL2CPP error unity 4.6.9 while making iOS build 1 Answer

NotImplementedException: Unmanaged activation is not supported 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