PROGRAMA PRONTO N FUNCIONA EM OUTROS COMPUTADORES

LOPESKUTI 05/06/2012 14:59:23
#403575
Olá,
terminei de desenvolver um aplicativo para cadastro de clientes.

Ele deverá ser instalado em 3 notebooks sendo que um deles será o servidor com o SQL Server 2008.
A comunicação entre eles e o servidor está perfeita, porém o aplicativo da erro de execução quando eu tento mudar de tela.

Eu desenvolvi ele no Visual Studio 2010 e já instalei o Crystal Reports, e o .NET Framework nos notebooks, mas mesmo assim não funciona.

Tbm instalei o WinForms Telerik em cada um deles (por causa do runtime) senão a aplicação tbm não funcionaria.
Além do Power Packs 10.0 que foi um sofrimento achar.

Se alguém puder me ajudar, agradeço.
KERPLUNK 05/06/2012 15:07:23
#403577
[Ô]Não funciona[Ô] é muito vago. O que acontece? Tem mensagem de erro?
LOPESKUTI 05/06/2012 15:10:41
#403579
Ele me dá 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.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List'1.Enumerator.MoveNextRare()
at System.Collections.Generic.List'1.Enumerator.MoveNext()
at Microsoft.VisualBasic.PowerPacks.ShapeCollection.Dispose(Boolean disposing)
at Microsoft.VisualBasic.PowerPacks.ShapeContainer.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at Telerik.WinControls.RadControl.Dispose(Boolean disposing)
at Telerik.WinControls.UI.RadMaskedEditBox.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at CadastroGVT.vb.TelaCadastro.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at CadastroGVT.vb.TelaCadastro.RadButton1Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Telerik.WinControls.RadControl.OnClick(EventArgs e)
at Telerik.WinControls.UI.RadButtonBase.buttonElement_Click(Object sender, EventArgs e)
at Telerik.WinControls.RadItem.OnClick(EventArgs e)
at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
at Telerik.WinControls.UI.RadButtonElement.OnClick(EventArgs e)
at Telerik.WinControls.RadItem.DoClick(EventArgs e)
at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CadastroGVT.vb
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/USER/AppData/Local/Apps/2.0/58HX6VPD.Y52/BQ5CNV34.KVX/cada..tion_41764334c088b7b7_0001.0000_787db71515cd64ba/CadastroGVT.vb.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 10.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Telerik.WinControls.Themes.Breeze
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Telerik.WinControls.Themes.Breeze/v4.0_2012.1.301.40__5bb2a467cbec794e/Telerik.WinControls.Themes.Breeze.dll
----------------------------------------
Telerik.WinControls
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Telerik.WinControls/v4.0_2012.1.301.40__5bb2a467cbec794e/Telerik.WinControls.dll
----------------------------------------
Telerik.WinControls.UI
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Telerik.WinControls.UI/v4.0_2012.1.301.40__5bb2a467cbec794e/Telerik.WinControls.UI.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
TelerikCommon
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/TelerikCommon/v4.0_2012.1.301.40__5bb2a467cbec794e/TelerikCommon.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
j2zsbn3i
Assembly Version: 2012.1.301.40
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
uxpfuddh
Assembly Version: 2012.1.301.40
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.VisualBasic.PowerPacks.Vs
Assembly Version: 10.0.0.0
Win32 Version: 10.0.20911.1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll
----------------------------------------
Telerik.WinControls.Themes.Aqua
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Telerik.WinControls.Themes.Aqua/v4.0_2012.1.301.40__5bb2a467cbec794e/Telerik.WinControls.Themes.Aqua.dll
----------------------------------------
Telerik.WinControls.Themes.Office2007Silver
Assembly Version: 2012.1.301.40
Win32 Version: 2012.1.301.40
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Telerik.WinControls.Themes.Office2007Silver/v4.0_2012.1.301.40__5bb2a467cbec794e/Telerik.WinControls.Themes.Office2007Silver.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging=[Ô]true[Ô] />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
NETMANIA 05/06/2012 15:22:40
#403586
Já que você está usando Crystal e pacote de componentes, por que você não cria um instalador para fazer isso? Se fosse uma aplicação que você não fosse usar componentes de terceiro (como foi uma que eu fiz), não teria problemas.
LOPESKUTI 05/06/2012 15:26:07
#403589
Eu criei um instalador e ele baixou o .net framework 4.
Mas ai pediu o telerik forms e eu instalei.
depois o crystal e instalei,
depois o power packs e eu instalei.

e agora ele dá esse erro.
LOPESKUTI 05/06/2012 16:15:00
#403594
A aplicação só funciona quando eu instalo o Visual Studio na máquina. Mas eu não posso instalar em todas.
NETMANIA 05/06/2012 21:02:19
#403616
Este erro ocorre em algum formulário específicou ou quando você carrega a aplicação?
OCELOT 05/06/2012 21:35:32
#403618
Pelo Call Stack ali aparentemente o erro acontece dentro do TelaCadastro.RadButton1Click, já conferiu se você faz algo nele que poderia causar um erro?
LOPESKUTI 06/06/2012 10:25:54
#403645
NETMANIA ele ocorre sempre que eu troco de usercontrol... o formulário base é o mesmo.

OCELOT aqui está o código do primeiro botão:

Private Sub AvancarButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles avancarButton.Click
[ô]validar
If Not ValidarFormulario() Then Return

[ô]gravar
If Not GravarCadastro() Then Return

[ô]avançar
Me.Dispose()
Navegacao()
End Sub

e do segundo botão:

Private Sub RadButton1Click(sender As System.Object, e As System.EventArgs) Handles relatoriosButton.Click
Dispose()
Login()
End Sub

o método login é esse:

Private Sub Login()
Dim lobjarearestrita As New areaRestrita

FrmBase.Controls.Add(lobjarearestrita)
lobjarearestrita.Show()
End Sub
Tópico encerrado , respostas não são mais permitidas