By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,885 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,885 IT Pros & Developers. It's quick & easy.

still probs ::: how to use microsoft application blocks ent libjune 2005

P: n/a
Thx Sloan
for the solution.
It is working properly under Full trust
When i tried it under Medium trust it was giving error
Parser Error Message: Required permissions cannot be acquired.
Source Error:
[No relevant source lines]
Source File: machine.config Line: 258
when i tried to solve it out by editing

<PolicyLevel version="1">
.................. some default tags .......
<SecurityClass Name="OleDbPermission"
System.Data, Version=,

<SecurityClass Name="EventLogPermission"
Description="System.Diagnostics.EventLogPermission ,
System, Version=,
PublicKeyToken=b77a5c561934e089" />


.................. some default tags .......
<IPermission class="OleDbPermission" version="1"
<IPermission class="EventLogPermission"
<Machine name="." access="Write"/>



Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Execution permission cannot be acquired.

Source Error:
Line 196: <add assembly="System.EnterpriseServices,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\\framework\v1.1.4322\Confi g\machine.config Line: 198

Please suggest how i can remove this error
and run the applicatin under medium trust

sloan wrote:
Read these blogs:

And next time try to be a little more limiting to which newsgroups
you post.

Common Build Properties were changed from Default:
If you are deploying to an environment where the instrumentation
cannot be
it's pretty easy to disable it, but you will need to recompile the code.
Luckily all the instrumentation code is wrapped around conditional
compilation directives,
so you won't need to edit any source files directly.
Just go into the Project Properties dialog for the Common project,
and under Configuration Properties\Build,
find the Conditional Compilation Properties property
any combination of these that you don't want).
Once you recompile, the relevant instrumentation code will be disabled.
Of course, it is still possible to configure the Logging &
Instrumentation Application Block to use WMI or Event Log,
so make sure you also choose appropriate settings for your environment
if you are using that block.
Open up the EnterpriseLibrary.sln and modify the Configuration
Properties\Build\Conditional Constants
of the EnterpriseLibrary.Common project.
By removing these constants,
all of the internal Enterprise Library instrumentation will be disabled.
"bungle" <bu****@wizardbuy.comwrote in message

I have started using MS Enterprise Library for the data access layer
and found it great. I have changed to coding on another machine though
and didn't think it necessary to a full install of the Enterprise
Library. This caused a problem that the following article solves:

Does this however mean I am going to run into all sorts of problems
using the enterprise library if I host my website on a shared hosting
solution where I don't have any control on what is installed on the

Thanks in advance


"Mukesh" <ef*****@newsgroups.nospamwrote in message

I m using
microsoft application blocks Enterprise Library june 2005 with .net
framework 1.1 and VStudio2003 And C# as coding language
Sql server 2000 database

the project is running properly on the localhost server
but my online server does not have the ms Ent lib installed and also
de\oes not have visual studio that simply a .net 1.1 installed on that.
That means the windows services that the MS entLIb 2005 requires are not
installed on the server. SO the project is giving error and not
connecting to the database.

*SO how can i use MS ent Lib without installing the services on the
server and Simply refering the dll's provided with MS entLib.

Plz Help me

Mukesh Kumar Agarwal
Delhi, India

Oct 7 '06 #1
Share this Question
Share on Google+
3 Replies

P: n/a
is there anybody to help me
Oct 7 '06 #2

P: n/a
Use the .NET configuration utility to examine the ent lib assemblie to find
out what permissions are required to run. Then provide these permissions.
That would be the easiest way.

Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET, Amazon
"Mukesh" <ef*****@newsgroups.nospamwrote in message
is there anybody to help me

Oct 7 '06 #3

P: n/a
Hi Mukesh,

I've replied you in the thread "how to use microsoft application blocks ent
lib june 2005" - microsoft.public.dotnet.framework.aspnet. Let's keep the
discussion there. Thank you.

Walter Wang (wa****, remove 'online.')
Microsoft Online Community Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.