CreateObject error

G

Guest

I am stuck and have run out of ideas...

I am trying to perform this in Visual Studio 2005 using .NET 2.0.
Dim appl As Object
appl = CreateObject("Word.Application")

Works fine in VisualStudio 2003 using .NET 1.1.

Here it throws this error:
Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

What magic do I have to perform to get rid of it?

Thanks a lot!
 

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