eydjey / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Google.Apis.dll Wrongly Mirror the System.Web.HttpUtility #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download the .Net libraries
2.Import the required libraries into another ASP.Net project to write for 
Google Plus
3.Attempt to load a page that attempts to directly access any method in the 
actual .Net HttpUtility class.

Example code that will trigger this error with this library, but would 
otherwise work in all other situations.

string strErrorMessage = HttpUtility.HtmlEncode(Request.QueryString["error"]);

What is the expected output? What do you see instead?
We should just see whatever logic and information is determined by the ASP.Net 
application.

What version of the product are you using? On what operating system?
v1.0.29252; Windows 7

Please provide any additional information below.
You can find a sample project to duplicate this issue here:  
http://dnngoogleplus.codeplex.com/SourceControl/changeset/changes/70181

(Note that the code above will need to be loaded into a DotNetNuke website in 
order to run. You should be able to duplicate this on any website though.)

Original issue reported on code.google.com by hismight...@gmail.com on 30 Sep 2011 at 3:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue is due to the temporary inclusion of the HttpUtility class in the 
libraries in order to be compatible with the .NET 3.5 client framework. There 
is a bug in this version of .NET which is fixed in later versions, but where 
several of these utilities are excluded from the client profile. It is a known 
issue in the beta library. The solution is to download the source and build 
Google.Apis.dll without the HttpUtility classes.

Original comment by asky...@google.com on 30 Sep 2011 at 5:08

GoogleCodeExporter commented 9 years ago
This is one of several facets of a bigger issue, I've opened 155 to track so I 
am closing the others as duplicates.

Original comment by asky...@google.com on 30 Sep 2011 at 5:41