Hello, we are developing an ERP solution with ASP.net, DataObjects.net and SQL Server 2008 R2, we are using Domain.Build to build the access point for one or more database(users can login to more than one database), the problem is that, when calling Domain.Build(companyDomainConfig); the memory usage increases dramatically.

i have three databases(each one point to a company), when build the first company the IIS w3wp.exe service memory increases from 171m to 1593m, next companies building increase by 400:500m.

is that reasonable and if not, what should we do to prevent this?

we are using 1. Dataobject.net V4.4.1 build 7999. 2. SQL Server 2008 R2 3. IIS 7.5 4. .Net 4.0

asked Jun 19 '12 at 06:28

ahmad%20emad's gravatar image

ahmad emad


We have some important fixes related to memory usage in recent releases, could you please try with 4.4.3 RC3?

(Jun 19 '12 at 06:37) Denis Krjuchkov Denis%20Krjuchkov's gravatar image

Hello Denis, i have downloaded the rar file from http://dataobjects.net/downloads/Download.aspx?Upcoming/DataObjects.Net-4.4.3_RC3.rar then i replaced my program file folder with the extracted files but it gives this error during compile: "PostSharp targets have been imported twice in the project. Be sure to set the 'DontImportPostSharp' property to 'True' when you import PostSharp manually, so that it does not get imported automatically".

is this a problem with the release or i do somthing wrong?

(Jun 19 '12 at 11:31) ahmad emad ahmad%20emad's gravatar image

We switched to PostSharp 2.1 (from 2.0), you likely have PS 2.0 installed. To fix the issue you can either uninstall PS 2.0 or add <dontimportpostsharp>True</dontimportpostsharp> MSBuild property to your projects with persistent types.

(Jun 20 '12 at 01:00) Denis Krjuchkov Denis%20Krjuchkov's gravatar image

i installed 4.4.3 RC3 but the problem still exists, but i think there is a very little improvement(only decrease in a few megabytes).

to build the domain of the first database (company) it takes nearly 1.1 GB of w3wp.exe IIS process(excluding memory size before execute build process), then after building the second database it increased nearly by 565 M.

(Jun 20 '12 at 07:07) ahmad emad ahmad%20emad's gravatar image

Could you please write to support@ for further investigation?

(Jun 20 '12 at 08:00) Denis Krjuchkov Denis%20Krjuchkov's gravatar image

One Answer:

Hello Ahmad,

DataObjects.Net 4.4.3 is released. It should fix memory consumption problem.

See downloads section.

answered Jul 02 '12 at 09:37

Denis%20Krjuchkov's gravatar image

Denis Krjuchkov

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Jun 19 '12 at 06:28

Seen: 5,965 times

Last updated: Jul 02 '12 at 09:37

powered by OSQA