Results 1 to 8 of 8

Thread: [2005] Run the DB with VB Forms Directly from the Cd

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    3

    [2005] Run the DB with VB Forms Directly from the Cd

    Hi
    I was traing to do application (DB) using access DataBase
    with a VB.net forms and run it directly from the CD
    is it posible or not
    notes:all the queries will be only using the 'select' keywords
    i'm glade to here any tips commets or advices
    thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    You can run a VB.NET app off a CD and you can query an Access database on a CD. You will, of course, require the machine running the app to have the .NET Framework and Jet OLEDB driver installed.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    3

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    aha ...
    what if i use one of the programms that give the ability to convert
    any programm to a portable version , i think it would be an easy way
    to ignore the need to the .NetFrameWork
    what do you think

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    I think that if you run a .NET executable then it requires the .NET Framework and if you run a native executable then it doesn't. What do you think?
    Last edited by jmcilhinney; Dec 16th, 2007 at 03:39 AM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    3

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    ???
    what do you mean by a (native executable)
    i think this kind of applications ( Convert to Portable ) convert any application
    regard the language , i'm not sure but it suppose to work like that
    ..

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    A native executable is an executable in native Windows machine code, which a .NET assembly is not. A .NET assembly has a native code header that invokes the Framework, which then reads and executes the MSIL code contained in the assembly. A native executable is pure Windows machine code. These tools you're talking about compile a .NET assembly or whatever into a native executable. It no longer depends on the .NET Framework so it's no longer a .NET application.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    New Member
    Join Date
    Jan 2009
    Posts
    1

    Question Re: [2005] Run the DB with VB Forms Directly from the Cd

    Quote Originally Posted by jmcilhinney
    You can run a VB.NET app off a CD and you can query an Access database on a CD. You will, of course, require the machine running the app to have the .NET Framework and Jet OLEDB driver installed.
    Sorry to jump in on an old thread, but I thought it was relevant to my question. I am trying to run a .NET 2.0 EXE from a CD, and I get the message "MyEXE.EXE has encountered a problem and needs to close".

    .NET 2.0 Framework is installed on the computer.
    EXE runs fine if it is run from the hard drive.

    Is it because of the app trying to write to a readonly MyEXE.EXE.config file, or that the app is attempting to write to a readonly log file? Is there some setting in Visual Studio that I can set that will allow .NET EXE to run from CD without failing.

    Regards
    Andrew

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Run the DB with VB Forms Directly from the Cd

    Quote Originally Posted by excelthoughts
    Sorry to jump in on an old thread, but I thought it was relevant to my question. I am trying to run a .NET 2.0 EXE from a CD, and I get the message "MyEXE.EXE has encountered a problem and needs to close".

    .NET 2.0 Framework is installed on the computer.
    EXE runs fine if it is run from the hard drive.

    Is it because of the app trying to write to a readonly MyEXE.EXE.config file, or that the app is attempting to write to a readonly log file? Is there some setting in Visual Studio that I can set that will allow .NET EXE to run from CD without failing.

    Regards
    Andrew
    As I have already stated, a .NET EXE CAN run from a CD without failing. If it's trying to write to a file on the CD then that's your code doing it, not something inherent in .NET applications. Perhaps you need to add some exception handling to your app to see what the actual problem is. You should ALWAYS handle the UnhandledException event of the application to provide a global exception handler. That should catch your exception so you can see the details, plus it will let you shut down gracefully.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width