Solved

Execution Problem

Posted on 2004-09-07
4
231 Views
Last Modified: 2010-04-15
Hello again everyone,
I have an application that was written and tested in C#.  The application runs fine on my local machine.  When I run it on our server, I have a problem.  Actually, when I run it on our server as Administrator, I get a CLR exception.  If I run it under my user account, it runs just fine.  I don't understand it because I am a member of Administrators on the server.  The application is a program that monitors a directory for changes.  Any suggestions????????

Thanks,
Kendal
0
Comment
Question by:gvector1
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:NipNFriar_Tuck
ID: 11997055
With .Net there are security "features" that will not allow code to execute that may be a security risk.  For instance if you set up a Windows Service that has to access any network resource you can not allow the service to run as the default user "Local System", as "Local System" does not have any network right according to .Net, at least this was the case for some coding that I did.  This may also be the case that you are running into when you try to run your applications as the Administrator...

Just a though...
0
 

Author Comment

by:gvector1
ID: 11997135
The application is monitoring a directory on another server, but the server administrator and user accounts have the same rights.  The user account is a member of administrators.  Why would that keep administrator from accessing and not the user account?????

Thanks,
Kendal
0
 
LVL 7

Accepted Solution

by:
NipNFriar_Tuck earned 500 total points
ID: 11997196
From what I understand there are certain accounts that are denied access to network resources... I believe that the Administrator and Local System are two of these accounts.   One reason is that if one box gets hacked, your whole network is not then vulnerable.  Also, an Administrator for one box may not be an Administrator for another box.  I am sure there are other reasons, I just do not know them...  There may be away to allow the dissallowed accounts to have access to the network through configuration but I would not suggest it.

The way that I have worked this out is to set up an account for my applications.  This account would have the minimal security needed for the applications to run ( including across the network ).  Ideally, one would set up a prod, test, dev account for all applications...

Hope this helps...
0
 

Author Comment

by:gvector1
ID: 11997434
You are correct!  Now that you brought it to my attention, the administrator account on the running server does not have rights to the server that is needed to be accessed.  I don't know how I missed that.  Thanks Nip.  The points are yours.

Thanks,
Kendal
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now