Full trust in .Net framework 4.0

I am working on .Net framework. I have created an application that creates a custom culture in my local computer. (Since it is a test application, it'll not be shipped or deployed anywhere else than my computer)

When I try to register the custom culture, it tries to access C:\widows\Globalization folder. I am getting UnauthorizedAccessException.

.Net Framework 4.0 doesn't provide .Net Configuration tool as earlier versions did.

What is the method to know the permissions provided to an assembly?

How to provide full trust to an assembly?

1
задан SaravananArumugam 29 August 2010 в 23:37
поделиться

1 ответ

У вас уже есть полное доверие, если вы работаете с локального диска (что, скорее всего, так и есть). В этом случае проблема в том, что вам нужно быть Администратором. Если вы работаете в Vista или Windows 7, убедитесь, что вы щелкнули правой кнопкой мыши свой .exe и выберите «Запуск от имени администратора».

2
ответ дан 2 September 2019 в 21:44
поделиться
Другие вопросы по тегам:

Похожие вопросы: