Newbie help with VB.NET 2003

P

Phil Betts

Hi Guys

I am the first to admit that i am not an accomplished programmer so i'm sure
i have made an error somewhere. I'm hoping somebody here may be able to
point out where i'm going wrong.

I have written a program in VB 2003.Net that can change a password of a
local account on another machine. It all works fine on my machine, i then
build the code to create the .exe file. But when i try and run that .exe
file from another machine, the program fails. I have made sure that MS .Net
Framwork is installed, and there are no GPO's preventing it from working as
my machine is in the same Active Directory OU as the machine it fails on.

Here is the error:

"The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException. To grant this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administration tool

If you click continue, the application will ignore this error and attempt to
continue. If you click Quit, the application will be shut down immediately

Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version-1.0.5000.0, Culture-neutral
PublicKeyToken=b77a5c561934e089 failed"

I go into the Start - Programs - Admin Tools - .NET Framework 1.1
Configuration. I adjust some of the settings there and then when i run the
program i receive the following error:

"An unhandled exception has occurred in your application. If you click
continue, the application will ignore this error and attempt to continue. If
you click Quit, the application will shutdown immediately

Cannot create ActiveX Component."

Obviously it's now complaining about Active X but i have very limited
experience in this. Does anyone have any ideas of what i can try?

Cheers

Phil
 
C

Cor Ligthert

Hi Phil,

If you need more information that by instance the link from CJ,

Did you know that there is a newsgroup

microsoft.public.dotnet.security

I hope you find your answer.

Cor
 
C

Chris Dunaway

Cannot create ActiveX Component."

Does the app use any ActiveX controls or .dll? If so, they must be
installed on the target computer and registered.
 
P

Phil Betts

Hi Guys

When i say i'm not very good at programming or have much knoweldge, i mean it :)

I don't know if it uses any ActiveX controlls.....how do i tell?,

I think the bit of code that is causing the problem is this bit as everything up to there appears to work fine....
objUser = GetObject("WinNT://" & IP & "/" & Username & ", user")

Does this use ActiveX?

No .dll files are created when i build the code to create the .exe file.
 

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