Search

System.Windows.Documents.Serialization.SerializerProvider cannot be instantiated on Win7 x64 by JoRi4711

Closed
as Won't Fix Help for as Won't Fix

3
0
Sign in
to vote
Type: Bug
ID: 778520
Opened: 2/4/2013 11:11:54 PM
Access Restriction: Public
1
Workaround(s)
2
User(s) can reproduce this bug
SerializerProvider serializerProvider = new SerializerProvider();
throws a System.UnauthorizedAccessException, trying to access registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WinFX Serializers

I consider this a bug, since a user mode app should be able to use Xps serializers without any rights elevation.
After googling some about this problem I found a few other reports. It seems to be related to windows 7 x64.
When using regedit as administrator, I cannot find that key in windows 7 registry neither in normal location nor in the 64bit mapping path.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

1. Create a normal WPF desktop application.
2. Add a wpf button to the start parge.
3. Add a Click- handler.
4. In C# code behind file add using statement for:
System.Windows.Documents.Serialization
5. In c# handler type:
SerializerProvider serializerProvider = new SerializerProvider();

6. Run and press button.
-> You see the exception on a win7 x64 machine under a standard user account.

Note: I use Microsoft Visual Studio Express 2012 for Windows Desktop.
Version 11.0.51106.01 Update 1
Microsoft .NET Framework
Version 4.5.50709

Product Language

English

Operating System

Windows 7 SP1

Operating System Language

English

Actual results

An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
Additional information: Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WinFX Serializers' is denied.

Expected results

An instance of the SerializerProvider.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 2/20/2013 at 12:30 PM
The WPF team has recently reviewed this issue and will not be addressing this issue as at this time the team is focusing on the bugs impacting the highest number of WPF developers. If you believe that this was resolved in error, please reactivate this bug with any necessary supporting details.

We appreciate the feedback. However, this issue will not be addressed in the next version of WPF. Thank you.
–WPF Team.
Posted by Lars Heinrich on 2/6/2013 at 6:36 AM
Same Story on Windows 8 64bit.
Posted by Microsoft on 2/5/2013 at 2:30 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 2/4/2013 at 11:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Geert Immerzeel on 2/13/2013 at 5:53 AM
If the application is started with administrator-rights (Run as Administrator), the exception does not occur.