Jales Alves
11-23-2006, 07:51 PM
Caro amigo,
O Problema e o seguinte;
tenho um aplicacao desktop que roda beleza...ela tem uma dll de negocio,
entao referencio a um aplicacao asp.net,
a conexao da mesma e ODBCConection....
quando eu chamo um execucao que requer uma conexao, como neste exemplo
"drDados = clnUsuarios1.Listar(LCase(AcessoLogin.UserName))"
onde me retorna um ODBCDataReader, me aparece este mensagem...
"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."
e nao consigo conectar a conexao ODBC...
eu tambem tentei usar o OleDBConection...mas ele nao consegue ler uma unidade
de outro servidor como exemplo p:\producao\?????
como eu faco para ele fazer esta conexao...pelo IIS.
aguardo retorno...
obrigado....
O Problema e o seguinte;
tenho um aplicacao desktop que roda beleza...ela tem uma dll de negocio,
entao referencio a um aplicacao asp.net,
a conexao da mesma e ODBCConection....
quando eu chamo um execucao que requer uma conexao, como neste exemplo
"drDados = clnUsuarios1.Listar(LCase(AcessoLogin.UserName))"
onde me retorna um ODBCDataReader, me aparece este mensagem...
"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."
e nao consigo conectar a conexao ODBC...
eu tambem tentei usar o OleDBConection...mas ele nao consegue ler uma unidade
de outro servidor como exemplo p:\producao\?????
como eu faco para ele fazer esta conexao...pelo IIS.
aguardo retorno...
obrigado....