Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Raphael Saccomi

Mensagem de Erro ao iniciar o sistema no Windows XP

Recommended Posts

Olá Pessoal spi novissimo com o Visual Studio.

 

Estou fazendo uma aplicação de cadastro de clientes com o banco de dados Access 2003, bem simples, mais estou com dificuldades....quando inicio a aplicação pelo VS (Debug ou F5) ela funciona normalmente agora quando gero o exe e tendo rodar no window ela não funciona!

Aparece essa mensagem!

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)   at System.Security.PermissionSet.Demand()   at System.Data.Common.DbConnectionOptions.DemandPermission()   at System.Data.OleDb.OleDbConnection.PermissionDemand()   at System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection outerConnection)   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)   at System.Data.OleDb.OleDbConnection.Open()   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)   at Módulos.baseDataSetTableAdapters.ClientesTableAdapter.Fill(ClientesDataTable dataTable)   at Módulos.FrmCadClientes.FrmCadClientes_Load(Object sender, EventArgs e)   at System.EventHandler.Invoke(Object sender, EventArgs e)   at System.Windows.Forms.Form.OnLoad(EventArgs e)   at System.Windows.Forms.Form.OnCreateControl()   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)   at System.Windows.Forms.Control.CreateControl()   at System.Windows.Forms.Control.WmShowWindow(Message& m)   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)   at System.Windows.Forms.ContainerControl.WndProc(Message& m)   at System.Windows.Forms.Form.WmShowWindow(Message& m)   at System.Windows.Forms.Form.WndProc(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)The action that failed was:DemandThe type of the first permission that failed was:System.Data.OleDb.OleDbPermissionThe Zone of the assembly that failed was:Intranet************** Loaded Assemblies **************mscorlib	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------Módulos	Assembly Version: 1.0.0.0	Win32 Version: 1.0.0.0	CodeBase: file:///H:/Mobile%20Vendor/M%F3dulos/M%F3dulos/bin/Release/M%F3dulos.exe----------------------------------------Microsoft.VisualBasic	Assembly Version: 8.0.0.0	Win32 Version: 8.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll----------------------------------------System	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Windows.Forms	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System.Configuration	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Runtime.Remoting	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll----------------------------------------System.Data	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------Accessibility	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------System.Transactions	Assembly Version: 2.0.0.0	Win32 Version: 2.0.50727.42 (RTM.050727-4200)	CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration>	<system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.
Alguém pode me ajudar? http://forum.imasters.com.br/public/style_emoticons/default/cry.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

você precisa configurar o seuy framework no painel de controle na opção Trusted Connection, ele ou o firewall estao bloqueando a sua conexao ao banco de dados e assim o seu sistema está dando erros. pode ser tmb que o arquivo do Access esteja aberto ou algo do tipo. bom enfim esse erro é um erro de acesso ao seu banco de dados.abraçose nao conseguir resolver me avisa q te dou mais explicações.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.