News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Miscellaneous Forum
 
WindowsController problem on Win2k

Reply

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

never mind...i downloaded the lastest version of code, recompiled and now get the unspecified error 127. i see in the forum that this has been encountered before and that the user doesn't have perm to seShutDown. So i assume that asp.net on win2k doesn't have perm do to this...i'll look into how to do this. thanks!

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

by Kosta [zpjhok at yahoo dot com]
posted on 2007/09/14
Reply

Cool...
[URL=http://schwinn-jaguar.xangobentley.cn/suzuki-lt80-repair-manual.htm#] suzuki lt80 repair manual [/URL]
<a href=" http://schwinn-jaguar.xangobentley.cn/suzuki-lt80-repair-manual.htm "> suzuki lt80 repair manual </a>
http://schwinn-jaguar.xangobentley.cn/suzuki-lt80-repair-manual.htm suzuki lt80 repair manual
[URL=http://musselmans-dodge.xangobentley.cn/custom-part-for-pontiac-grand-prix.htm#] custom part for pontiac grand prix [/URL]
<a href=" http://musselmans-dodge.xangobentley.cn/custom-part-for-pontiac-grand-prix.htm "> custom part for pontiac grand prix </a>
http://musselmans-dodge.xangobentley.cn/custom-part-for-pontiac-grand-prix.htm custom part for pontiac grand prix
[URL=http://thor-honda.xangobentley.cn/cellular-phone-charging-car-battery.htm#] cellular phone charging car battery [/URL]
<a href=" http://thor-honda.xangobentley.cn/cellular-phone-charging-car-battery.htm "> cellular phone charging car battery </a>
http://thor-honda.xangobentley.cn/cellular-phone-charging-car-battery.htm cellular phone charging car battery
[URL=http://car-asearch.xangobentley.cn/re-6300-jeep.htm#] re 6300 jeep [/URL]
<a href=" http://car-asearch.xangobentley.cn/re-6300-

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.