Groups | Blog | Home
all groups > dotnet framework > may 2007 >

dotnet framework : caspol.exe from .NET 2.0 on Vista - access denied


Ihor Bobak
5/31/2007 3:13:01 AM
I've installed Vista Business on a virtual machine, created a user "test"
during installation. This user is in the Administrators role, I can see it in
Computer / Manage / Local Users and Groups.

My problem is next. When I run a .NET 2.0 configuration command
caspol -m -ag All_Code -site mysite.com FullTrust -n mysite.com
from console, I receive this error:

ERROR: Runtime error: Access denied. You might not have administrative
credentials to perform this task. Contact your system administrator for
assistance.

Note: the user under which I'm running this command is in the Administrators
group.

Question: what do I need to do in order to make caspol.exe (of .NET 2.0)
working in Windows Vista? In WinXP I have no such problem.

--
Best regards,
Ihor Bobak
5/31/2007 3:26:02 AM
Dear Microsoft representatives,

I am empower subscriber, but first time here. So, I am not sure I've
specified my
nospam alias correctly as described here
http://msdn2.microsoft.com/en-us/subscriptions/aa948868.aspx

So, please, would you be so kind as to answer my question?

Thanks.

--
Best regards,
Ihor.
Alvin Bruney [MVP]
6/1/2007 10:02:47 PM
The most logical thing is that you really aren't an administrator. Verify
that step again, if it is correct, you should post this in the vista
newsgroup. Caspol requires admin privileges on the OS.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


[quoted text, click to view]

Ihor Bobak
6/2/2007 4:16:02 AM
[quoted text, click to view]

Believe me, the user under which I ran caspol exe IS in the Administrator's
group.

As I said, I just installed Vista, created a user with the name "test",
verified that he is in the Administrators group, and then launched the
caspol.exe.

However, if I ran it under Administrator user, it worked fine.

In Windows XP it does not matter under which user you run this command, it
matters only that the user belongs to the Administrators group.
Unfortunately, in Vista it is not so.


[quoted text, click to view]
Alvin Bruney [MVP]
6/2/2007 2:40:11 PM
Ya, check the Vista newsgroup to see if you find any more help with this.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


[quoted text, click to view]

Nicole Calinoiu
6/5/2007 11:24:47 AM
Is UAC active on this admin account? If so, then it's also active on a
command line launched for that account. To run caspol with your full
administrative token, you'll first need to launch a command line as an
administrator (e.g.: by selecting the "run as administrator" context menu
item for the command prompt item on the start menu).


[quoted text, click to view]

AddThis Social Bookmark Button