Results 1 to 4 of 4

Thread: C# compile visual studio 2010 issue

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    38

    C# compile visual studio 2010 issue

    hello, I developed an application with c# and visual studio 2010 and it works in debug mode, however I only want 1 exe file but when I move the exe file to another location the application crashes. I am using these libs. Any suggestions.

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    Doing a degree in Computer Network Technology with a Cisco qualification module

    Current programming languages i use : C#, C++ PHP, Visual Basic

    visit my website http://www.mintuz.co.uk for cheap web design solutions

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    Re: C# compile visual studio 2010 issue

    You need to compile it for release and then use all the output files together. The only exception is that it may still output a PDB file and that's optional.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: C# compile visual studio 2010 issue

    Hmmm.... It's possible you may have eels in your hovercraft. You have to watch out for those, as they can cause some nasty damage.


    What? you're not using a hovercraft? What do you mean "what does that have to do with anything?" It has everything to do with it. Well, given the lack of details, such as the error message, it's the best guess I can give you.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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

    Re: C# compile visual studio 2010 issue

    Those aren't libraries. They are namespaces. One library may contain types from multiple namespaces and types from one namespace may be declared in multiple libraries. If you deploy the app and it crashes then that would suggest that maybe something is missing. Is the .NET Framework installed on that machine? Does your app depend on a database? Etc, etc. You need to provide all the relevant information that you can and any error messages provided are a very good place to start. Also, you can add exception handling and/or tracing to your app to work out for yourself what it's actually doing when the issue occurs.
    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