Home All Groups Group Topic Archive Search About

Why doesn't caspol.exe see my signed assembly??

Author
19 Jul 2006 2:50 PM
elixirmike
I'm trying to use the command line tool caspol.exe to grant full trust to
files that are signed by my company.

I've created a very simple console application called "TestApp" and ensured
that I signed it with my .SNK file.

I'm running the following command in the same directory as the testapp.exe
file:

caspol -u -ag All_Code -pub -file TestApp.exe FullTrust

The error I get back is:
ERROR: The specified file is not signed or does not exist.

What's going on??? I've definitely signed the testapp.exe file with my snk,
so I'm at a loss as to why this doesn't see the file or work.

Author
20 Jul 2006 6:49 AM
serge calderara
Have you verify that you assembly is really signed by using the folloing
comand :
sn -v TesApp.exe

regards
serge

Show quoteHide quote
"elixirmike" wrote:

> I'm trying to use the command line tool caspol.exe to grant full trust to
> files that are signed by my company.
>
> I've created a very simple console application called "TestApp" and ensured
> that I signed it with my .SNK file.
>
> I'm running the following command in the same directory as the testapp.exe
> file:
>
> caspol -u -ag All_Code -pub -file TestApp.exe FullTrust
>
> The error I get back is:
> ERROR: The specified file is not signed or does not exist.
>
> What's going on??? I've definitely signed the testapp.exe file with my snk,
> so I'm at a loss as to why this doesn't see the file or work.
>
>
Author
20 Jul 2006 8:11 PM
elixirmike
Your right, it wasn't "signed" with Authenticode. I confused strong-signing
the assembly with doing the Authenticode signing.

Thanks

Show quoteHide quote
"serge calderara" wrote:

> Have you verify that you assembly is really signed by using the folloing
> comand :
> sn -v TesApp.exe
>
> regards
> serge
>
> "elixirmike" wrote:
>
> > I'm trying to use the command line tool caspol.exe to grant full trust to
> > files that are signed by my company.
> >
> > I've created a very simple console application called "TestApp" and ensured
> > that I signed it with my .SNK file.
> >
> > I'm running the following command in the same directory as the testapp.exe
> > file:
> >
> > caspol -u -ag All_Code -pub -file TestApp.exe FullTrust
> >
> > The error I get back is:
> > ERROR: The specified file is not signed or does not exist.
> >
> > What's going on??? I've definitely signed the testapp.exe file with my snk,
> > so I'm at a loss as to why this doesn't see the file or work.
> >
> >