System.AccessViolationException in 64-bit server

System.AccessViolationException in 64-bit server

Old forum URL: forums.lhotka.net/forums/t/4672.aspx


haripriya_kumar posted on Friday, April 11, 2008

Hi All,

 

We have .Net Product works on .Net 2.0 environment or higher.

My client has a 64-bit windows server 2003, which provides Terminal Services. If multiple users are logged-in to the server the .Net application(run through the terminal service) errors out and closes all instance of the .Net application which is currently open. If only one user is running the .Net application there is no issue with the application. Only if multiple instance of the application is created the System.AccessViolationException prevails. (They do have .net framework 64-bit installed)

We have several clients who have Windows Server 2003 64-bit and Windows Server 2003 32-bit (with Terminal Services), it does work for them just fine.

 

Below is the error thrown on the TS User-End:

DataPortal.Fetch failed (Csla.DataPortalException: DataPortal.Fetch failed (System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.) ---> Csla.Server.CallMethodException: DataPortal_Fetch method call failed ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Below is the error thrown on the Server-End:

Description:

Faulting application omscheduler.exe, version 8.0.33.0, faulting module mscorwks.dll, version 2.0.50727.63, fault address 0x002231b4.

 

Any kind of help is really appreciated, thanks.

-Hari

sergeyb replied on Friday, April 11, 2008

Are multiple users using different windows log ins?

 

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: haripriya_kumar [mailto:cslanet@lhotka.net]
Sent: Friday, April 11, 2008 2:21 PM
To: Sergey Barskiy
Subject: [CSLA .NET] System.AccessViolationException in 64-bit server

 

Hi All,

 

We have .Net Product works on .Net 2.0 environment or higher.

My client has a 64-bit windows server 2003, which provides Terminal Services. If multiple users are logged-in to the server the .Net application(run through the terminal service) errors out and closes all instance of the .Net application which is currently open. If only one user is running the .Net application there is no issue with the application. Only if multiple instance of the application is created the System.AccessViolationException prevails. (They do have .net framework 64-bit installed)

We have several clients who have Windows Server 2003 64-bit and Windows Server 2003 32-bit (with Terminal Services), it does work for them just fine.

 

Below is the error thrown on the TS User-End:

DataPortal.Fetch failed (Csla.DataPortalException: DataPortal.Fetch failed (System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.) ---> Csla.Server.CallMethodException: DataPortal_Fetch method call failed ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Below is the error thrown on the Server-End:

Description:

Faulting application omscheduler.exe, version 8.0.33.0, faulting module mscorwks.dll, version 2.0.50727.63, fault address 0x002231b4.

 

Any kind of help is really appreciated, thanks.

-Hari



haripriya_kumar replied on Friday, April 11, 2008

Yes different user logins are used to connect to the server.

sergeyb replied on Friday, April 11, 2008

Not sure if this is helpful, but check configuration of the terminal server to see how temporary folders are handled for the users.  They should point to different locations for each user.

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: haripriya_kumar [mailto:cslanet@lhotka.net]
Sent: Friday, April 11, 2008 3:12 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: System.AccessViolationException in 64-bit server

 

Yes different user logins are used to connect to the server.


haripriya_kumar replied on Monday, April 14, 2008

Verified, Temporary folders are set to per session.

sergeyb replied on Monday, April 14, 2008

Would this be the issue you are seeing?

 

http://support.microsoft.com/kb/913384/en-us

 

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: haripriya_kumar [mailto:cslanet@lhotka.net]
Sent: Monday, April 14, 2008 10:08 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: System.AccessViolationException in 64-bit server

 

Verified, Temporary folders are set to per session.

haripriya_kumar replied on Monday, April 14, 2008

Tried this before but the fix does not get installed since service pack 1 is already installed.

Copyright (c) Marimer LLC