codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  ASP.NET 2.0 error  rahulaptech at 12:34 on Wednesday, April 26, 2006
 

I have a Dll "CCS.Data.dll" in bin folder ..
which i am using in the code
SQLServer.GetReader("select * from IAM_License_Master")
the same code works on the local machine.

Rahul

----- Original Message -----
From: Rahul Apte
To: pratik@ibntech.com
Sent: Wednesday, April 26, 2006 5:28 PM
Subject: Re: Smart - Product for MFs


I have put the web.config .. it is working
but i get this error now

Server Error in '/DotNet' 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:

Line 21: 'Cmd.CommandText = "select * from IAM_License_Master"
Line 22: 'myReader = Cmd.ExecuteReader()
Line 23: myReader = SQLServer.GetReader("select * from IAM_License_Master")
Line 24:
Line 25: MyDataGrid.DataSource = myReader


Source File: E:\IBNHaWebsites\hapuneone\chaturcom\chatur.com\Web\Dotnet\test.aspx.vb Line: 23

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) +1801762
System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +26
Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title) +544
CCS.Data.SQLServer.GetReader(String strQry) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\CCS.Data\CCS.Data\CCS.Data.SQLServer.vb:51
test.BindData() in E:\IBNHaWebsites\hapuneone\chaturcom\chatur.com\Web\Dotnet\test.aspx.vb:23
test.Page_Load(Object sender, EventArgs e) in E:\IBNHaWebsites\hapuneone\chaturcom\chatur.com\Web\Dotnet\test.aspx.vb:9
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Display swf file in pdf
•  A-Line Wedding Dresses
•  Re: how to create forum using asp.net with c# language?
•  Discount coach store
•  External hard drive recovery tips
•  Create Better Maps with Global Mapper
•  Re: How to display a message box when record is temporary stored in session/grid view
•  Sharing object in perl
•  Re: C++ Beginner question


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012