Kernel 2.6.35 and .Net Framework

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Kernel 2.6.35 and .Net Framework

Post by ncl »

Is there anyone who can run .Net Framework 2.0 with the stable kernel 2.6.34 or 2.6.35?

I can successfully install dotnet2 both with kernel 2.6.33 and 2.6.35, but can only run it when booting into kernel 2.6.33. With kernel 2.6.35 I don't have the permission as user to run dotnet2, and get an access denied.

An example:
Running AGS (Adventure Game Studio) with kernel 2.6.33 works fine. But with 2.6.35 (2.6.34) I got the following error:

System.ComponentModel.Win32Exception: Access denied
at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean FirstModuleOnly)
at System.Diagnostics.Process.get_MainModule()
at AGS.Editor.AGSEditor..ctor()
...

If I try to install dotnet 3.0 booting into kernel 2.6.33 it seem to install without any problem. Installing under kernel 2.6.35 (2.6.34) it failed with an access denied. A work around is to add "Permission everyone" to the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security\ServiceModel 3.0.0.0 and then reinstall
dotnet3. It now seem to install successfully, but I can't test it - because I have no program running dotnet3 and dotnet2 still give me an access denied.

I have tried to give access to everyone under dotnet2, but without success. Any solution?

I'm running Ubuntu lucid 64 bit (wine 1.2 rc7 - 32 bit).
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Please make sure you have the latest rc7, there was an early packaging
problem with it for the first few days.

(Or you can build it yourself from source, that would also work around
the packaging problem.)
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Post by ncl »

Hej DanKegel!

Thanks for your reply.

But this problem also exist before wine 1.2 was released. If I boot into kernel 2.6.33 and also 2.6.34rc? I have no problem. If I boot into kernel 2.6.34(stable version) or 2.6.35 I get an access denied. I use the same installation of wine.

If I search on the net I see that many people on Windows get the same error:

System.ComponentModel.Win32Exception: Access denied.

The reason seem to be that the user do not have the rights to load the program. There is a lots of solution about how to change this in Windows, but that do not work under linux.
James Mckenzie

Kernel 2.6.35 and .Net Framework

Post by James Mckenzie »

ncl <[email protected]> wrote:
Sent: Jul 12, 2010 9:01 AM
To: [email protected]
Subject: [Wine] Re: Kernel 2.6.35 and .Net Framework

Hej DanKegel!

Thanks for your reply.

But this problem also exist before wine 1.2 was released. If I boot into kernel 2.6.33
and also 2.6.34rc? I have no problem. If I boot into kernel 2.6.34(stable version) or
2.6.35 I get an access denied. I use the same installation of wine.
Are you using any of the enhanced security features of Linux? This should not occur just because of Wine. This appears to be a Linux kernel issue but may be a permissions issue. Can you look at the permissions for $HOME/.wine and all of the directories/files underneath it? They should all be owned by the current user and group.

James McKenzie
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Post by ncl »

Hello James!

Yes I'm the owner of my §HOME./wine and have full access to everything. The problem only exist when I boot into kernel 2.6.35 and latest 2.6.34. When I boot into kernel 2.6.33 everything works. Also trying install dotnet3 seem to works under kernel 2.6.33 but failed under kernel 2.6.35 (access denied - see post 1).
Martin Gregorie

Kernel 2.6.35 and .Net Framework

Post by Martin Gregorie »

On Mon, 2010-07-12 at 09:24 -0700, James Mckenzie wrote:
ncl <[email protected]> wrote:
Sent: Jul 12, 2010 9:01 AM
To: [email protected]
Subject: [Wine] Re: Kernel 2.6.35 and .Net Framework

Hej DanKegel!

Thanks for your reply.

But this problem also exist before wine 1.2 was released. If I boot into kernel 2.6.33
and also 2.6.34rc? I have no problem. If I boot into kernel 2.6.34(stable version) or
2.6.35 I get an access denied. I use the same installation of wine.
Are you using any of the enhanced security features of Linux? This
should not occur just because of Wine. This appears to be a Linux
kernel issue but may be a permissions issue. Can you look at the
permissions for $HOME/.wine and all of the directories/files
underneath it? They should all be owned by the current user and
group.
If the OP has SELinux or AppArmor enabled this will drop in an
additional set of traps. I'm unclear about exactly AppArmor does or how
it works, or exactly which security package each distro uses, but Fedora
uses SELinux. This adds its own security labels to all filing system
objects which can and often do override standard file access
permissions. Its OK when running standard packages within fairly
restrictive guidelines, but if you're doing anything outside this, it
can be a real pain because you can find your end up relabelling great
chunks of the filing system and rebooting to see whether that helped.

I don't know how this affects Wine and Wine apps because I have SELinux
disabled on the machine where I run them, but it can be a major problem
for some Apache configurations.

If the OP is running one of these, he should try setting it to
'Permissive' or 'Disabled' and see if that helps. He'll probably have to
reboot after making the change for it to take effect.

SELinux 'Permissive' mode allows things that 'Enforcing' mode would
forbid but logs them for analysis. 'Enforcing' mode is the default.
'Disabled does what it says on the tin.


Martin
James Mckenzie

Kernel 2.6.35 and .Net Framework

Post by James Mckenzie »

Martin Gregorie <[email protected]> wrote:
Sent: Jul 12, 2010 10:14 AM
To: [email protected]
Subject: Re: [Wine] Kernel 2.6.35 and .Net Framework

On Mon, 2010-07-12 at 09:24 -0700, James Mckenzie wrote:
ncl <[email protected]> wrote:
Sent: Jul 12, 2010 9:01 AM
To: [email protected]
Subject: [Wine] Re: Kernel 2.6.35 and .Net Framework

Hej DanKegel!

Thanks for your reply.

But this problem also exist before wine 1.2 was released. If I boot into kernel
2.6.33
and also 2.6.34rc? I have no problem. If I boot into kernel 2.6.34(stable version) or
2.6.35 I get an access denied. I use the same installation of wine.
Are you using any of the enhanced security features of Linux? This
should not occur just because of Wine. This appears to be a Linux
kernel issue but may be a permissions issue. Can you look at the
permissions for $HOME/.wine and all of the directories/files
underneath it? They should all be owned by the current user and
group.
If the OP has SELinux or AppArmor enabled this will drop in an
additional set of traps. I'm unclear about exactly AppArmor does or how
it works, or exactly which security package each distro uses, but Fedora
uses SELinux. This adds its own security labels to all filing system
objects which can and often do override standard file access
permissions. Its OK when running standard packages within fairly
restrictive guidelines, but if you're doing anything outside this, it
can be a real pain because you can find your end up relabelling great
chunks of the filing system and rebooting to see whether that helped.
ncl is running Ubuntu. I don't think the problem is AppArmor either. ncl changed a Wine registry setting and then was able to install .NET 3.0 with Kernel 2.6.35 installed. Again, this looks to be a Kernel specific issue outside of the scope of the Wine project. Maybe the ncl can provide additional information on the setup of Linux and if AppArmor is in use.

ncl also stated that a test of .NET 2.0 could not be done. fastmd5 is a .NET 2.0 application that is small and will indeed advise if .NET 2.0 is installed and functional. ncl could you try to use this program?

Fastmd5 can be downloaded from:

http://www.paehl.de/cms/fastmd5

It also works with Mono version 1.1 or higher. Nice test to see if Mono is installed correctly as well.

James McKenzie
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Post by ncl »

I should maybe be a little more clear. I can run a lot of program with wine - really all program I have installed - except AGS and dotnet3 with kernel 2.6.35. Maybe I could test some other program who need dotnet2. So is there someone who know some small (free) program there need dotnet2 to run, so I could test them?
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Post by ncl »

Hello James!

fastmd5 works fine both with kernel 2.6.33 and kernel 2.5.35.
James Mckenzie

Kernel 2.6.35 and .Net Framework

Post by James Mckenzie »

ncl <[email protected]> wrote:
fastmd5 works fine both with kernel 2.6.33 and kernel 2.5.35.
It appears that .NET 2.0 works then.

Interesting situation we have here. This still looks like a Linux problem and not a Wine problem. Maybe I can look at installing .NET 3.0 on my Mac and see what happens this evening (Arizona time.)

James McKenzie
ncl
Level 1
Level 1
Posts: 6
Joined: Mon Jul 12, 2010 3:24 am

Post by ncl »

Hey everyone!

Thanks for all your reply!
But I really want to know about I'm the only one who have this problem. If you both run an older kernel lets say 2.6.33 and a newer one say 2.6.35 or 2.6.34 (final) could you then please do the following for testing:

You need to install dotnet2 first from winetricks.

1) Try to install AGS (Adventure Game Studio). You can get it from
http://www.bigbluecup.com/AGS-3.2-Final5.exe and its a really very little program. Run it both under 2.6.33 and 2.5.35 and then report back about this work. It didn't work for me with kernel 2.6.35 but fine under 2.6.33.

2) You could also please try to install dotnet3 both under kernel 2.6.33 and kernel 2.6.35 and report back.


Thanks a lot.
Locked