Skip to content

Question Using developer proxy with Microsoft Graph .NET Client Library 5.x #1232

Discussion options

You must be logged in to vote

OK, I think I've got it. Seems like Microsoft Graph .NET SDK on .NET 4.8 uses an older HTTP adapter, which is configured to use WinHTTP API proxy settings rather than the internet proxy settings which the m365proxy enables on startup.

To use m365proxy with .NET 4.8, you need to configure it as proxy with the WinHTTP API. You can do that using the netsh command (run as admin):

netsh winhttp set proxy proxy-server="http=localhost:8000;https=localhost:8000"

When you're done, you can reset the WinHTTP settings by calling:

netsh winhttp reset proxy

Hope this helps.

@garrytrinder we should add this to our docs

/cc: @gavinbarron @sebastienlevert

Replies: 15 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by waldekmastykarz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #346 on June 04, 2025 10:04.