Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Norway
Message
De
17/11/2009 16:30:19
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01432969
Message ID:
01435299
Vues:
44
>>I am addressing this post directly to Norwegian developers, but writing in english so others can read it (and it just takes a lot longer to write in norwegian).
>>
>>I have posted about this issue in the past but had no replies.
>>
>>I first encountered this exception on a norwegian pc running Windows with Norwegian language package.
>>
>>The exception is in Norwegian:
>>Noen eller all identitetsreferanser kan ikke oversettes.
>>
>>But I have also seen the exception in english (I think on a danish PC and/or french PC)
>>Some or all identity references could not be translated.
>>
>>I am not sure where this beeing thrown from and I can't reproduce it on my computer. My app only seem to throw this exception on computers with French, Norwegian or Danish language package for Windows.
>>
>>Any help on this would be great.
>>
>>You can reply in norwegian if you want to.
>>
>>Thanks,
>>Einar
>
>I finnaly got a hold of a Swedish laptop where I could generate the exception. The following code throws the exception mentioned above:
>
>        public static void AddFolderAccess(string path, string identity)
>        {
>            DirectorySecurity directorySecurity = Directory.GetAccessControl(path);
>            FileSystemAccessRule fileSystemAccessRule = new FileSystemAccessRule
>                (identity
>                , FileSystemRights.Modify
>                , InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit
>                , PropagationFlags.None
>                , AccessControlType.Allow);
>
>            directorySecurity.AddAccessRule(fileSystemAccessRule);
>            Directory.SetAccessControl(path, directorySecurity);
>        }
>
>
>If anyone (not only norwegian developers) can help me shed some light on this that would be great.

Warning: I know very little .Net/C#, but here's a SWAG. You're not showing the namespaces you're using. Can you try fully qualifying the class names in your code, rather than relying on the namespaces?

My other, even SWAGgier thought was if somehow, something in your code was a reserved word or some such.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform