error:HRESULT:0x80070005, access denied.

Started by
8 comments, last by nickme 10 years, 5 months ago

hi

i compiled and ran a sdl test program in vs 2013 express. however, after i exported the template and tried to create a project with that template, i got an access denied exception.

i had done this with directx and opengl without incident.

any suggestion will be appreciated.

thanks

Advertisement

I little more information would help... Like where does it crash, and some revelent code snippets around where it crash for example.

hi Vortez:

thanks for your reply.

after i clicked my template icon in the new project dialogue windows and the ok button on the lower right of the dialogue window, a small window popped up and said that "operation the complete successfully. after i clicked the OK button in the small window, that small window closed and another small window popped up and said "Access is denied. (exception from RESULT:0x80070005 (E_ACCESSDENIED)).

after that i browsed to the newly created folder and saw that the folder is empty. and the solution explorer is blank, there is no file or folder.

i should indicate that i was setting up for sdl 2.0.

hi

now i found out that directx and opgengl template had the same problem as well. :(.

Sounds like a windows file-system problem rather than something to do with SDL or visual studio... Do you have write-permission at the location where you're trying to create the files? Does running visual studio as an administrator help?

hi hogman:

i checked to see the property of the file folder that i created the project in. it attribute said "read only". i unchecked and apply it and later on open it property again and see that the read only checkbox is checked again. i created the folder by crt,shift,N. is that the problem?

how can i change it so that it is not read only?

thanks

Im not sure if you're tolling or what...

Unchecking the read only box of that directory and selecting "apply to this directory and all sub directory and files" should do it.

If your files are on a cd-rom or some read only media then it's not gonna work, of course... If the file are in a networked folder, make sure you have write permission.

hi

i tried to run as administrator but the same problem exist.

i did unchecked the attributes "read only" of the folder. but when i go back to see it again, the attributes is "read only" again. i did click the apply button before closing the window.

my pc has two hard drive. one hard disk(D:\) and ssd(C:\). the folder i created project in is in hard disk(D:\). when i right click all the folders in my d:\, they all have attributes with "read only" checked. although i can create new projects in the folder, i cannot create new project with template.

i think the problem is with vs express 2013 desktop. what do you think?

thanks for helping.

The "read only" attribute will always be set on folders, but that's not what you're being advised to look at here. Instead, when you right-click on the folder, go to the Security tab and check the permissions in there.

i think the problem is with vs express 2013 desktop. what do you think?

I don't think so - 99 times out of 100, whenever someone thinks they've got a problem with their tools, it turns out that the real problem was that they were doing something wrong themselves all along. It's highly likely that your case is no different.

Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.

HI Mhagin:

i did what you asked (right click on the folder and go to the security tab and see that it is under my name and it also showed my email address) and saw that all it's six permissions (full control, modifies, read & execute, list folder contents, read, and write) are checked. then i did it again and the result is the same, access denied.

sorry

This topic is closed to new replies.

Advertisement