SimpleCSharpST

Hi.

I would like why the MS Sample doesn't function properly in VS2005.
The code is the same in VS2003 and was published in MSDN site.

Steps:
After solution compiled, I registered the new Smart Tag in windows registry and add directory to trust assembly using NET 2.0 caspol.exe.

The Source Code can be download at MSDN Site.

Thanks,
Andr Bretas

[366 byte] By [AndreBretas] at [2008-2-2]
# 1
Andre,

Can you clarify what is exactly not working?

Does the sample compile?
What macro security level you currently have?
Do you have "Trust all installed add-ins" setting checked?
Do you get a managed security exception when you try to run it?

It is hard to help when all we know is that it does not work. We need more info.

MishaShneerson at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...
# 2

Try the following solution:

http://support.microsoft.com/kb/908002

Hope this helps.

http://www.peterverster.co.uk

PeterVerster at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...
# 3

I am seeing the same problem. It is frustrating. I am having problems with the batch files that run the caspol commandline utilities.

It is very frustrating when security stuff get in the way reaching your goal. It takes X amount of time to develope an application/tool but it takes 2*X to get it to work because security is such a pain in the backside.

When I run the first line of the SetupCAS_SmartTagDemo.bat file

caspol -polchgprompt off -user -addgroup Office_Projects -url C:\SmartTagDemo_otkloadr\bin\SmartTagDemo_bin\* Execution -name "SmartTagDemo_bin"

I get error an initial error "ERROR: Invalid label or name"

I have double checked all paths and names, I have tried putting the "caspol -polchgprompt off" on its own. This command completes with success. I follow this with " caspol -user -addgroup Office_Projects -url C:\SmartTagDemo_otkloadr\bin\SmartTagDemo_bin\* Execution -name "SmartTagDemo_bin" and I get the same "ERROR: Invalid label or name". Arrrrrggggg!

Mike Jones

mjones309 at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...