473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using assemblies in ASPNET

I have an assembly which I created for a .NET EXE. This
works fine. It runs a process from the system.diagnostics
namespace.

However when I use this assembly and call the function in
ASPNET, I get an exception that says:

System.ComponentModel.Win32Exception: The referenced
account is currently locked out and may not be logged on to

What does this mean? How does ASPNET try to log into an
account? Can ASPNET run a system.diagnostics.process
class? Am I missing some kind of settings here? The
program that should be run is on a mounted drive.

Thanks for any information
Brent

Nov 18 '05 #1
1 1183
Asp.net does not run within the same user context as you do when you invoke
an exe from yuor desktop. Look up something called impersonation to work
out how to make it "be" you, the usual problems with trying to access
diagnostics, run programs etc usually stems from the asp.net account not
having enough rights.

Also, if you re implying here that the assembly is located on another server
then your authentication and access troubles are probably only just
beggining.......

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Brent Hoskisson" <br************@colliergov.net> wrote in message
news:00****************************@phx.gbl...
I have an assembly which I created for a .NET EXE. This
works fine. It runs a process from the system.diagnostics
namespace.

However when I use this assembly and call the function in
ASPNET, I get an exception that says:

System.ComponentModel.Win32Exception: The referenced
account is currently locked out and may not be logged on to

What does this mean? How does ASPNET try to log into an
account? Can ASPNET run a system.diagnostics.process
class? Am I missing some kind of settings here? The
program that should be run is on a mounted drive.

Thanks for any information
Brent

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Marsden | last post by:
Hi, I am having difficulties understanding the use of the cache in my profile (C:\Documents and Settings\username\Local Settings\Application Data\assembly\dl2) My application seems to be using...
2
by: Janus Knudsen | last post by:
Hello.. Just wondering, is it possible to make a folder with assemblies and have the application to read it in runtime? Possible use: Could be menues, if the menu assembly exists in the folder...
1
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having...
3
by: Julia | last post by:
Is it possible to debug an application when with assemblies added to the GAC? I cannot set break points?! Thanks
1
by: Joseph D. DeJohn | last post by:
"It says that Web applications run using the ASPNET user account. The SQL database administrator will have to set up this account and grant it permissions before your Web application will have...
2
by: Grant Merwitz | last post by:
Hi We have just bought a product what has a classic ASP front end that uses 2 assemblies. These are registered with the following command: regsvr32 Repository.dll /s regsvr32 Dynu.dll /s ...
1
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having...
1
by: KevinGreen24 | last post by:
Hello, I'm a software engineer at a company that's trying to engineer a multi-tenant report environment and we need to identify which company is trying to access our report server. So basically...
5
by: Tony Johansson | last post by:
Hello! Assume I have two projects. In the first one I build the assembly test.exe and in the second one I build the class library myLibrary.dll This test.exe is using the class library called...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.