I have an asp.net 2.0 script that install’s printers from another server. It works perfectly on my development machine, which is an XP based IIS 5. The publication server is a windows 2000 running IIS 5, and every time the script (I’m guessing here) tries to access the print server to install the printer, it gives me the following error…
** *Logon failure: unknown user name or bad password* **
[FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] ** Description: **An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
** Exception Details: **System.ComponentModel.Win32Exception: Logon failure: unknown user name or bad password
**Source Error:**
Line 9: Dim myProcess = New Process
Line 10: myProcess.StartInfo = New ProcessStartInfo("\\csops01\" + DropDownList2.SelectedValue, "")
[COLOR=red]Line 11: myProcess.Start()
[/COLOR]Line 12:
Line 13: End Sub
** Source File: ** E:\webs\www-csont\aderc\printer_search.aspx.vb** Line: ** 11 [/FONT]
I’m using impersonate so asp.net uses a user account on our domain, that account is both an operator on IIS, an admin on the web server, an all Domain Users are permitted to access the print server to install printers. Any help would be appreciated.