|
-
Feb 9th, 2011, 04:51 AM
#1
Thread Starter
Member
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
-
Feb 9th, 2011, 11:04 AM
#2
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)
-
Feb 9th, 2011, 11:25 AM
#3
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
-
Feb 9th, 2011, 05:39 PM
#4
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.
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
|