caspol.exe from .NET 2.0 on Vista - access denied

G

Guest

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.
 
A

Alvin Bruney [MVP]

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
 
G

Guest

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.

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.

--
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
 
A

Alvin Bruney [MVP]

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


Ihor Bobak said:
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.

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.
 
N

Nicole Calinoiu

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top