Using assemblies in ASPNET

  • Thread starter Thread starter Brent Hoskisson
  • Start date Start date
B

Brent Hoskisson

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
 
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>
 
Back
Top