Solved

Execution Problem

Posted on 2004-09-07
4
235 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

679 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