CreateObject error

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
Back
Top