asp.net网站发布到服务器后出错.

来源:百度知道 编辑:UC知道 时间:2024/05/31 04:28:48
本地运行好好的,到服务器后,

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 o

DataAccess.ExecuteSql(String sqlstring) 的177行的MessageBox.Show(String text)有错误 按提示信息,DataAccess应该是后台的代码,却调用了messagebox,messagebox只能用在与用户交互的模式下

主要就是 检查下你本地环境和服务器是否一致。。

你.net版本使用的是1.0还是2.0,服务器iis上指定的版本是否一致。