Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UnauthorizedAccessException

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support
View previous topic :: View next topic  
Author Message
Wolfgang



Joined: 06 May 2012
Posts: 2

PostPosted: Sun May 06, 2012 3:46 pm    Post subject: UnauthorizedAccessException Reply with quote

Hi,
I'm running version 2.3.13.0 on WIN7 64 bit using VS2010 TFS.
I added my VS project to the workspace, scanned all cultures, added my translations, and then built the German language using Source Localization.

I get the following in the output window:
Building abcWeb\abc, German
Writing changes to C:\Code\abcWeb\Main\Source\abcWebsite\Source\abcWeb\App_GlobalResources\abc.de.resx
** ERROR E001: An error occurred while building file de for target abcWeb\abc. This file will not be built. Error: System.UnauthorizedAccessException Description: Access to the path 'C:\Code\abcWeb\Main\Source\abcWebsite\Source\abcWeb\App_GlobalResources\abc.de.resx' is denied.
Build complete -- 1 errors, 0 warnings

On my local machine the file permissions for the App_GlobalResources file and the resource files are set to full control for both users and administrators. VS2010 is closed.

Can you give me some help in understanding what I need to do to write the changes to the project?
Thanks,
Wolfgang
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun May 06, 2012 11:09 pm    Post subject: Reply with quote

This error usually means that there is a permissions problem or the file is readonly. If you try to open the problem file in Notepad and save it then I think you will probably get the same error (is that correct)?

If you are using TFS then I suspect that it may be setting the Readonly attribute for the file to true because it is not checked out.

Version 3 of Globalizer includes support for Custom Events which allows you to configure Globalizer to automatically checkout files from TFS before it tries to change them - see the following thread for more detail:

http://www.infralution.com/phpBB2/viewtopic.php?t=1834
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Wolfgang



Joined: 06 May 2012
Posts: 2

PostPosted: Mon May 07, 2012 9:21 am    Post subject: Reply with quote

Thanks for the quick reply! Checking out the file before running the build solved the problem. The link in your response is also very helpful. We'll look at upgrading.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group