LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2010, 08:05 AM   #1
sachinl
LQ Newbie
 
Registered: Jan 2010
Location: Pune, India.
Posts: 5

Rep: Reputation: 0
.Net setup exe open problem on Ubuntu


Hello All,

I have created .NET 2.0 windows application setup with MySQL database on the XP and I have installed same setup on the Ubuntu.

Right now my setup installed successfully but I'm facing one major problem.

When I clicked on my project exe shortcut I'm not able to view the same.

Please help me regarding the same.


Thanks in advance.


Sachin.
 
Old 01-01-2010, 11:55 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sachinl View Post
Hello All,

I have created .NET 2.0 windows application setup with MySQL database on the XP and I have installed same setup on the Ubuntu.

Right now my setup installed successfully but I'm facing one major problem. When I clicked on my project exe shortcut I'm not able to view the same.
You're going to have to clarify your question. You say you created a Windows .exe file....windows executables will NOT work under Linux, anymore than a Mac executable will work under Windows. They're two different operating systems.

You also say "my setup installed successfully"...what part of the setup? Installing MySQL? Are you using Wine to run the .exe? What problems are you having?? Without clear information, no one will be able to help you.
 
Old 01-01-2010, 11:57 PM   #3
sachinl
LQ Newbie
 
Registered: Jan 2010
Location: Pune, India.
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
You're going to have to clarify your question. You say you created a Windows .exe file....windows executables will NOT work under Linux, anymore than a Mac executable will work under Windows. They're two different operating systems.

You also say "my setup installed successfully"...what part of the setup? Installing MySQL? Are you using Wine to run the .exe? What problems are you having?? Without clear information, no one will be able to help you.
Ok.

I have successfully installed full setup of my windows application (Desktop application) using WINE.

but when I'm trying to open my application using shortcut from desktop its not opening.

can you please help me regarding the same.


Thanks in advance,

Sachin.
 
Old 01-02-2010, 03:50 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sachinl View Post
Ok.

I have successfully installed full setup of my windows application (Desktop application) using WINE.

but when I'm trying to open my application using shortcut from desktop its not opening.

can you please help me regarding the same.
We might be able to help you, but as I said in my first post, without YOU giving us information, we can't.

You still haven't said what version/distro of Linux, what error(s) you're getting, or what you've tried. All we know is you clicked an icon, and it didn't work.

Provide some actual, useful, details.
 
Old 01-02-2010, 04:42 PM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Open it from a shell and post the result here. But warning, wine is a win32 compatibility layer, not .NET. You should try to compile your application using the mono compiler, it should produce a native Linux binary.
 
Old 01-03-2010, 11:19 PM   #6
sachinl
LQ Newbie
 
Registered: Jan 2010
Location: Pune, India.
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
We might be able to help you, but as I said in my first post, without YOU giving us information, we can't.

You still haven't said what version/distro of Linux, what error(s) you're getting, or what you've tried. All we know is you clicked an icon, and it didn't work.

Provide some actual, useful, details.
For .NET windows application I have used following things:
To develop application: Microsoft Visual Studio 2005 (framework 2.0)
Database: My SQL 5.0

Created setup with above application configuration.
In that application for database connectivity I have used reference "mysql.data" dll.

After the deployment of using WINE above setup(exe & dll file) goes in "Program Files\MyApp\SachinSetup" folder structure in the Ubuntu 9.10 and setup shortcut goes on the Desktop.

Please provide me some solution.


Thanks in advance.

Sachin.
 
Old 01-04-2010, 02:54 AM   #7
sachinl
LQ Newbie
 
Registered: Jan 2010
Location: Pune, India.
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Elv13 View Post
Open it from a shell and post the result here. But warning, wine is a win32 compatibility layer, not .NET. You should try to compile your application using the mono compiler, it should produce a native Linux binary.


I have opened it from shell, I got following error:

sachin@ubuntu:~/Desktop$ sh TestApp.exe
TestApp.exe: 1: MZ����@���: not found
TestApp.exe: 18: @: not found
TestApp.exe: 18: .sdata�: not found
TestApp.exe: 18: @B: not found
TestApp.exe: 18: ��AK
00: not found
TestApp.exe: 19: Syntax error: "(" unexpected


I have checked with mono project but it support ASP.NET application and for windows application it support only for few controls.

Is there any alternative for the same.

If yes please let me know.


Thanks in advance.

Sachin.
 
Old 01-04-2010, 10:09 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sachinl View Post
I have opened it from shell, I got following error:

sachin@ubuntu:~/Desktop$ sh TestApp.exe
TestApp.exe: 1: MZ����@���: not found
TestApp.exe: 18: @: not found
TestApp.exe: 18: .sdata�: not found
TestApp.exe: 18: @B: not found
TestApp.exe: 18: ��AK
00: not found
TestApp.exe: 19: Syntax error: "(" unexpected


I have checked with mono project but it support ASP.NET application and for windows application it support only for few controls.

Is there any alternative for the same.

If yes please let me know.
No, there isn't.

And you're trying to run a Windows executable as a shell script. As stated before, Windows executables do not run under Linux, ever. If you've set it up as a Wine application, you need to run it under Wine.

If you want a true, Linux application, you'll have to write it in a language that's portable, and recompile it under Linux.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copper.net/KPPP setup on Ubuntu 9.04 (Jaunty) dansboat Linux - General 1 12-18-2009 09:34 PM
samba compatibility with microsoft srvtools.exe (usrmgr.exe and srvmgr.exe) checkmate3001 Linux - Software 1 09-06-2008 05:08 AM
link exe file with some buton in vb.net NEO1986 Programming 1 12-01-2007 12:23 PM
Problem while running Olympus DSS Player's Setup.exe under WINE vivekmr Linux - Software 0 02-05-2007 04:08 AM
SETUP.EXE/autorun.exe don't run in wine mst3kman Linux - Games 3 01-22-2006 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration