MyOwnClone / google-api-dotnet-client

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

Creating cmdlet primitives 1.5 missing #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What is the expected output? What do you see instead?
Return Users Object, instead get primitives 1.5 missing. Should be using the 
redirect assembly stated in the app.config file. Google.Apis installed using 
Nuget.

What version of the product are you using?
What is your operating system? Win 7 or 8
What is your IDE? Visual Studio 2012
What is the .NET framework version? 4

Please provide any additional information below.

Only have issues when trying to create a Powershell Cmdlet.

Sample Code here
http://tinyurl.com/mbx3yle

What am I missing here?

Original issue reported on code.google.com by m...@mosheldon.com on 22 Aug 2013 at 10:16

Attachments:

GoogleCodeExporter commented 9 years ago
Can you try to copy the missing dll to your bin folder?
If you still encounter this problem, can you by any chance share your screen 
with me and we will try to solve it together?

Thanks

Original comment by pele...@google.com on 27 Aug 2013 at 1:19

GoogleCodeExporter commented 9 years ago
The newer version of the dll already exists in the folder, if you replace it 
you get an error. I'll email you to schedule a time to look at it.

Original comment by m...@mosheldon.com on 27 Aug 2013 at 2:48

Attachments:

GoogleCodeExporter commented 9 years ago
Any news?

Original comment by pele...@google.com on 29 Aug 2013 at 1:11

GoogleCodeExporter commented 9 years ago
Haven't had a lot of time to play around with it, I have some more ideas. If 
you want to close the issue that's fine. It's definitely an issue on the 
powershell side that needs to be resolved.

Original comment by m...@mosheldon.com on 29 Aug 2013 at 5:42

GoogleCodeExporter commented 9 years ago
Post on Stack Overflow for more input. Will update when I have more to 
contribute to the problem.

http://stackoverflow.com/questions/18542812/powershell-cmdlet-missing-assembly-g
oogle-api

Original comment by m...@mosheldon.com on 31 Aug 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Posting as an update...

Issue still not resolved. 
1) Tried loading System.Net.Http.Primitives into GAC, same error
2) Adding App.config Assembly redirect to machine.config, powershell.config, 
web.config and still get same error.
3) Fusion logs show it finds the 2.1.10.0 but doesn't redirect the calls for 
1.5 to it.
4) This issue started with version 1.4 beta when the switch to .NET 4 was made. 
.NET 3.5 worked fine.

Anyway to reference System.Http 2.1.10.0 directly instead of redirecting? Or if 
you any ideas let me know. Was hoping StackOverflow would have some insight.

Original comment by m...@mosheldon.com on 2 Sep 2013 at 11:46

GoogleCodeExporter commented 9 years ago
Playing more with loading assembly's in GAC, the following error occurs

Get-GAppsUsers : Method not found: 'Void System.Net.Http.HttpClientHandler.set_
AutomaticDecompression(System.Net.DecompressionMethods)'.

Original comment by m...@mosheldon.com on 3 Sep 2013 at 6:14

GoogleCodeExporter commented 9 years ago
I hate all those redirecting stuff. We unfortunately use it because our 
Microsoft.Net.Http dependency.

Sorry that I didn't come with a solution so far. Maybe it's a good idea to 
contact the owner of https://www.nuget.org/packages/Microsoft.Net.Http.

Please continue to update,
Sorry,
Eyal

Original comment by Pele...@gmail.com on 5 Sep 2013 at 2:46

GoogleCodeExporter commented 9 years ago
No problem, I discovered yesterday night that my machine.config file wasn't 
configured right. I had an extra <runtime/> at the middle of the machine.config 
file. My assembly missing issue is fixed, but I have another exception that I 
didn't have time to look at yet. Looking good so far though. Thanks for 
checking in. I'll let you know when it fully working as it should.

Original comment by m...@mosheldon.com on 5 Sep 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Problem solved.

Register the following in GAC (gacutil /i path of dll)

System.Net.Http 2.1.10.0
System.Net.Http.Primitives 2.1.10.0
log4net 1.2.10.0
Add Binding Redirect to 
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config" 
(Replace current runtime tag)

Original comment by m...@mosheldon.com on 5 Sep 2013 at 9:22

GoogleCodeExporter commented 9 years ago
Just for reference, I'm using this in this project

https://code.google.com/p/google-apps-powershell-client/

Original comment by m...@mosheldon.com on 10 Sep 2013 at 5:02

GoogleCodeExporter commented 9 years ago
User find the solution for that

Original comment by pele...@google.com on 3 Oct 2013 at 7:27