|
-
Jul 5th, 2005, 01:53 AM
#1
Deploying .Net applications
Is there an equivalent of Package & Deployment Wizard (vb6.0) in .Net? What are the things I need to know to be able to deploy an app developed in .Net? I have two incoming projects and I wish to develop it in .Net to boost my experience in it but I'm afraid I don't know how to install the app when it is finished.
Last edited by dee-u; Jul 20th, 2005 at 08:42 PM.
-
Jul 5th, 2005, 03:58 AM
#2
Re: Deploying .Net applications
You won't have much of a problem deploying it. You have to keep in mind that the end user's machine must have the .NET framework on it.
And to create your setup, you can simply add a setup project to your VS.NET IDE solution explorer.
And it's also possible to deploy simply by copy-paste, provided that the framework exists of course.
-
Jul 15th, 2005, 04:13 AM
#3
Re: Deploying .Net applications
 Originally Posted by mendhak
And to create your setup, you can simply add a setup project to your VS.NET IDE solution explorer.
How to do that?
And it's also possible to deploy simply by copy-paste, provided that the framework exists of course.
You mean just copy the Exe made in .Net to the other computer as long as the framework exists in that computer?
-
Jul 15th, 2005, 04:49 AM
#4
Re: Deploying .Net applications
Right click the solution, add project... setup project.
And
yes, as long as the framework exists, just copy over and double click
-
Jul 15th, 2005, 04:50 AM
#5
Re: Deploying .Net applications
Thanks!
-
Jul 15th, 2005, 11:50 PM
#6
Re: [RESOLVED] Deploying .Net applications
I just tried it, and in the Setup1 folder, tried to run both the msi file and the setup.exe file.
They both failed saying that the folder contained an invalid character.
I never specified a folder to install to, and it seemed to be trying to install to the name of my company name, which has a "/" in it.
-
Jul 16th, 2005, 10:47 AM
#7
Re: [RESOLVED] Deploying .Net applications
I guess no one reads the FAQ? There are two good step by step articles on .NET deployement.
Application Deployment FAQ
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 16th, 2005, 02:52 PM
#8
Re: [RESOLVED] Deploying .Net applications
Well, I was following the Frog's advice. Maybe the wizard would have been a better choice? I'll look in to the config options to see what went awry.
I also tried to install it on my laptop, which created it. I don't know if that is a good idea, as I never tested installs on my own machine.
-
Jul 20th, 2005, 08:45 PM
#9
Re: Deploying .Net applications
Well, the Copy-Paste didnt work! In this computer I have Microsoft .Net Framework 1.1, and my app is created using Visual Studion 2003. When I tried to run the app in this computer this error is raised:
"Application has generated an exception that could not be handled."
Could somebody tell me what is going on?
-
Jul 20th, 2005, 11:35 PM
#10
Re: Deploying .Net applications
Does your app use any references? Did you set any references to CopyLocal = True?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 20th, 2005, 11:42 PM
#11
Re: Deploying .Net applications
Yap, I am referencing the Webbrowser control (from VB6.0) and other controls.
 Originally Posted by RobDog888
CopyLocal = True
Where can I set that?
-
Jul 20th, 2005, 11:48 PM
#12
Re: Deploying .Net applications
If you set it to true then you wil have a local copy of the dependancy for distribution. Its better if your using references to
set it to False, for now. Did you place any error handling in the start of your app so you can tell where the error may be?
If you select your reference in the solution explorer you will see the property window change to represent the reference. Then
you wil see that prop and know what its sset to.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 20th, 2005, 11:53 PM
#13
Re: Deploying .Net applications
Ok, I'l check it our when I get home since I dont have .Net in this computer.
No error handling yet, I still cannot fully grasp the idea behind the Error Handling (Structured) in VB.Net and I'm afraid to use it now if I dont understand it fully well.
-
Jul 21st, 2005, 12:06 AM
#14
Re: Deploying .Net applications
Its not hard at all. Let me give it a try. 
The Try Catch block at its simplest form as realted to VB6.
VB Code:
Try = On Error GoTo
Catch ex As Exception = Error Label:
End Try = End of Error Label Sub
'So to add some actual data for an example....
Try
Messagebox.Show((1/0).ToString) 'Generate an error
Catch ex As Exception
Messagebox.Show(ex.message, "Error")
End Try
'Is the same as the old VB6
On Error Goto MyError
MsgBox 1/0
Exit Sub
MyError:
MsgBox "Error"
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 21st, 2005, 12:12 AM
#15
Re: Deploying .Net applications
After the code in Catch, where does it goes next?
VB Code:
Try
Messagebox.Show((1/0).ToString) 'Generate an error
Catch ex As Exception
Messagebox.Show(ex.message, "Error")
End Try
And what about Resume Next and Resume, what are their equivalents?
-
Jul 21st, 2005, 12:15 AM
#16
Re: Deploying .Net applications
VB Code:
Try
Messagebox.Show((1/0).ToString) 'Generate an error
Catch ex As Exception
Messagebox.Show(ex.message, "Error")
End Try
Messagebox.Show(I'm contnuing on from here. I'm the next line of code after the Try Catchblock as long as there is no other redirecting code in the Catch section. ;).")
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 21st, 2005, 12:50 AM
#17
Re: Deploying .Net applications
How about this Gansta? How will it go the bold part?
VB Code:
Try
Messagebox.Show((1/0).ToString) 'Generate an error
[B]Messagebox.Show ("Next Line1")[/B]
Messagebox.Show ("Next Line2")
Catch ex As Exception
Messagebox.Show(ex.message, "Error")
End Try
Messagebox.Show ("Next Line Again.")
-
Jul 21st, 2005, 12:52 AM
#18
Re: Deploying .Net applications
Nope, but let me look around for anything equilivalent for resume, etc.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 21st, 2005, 12:55 AM
#19
Re: Deploying .Net applications
Ok, I got two examples or resume next (Btw, the vb6 on error handling is still in the S.VB namespace).
VB Code:
Try
' Starts a structured exception handler.
' Place executable statements that may generate
' an exception in this block.
Catch [optional filters]
' This code runs if the statements listed in
' the Try block fail and the filter on the Catch statement is true.
[Additional Catch blocks]
Finally
' This code always runs immediately before
' the Try statement exits.
End Try
' Ends a structured exception handler.
'AND FOR A SECOND EX
Function GetStringsFromFile(ByVal FileName As String) As Collection
Dim Strings As New Collection
Dim Stream As System.IO.StreamReader = System.IO.File.OpenText(FileName) 'Open the file.
Try
While True ' Loop terminates with an EndOfStreamException
' error when end of stream is reached.
Strings.Add(Stream.ReadLine())
End While
Catch eos As System.IO.EndOfStreamException
' No action is necessary; end of stream has been reached.
Catch IOExcep As System.IO.IOException
' Some kind of error occurred. Report error and clear collection.
MsgBox(IOExcep.Message)
Strings = Nothing
Finally
Stream.Close() ' Close the file.
End Try
Return Strings
End Function
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 21st, 2005, 04:44 AM
#20
Re: Deploying .Net applications
That second one interests me. I saw that in the examples when it tries to connect to SQL and then MSDE.
It seemed to me that the try statement was a loop in itself, but I wasn't sure.
Your second example seems to loop through the file, reading all records, which is a neat way of doing that. Let me know if that is correct?
It would explain things a little better.
-
Jul 22nd, 2005, 01:37 AM
#21
Re: Deploying .Net applications
This is an example error handler in VB6.0, how could I convert it to VB.Net?
VB Code:
lvwData_ColumnClick_Err:
Select Case ErrorGlobalHandler("AISIS.frmBKS.lvwData_ColumnClick")
Case vbAbort
Exit Sub
Case vbRetry
Resume
Case vbIgnore
Resume Next
Case Else
MsgBox Err.Description, vbCritical, "Critical Error Encountered"
End
End Select
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|