Sign in to follow this  
Invalidtactics

Access Denied When Saving?

Recommended Posts

xgnhnNq.png

 

Please help, I cannot save any image I create under any location.

 

 

System.UnauthorizedAccessException: Access to the registry key 'HKEY_CURRENT_USER\SOFTWARE\paint.net' is denied.

 

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

 

   at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)

 

   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)

 

   at PaintDotNet.SystemLayer.RegistrySettings.CreateSettingsKey(Boolean writable) in d:\src\pdn\paintdotnet\src\SystemLayer\RegistrySettings.cs:line 69

 

   at PaintDotNet.SystemLayer.RegistrySettings.SetObject(String key, Object value) in d:\src\pdn\paintdotnet\src\SystemLayer\RegistrySettings.cs:line 169

 

   at PaintDotNet.FileType.Save(Document input, Stream output, SaveConfigToken token, Surface scratchSurface, ProgressEventHandler callback, Boolean rememberToken) in d:\src\pdn\paintdotnet\src\Data\FileType.cs:line 278

 

   at PaintDotNet.Controls.DocumentWorkspace.<>c__DisplayClass30.<DoSave>b__28() in d:\src\pdn\paintdotnet\src\PaintDotNet\Controls\DocumentWorkspace.cs:line 2954

 

   at PaintDotNet.Functional.Func.Try(Action f) in d:\src\pdn\paintdotnet\src\Base\Functional\Func.cs:line 174

Share this post


Link to post
Share on other sites

If you find paint.net in the start menu, right-click on it and choose "run as administrator". Do you still get the same problem then?

Share this post


Link to post
Share on other sites

OK, looks to me that you have some major problem with your registry.

I'm not sure how to fix that, but paint.net won't work right until that problem is solved.

Share this post


Link to post
Share on other sites

Would a system restore work?

That's a GREAT place to start.

My advice: NEVER use CCleaner. It tends to cause more problems than it fixes.

Share this post


Link to post
Share on other sites

Why would you run CCleaner? There's only 2 reasons, as far as I can see:

1) You're having a problem with your system - Instead of letting CCleaner run wild in your registry, I find it better to just deal with the specific problem you're having. A little Googling should get you to a specific answer to that problem.

or

2) You're NOT having a problem you just think you should run a registry cleaner once in a while to keep your system "tuned up" - This couldn't be more stupid. If your system is running fine, there is NO REASON to run something like this.

  • Upvote 2

Share this post


Link to post
Share on other sites

There was adware in my registry so I ran a scan.

 

I just got back from using a system restore and the adware is back.

 

The CCleaner scan in the registry fixed the problem last time, but MAY have damaged Paint.Net. 

 

1bVgWwW.png

 

You can see the adware, but there are many many other files in the list. 

 

Is there ones I should look for that relate to PDN?

Share this post


Link to post
Share on other sites

Of course I agree this is piriform's problem and not paint.net's, but in case youre curious: maximize the window, sort by registry key, and search for HKCU\Software\paint.net. You will probably find other entries in the sorted region of HKCU\Software so youll know when youve found that region, but it isn't guaranteed (I didn't have that many). Then you can find it's comments on why it's messed up.  I only found "obsolete software". When I allowed it to just clean one of those, it said it was going to delete it, and it did. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this