Running .Net Framework Applications error

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
manekurt
Newbie
Newbie
Posts: 3
Joined: Thu Jul 30, 2009 8:27 am

Running .Net Framework Applications error

Post by manekurt »

Hi everyone, this error has been a real problem to me for the last days. I searched everywhere I could, and the only user who posted an aparent solution, the page is down (http://wine-forum.org/showthread.php?t=121).

Well, the problem is the following. I have written a .NET application, that I need to test in linux. The app is Framework 2.0 based.

So, I installed Wine succesfully, and .Net framework 2.0 and SP1 too. Everything was fine, installed and running. No errores.

The problem comes when I need to run my applicaction. The following error: "install the windows version of mono to run .net executables".

This message doesn´t make sense for me. Because I installed Wine and .Net framework to be used by my applicaction as platform, and not Mono. Mono is the linux alternative for .Net framework, but, whit wine and .Net Framework, there is no need for the alternative.

Is this right? can anyone help me with this?
Thx!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Running .Net Framework Applications error

Post by vitamin »

manekurt wrote:So, I installed Wine succesfully, and .Net framework 2.0 and SP1 too. Everything was fine, installed and running. No errores.
You need to use winetricks to install .net. Wine has several dlls that have to be overriden to native.
manekurt
Newbie
Newbie
Posts: 3
Joined: Thu Jul 30, 2009 8:27 am

Re: Running .Net Framework Applications error

Post by manekurt »

vitamin wrote:
manekurt wrote:So, I installed Wine succesfully, and .Net framework 2.0 and SP1 too. Everything was fine, installed and running. No errores.
You need to use winetricks to install .net. Wine has several dlls that have to be overriden to native.
Thank for your reply. After reading it, I installed winetricks. But after it, the same error, nothing new.

I downloaded the winetricks, and "sh winetricks corefonts vcrun6".
Everything seemed to be fine, and then I tried to execute the "test.exe" in the same way I did it before "wine test.exe" and the same error came.

Thanx
James Mckenzie

Running .Net Framework Applications error

Post by James Mckenzie »

vitamin wrote:
manekurt wrote:
So, I installed Wine succesfully, and .Net framework 2.0 and SP1 too. Everything was fine, installed and running. No errores.
You need to use winetricks to install .net. Wine has several dlls that have to be overriden to native.
Thank for your reply. After reading it, I installed winetricks. But after it, the same error, nothing new.

I downloaded the winetricks, and "sh winetricks corefonts vcrun6".
Everything seemed to be fine, and then I tried to execute the "test.exe" in the same way I did it before "wine test.exe" and the same error came.
You need to start with a new Wine file installation area.

Code: Select all

mv $HOME/.wine[,.backup]
wine notepad
{exit the notepad application}
sh winetricks corefonts vcrun6 dotnet20
Install your .Net 2.0 program and attempt to run it. You should not receive the "Wine requires Mono" message.

James McKenzie
manekurt
Newbie
Newbie
Posts: 3
Joined: Thu Jul 30, 2009 8:27 am

Re: Running .Net Framework Applications error (SOLVED)

Post by manekurt »

James Mckenzie wrote:
vitamin wrote:
manekurt wrote: You need to use winetricks to install .net. Wine has several dlls that have to be overriden to native.
Thank for your reply. After reading it, I installed winetricks. But after it, the same error, nothing new.

I downloaded the winetricks, and "sh winetricks corefonts vcrun6".
Everything seemed to be fine, and then I tried to execute the "test.exe" in the same way I did it before "wine test.exe" and the same error came.
You need to start with a new Wine file installation area.

Code: Select all

mv $HOME/.wine[,.backup]
wine notepad
{exit the notepad application}
sh winetricks corefonts vcrun6 dotnet20
Install your .Net 2.0 program and attempt to run it. You should not receive the "Wine requires Mono" message.

James McKenzie
James, real solution! Thank a lot! Now I´m going to try tu understand what I did (what you told me) but that worked for me. Thank you again!
User avatar
FatButtLarry
Level 3
Level 3
Posts: 70
Joined: Sat Feb 23, 2008 1:08 pm

Running .Net Framework Applications error

Post by FatButtLarry »

He had you blow away your wine working folder and start from scratch.

BTW, have you considered trying MONO to recompile your .NET app under
Linux? Off-topic for this mailer, but knowledge is power. Cheers.

-Tres

On Thu, Jul 30, 2009 at 12:02 PM, manekurt <[email protected]>wrote:
James Mckenzie wrote:
vitamin wrote:
too. Everything was fine, installed and running. No errores.
that have to be overriden to native.

Thank for your reply. After reading it, I installed winetricks. But
after it, the same error, nothing new.
I downloaded the winetricks, and "sh winetricks corefonts vcrun6".
Everything seemed to be fine, and then I tried to execute the
"test.exe" in the same way I did it before "wine test.exe" and the same
error came.
You need to start with a new Wine file installation area.


Code:

mv $HOME/.wine[,.backup]
wine notepad
{exit the notepad application}
sh winetricks corefonts vcrun6 dotnet20




Install your .Net 2.0 program and attempt to run it. You should not
receive the "Wine requires Mono" message.
James McKenzie
James, real solution! Thank a lot! Now I´m going to try tu understand what
I did (what you told me) but that worked for me. Thank you again!





--
- [email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
Locked