Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a large project in C#.

This project compiles and runs fine. I want to add a new form called ChangeSplash. I click Project->Add Windows Form and enter "ChangeSplash" and when I click ADD I get the following error:

Access to the path
'C:\Users\username\AppData\Local\Temp\jorpvyte.fbu\Form.cs' is denied.

The folder jorpvyte.fbu does not exist (and it's not hidden.)

This is an old project and hasn't had any problems like this before.
Anybody got any ideas?

I am using Visual Studio 2008.
Posted
Updated 20-Dec-11 12:08pm
v3

I never had that problem but I would suggest you to create a new project and add all existings file into it.
 
Share this answer
 
Comments
Hex01 20-Dec-11 18:56pm    
Philippe -
Just tried to create a new project and got the same error except this time it says c:\Users\username\AppData\Local\4fnv4rei.52h\Temp\Properties\AssemblyInfo.cs is denied.

Starting to sound like a access rights problem.
Did you check if you have access to this path (C:\Users\username\AppData\Local\Temp)?

If so, you may only have read only permission on certain folders, which is causing this issue.
 
Share this answer
 
Comments
Hex01 20-Dec-11 18:57pm    
Nikil -
Yes I have access. I can create and delete files and folders. I even cleaned everything out of the Temp just to see what would happen.

No change.
In the file path there is a name jorpvyte.fbu.
An internet search seems to point to that file extension as a firefox backup file.
When you create the new file is a backup program trying to write to that directory that has the junction point in the middle.

If need be you can run process monitor downloadable from Sysinternals site here
http://technet.microsoft.com/en-us/sysinternals/bb896645[^]

You can start procmon, and then try the add form,then stop procmon and look at the trace. Search for the File name and it should lead you to the program that is causing the problem.
you can also add an access denied filter to narrow it down more.
And if you already know how to use it you can also use the target on the error box,that may point to the problem or may just give you error reporting.
Hope this helps.
 
Share this answer
 
OK, finally got it fixed.

I found out this problem is caused by a hot fix from Microsoft.
They have a patch to fix this: http://archive.msdn.microsoft.com/KB959417[^]

However, the patch did not work for me.

I tried to uninstall VS2008 but it errors out.

Here is a program (from Microsoft) that will uninstall VS2008: http://go.microsoft.com/fwlink/?LinkId=105801[^]

This takes about 30 min to run.

After that, I reinstalled Visual Studio and everything works as it should.

I want to thank everyone for your great suggestions. You pointed me in the right direction.

Thanks everyone!
 
Share this answer
 
Since you have said it is an old programme, I am not sure but hope it helps:

This directory is what is known as a junction point[^], may be relate dto this issue

From the MSDN documentation:

These junction points can be identified as follows:

They have the FILE_ATTRIBUTE_REPARSE_POINT, FILE_ATTRIBUTE_HIDDEN, and FILE_ATTRIBUTE_SYSTEM file attributes set.

They also have their access control lists (ACLs) set to deny read access to everyone.

Applications that call out a specific path can traverse these junction points if they have the required permissions. However, attempts to enumerate the contents of the junction points will result in failures.

Good luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900