Message Box show error ASP.NET VB.NET

I get the following error when I am running my asp.net website from a live site.  When I run it locally, I do not get any errors.  I do not have anything in the vb.net code side for a message box.  I have searched the entire project for it, and I do not have it in my application.  I did use msgbox("") during testing, but removed it before uploading.  Any help would be greatly appreciated!!

Server Error in '/' Application.

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

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.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.]
   System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp) +2994248
   Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title) +526
   InventoryManagement.WebForm2.Page_Load(Object sender, EventArgs e) in C:\Users\*****\Documents\Manageinfo.aspx.vb:62
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.<LoadRecursiveAsync>d__1.MoveNext() +230
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +31
   System.Web.UI.<ProcessRequestMainAsync>d__1.MoveNext() +4866

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.81.0

 InventoryManagement.WebForm2.Page_Load(Object sender, EventArgs e) in C:\Users\*****\Documents\Manageinfo.aspx.vb:62 is a blank line.

I even commented out the entire Page_Load event and I am still getting this error.

Thanks in advance!
Russell
LVL 2
russell12Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
You are confused as to the separation as of client programming from server programming. And I say this with respect. The standard Windows message box does not work the way you think it does when it comes to ASP.NET. Such a message box runs on the server, not the client. The reason why it works for you when you run locally is that your machine is playing the role of both server and client. As such, when you invoke the message box, it displays on the server...or in other words, on your machine. When you deploy to your live server, the client and server are no longer the same machine. When you invoke the message box, it runs on the liver server, not the client. This is why you don't see it in your browser.

What you need to look into is Javascript. For simple things, you can use the alert function. As your Javascript skills grow, you may want to look into libraries such as toastr.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
russell12Author Commented:
So in my original post, I stated "
I did use msgbox("") during testing, but removed it before uploading.
"  I am fully aware of server side and client side.  Thats why I removed the msgbox when uploaded to the webserver.  The issue ended up being the publish feature was not showing and I was uploading the project incorrectly.  It has been approx 3 years since I have messed with asp.net.  I develop windows apps and hate developing web apps (that's why its been so long), but a client needed both web and windows app so I agreed to do it, and had to refresh my memory on how to publish the site.  I have resolved this issue.  Also I am not meaning to come off as being rude, as this can be interpreted that way.  Thank you for at least responding to the question, as you can see your the only one that did!

Thanks again,
Russell
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.