by chris weerts [chris at 808multimedia dot com] posted on 2005/07/13 |
|
hi!
excellent program, very helpful
i have it working on winxp no problem
when i try on my win 2k machine, i get the error below
win2k sp4, .net 1.1
any help appreciated
thanks!!
----------------------------------------
Unable to find an entry point named FormatMessageA in DLL user32.dll.
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.EntryPointNotFoundException: Unable to find an entry point named FormatMessageA in DLL user32.dll.
Source Error:
Line 49: private void Button1_Click(object sender, System.EventArgs e)
Line 50: {
Line 51: Org.Mentalis.Utilities.WindowsController.ExitWindows(RestartOptions.Reboot, false);
Line 52: }
Line 53: }
Stack Trace:
[EntryPointNotFoundException: Unable to find an entry point named FormatMessageA in DLL user32.dll.]
Org.Mentalis.Utilities.WindowsController.FormatMessage(Int32 dwFlags, IntPtr lpSource, Int32 dwMessageId, Int32 dwLanguageId, StringBuilder lpBuffer, Int32 nSize, Int32 Arguments) +0
Org.Mentalis.Utilities.WindowsController.FormatError(Int32 number) +54
Org.Mentalis.Utilities.WindowsController.ExitWindows(Int32 how, Boolean force) +71
Org.Mentalis.Utilities.WindowsController.ExitWindows(RestartOptions how, Boolean force) +59
reboot._default.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\808multimedia.com\reboot\default.aspx.cs:51
System.Web.UI.WebControls.Button.onclick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|
by chris weerts [chris at 808multimedia dot com] posted on 2005/07/14 |
Reply |
here is the actual error if anyone can give additional help :
Unspecified error [127]
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: Org.Mentalis.Utilities.PrivilegeException: Unspecified error [127]
Source Error:
Line 49: private void Button1_Click(object sender, System.EventArgs e)
Line 50: {
Line 51: Org.Mentalis.Utilities.WindowsController.ExitWindows(RestartOptions.Reboot, false);
Line 52: }
Line 53: }
Stack Trace:
[PrivilegeException: Unspecified error [127]]
Org.Mentalis.Utilities.WindowsController.ExitWindows(Int32 how, Boolean force) +87
Org.Mentalis.Utilities.WindowsController.ExitWindows(RestartOptions how, Boolean force) +59
reboot._default.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\808multimedia.com\reboot\default.aspx.cs:51
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|