473,666 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
web_mediumtrust .config
::::::::::::::: :::::::::

<PolicyLevel version="1">
............... ... some default tags .......
<SecurityClas s Name="OleDbPerm ission"
Description="Sy stem.Data.OleDb .OleDbPermissio n,
System.Data, Version=2.0.0.0 ,
Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9"/>

<SecurityClas s Name="EventLogP ermission"
Description="Sy stem.Diagnostic s.EventLogPermi ssion,
System, Version=2.0.0.0 ,
Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9" />

</SecurityClasses >

<NamedPermissio nSets>
<PermissionSe t
class="NamedPer missionSet"
version="1"
Name="ASP.Net">
............... ... some default tags .......
<IPermission class="OleDbPer mission" version="1"
Unrestricted="t rue"/>
<IPermission class="EventLog Permission"
version="1">
<Machine name="." access="Write"/>
</IPermission>
<IPermission
class="SqlClien tPermission"
version="1"
Unrestricted="t rue"
/>

</PermissionSet>
</NamedPermission Sets>
::::::::::::::: ::::::::::::::: ::::::::::::::

result

::::::::::::::: ::::::::::::::: :::::::::::::
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="Syste m.EnterpriseSer vices,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\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:

http://blogs.msdn.com/tomholl/archiv...x?Pending=true
If you are deploying to an environment where the instrumentation
cannot be
used,
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\Buil d,
find the Conditional Compilation Properties property
and remove ;USEWMI;USEEVEN TLOG;USEPERFORM ANCECOUNTER (or
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.

http://channel9.msdn.com/wiki/defaul...riseLibraryFAQ
Open up the EnterpriseLibra ry.sln and modify the Configuration
Properties\Buil d\Conditional Constants
of the EnterpriseLibra ry.Common project.
Remove the USEWMI;USEEVENT LOG;USEPERFORMA NCECOUNTER constants.
By removing these constants,
all of the internal Enterprise Library instrumentation will be disabled.
Recompile.
"bungle" <bu****@wizardb uy.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
>Hi,

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:

http://scottonwriting.net/sowblog/posts/3406.aspx

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
servers?

Thanks in advance

Dave



"Mukesh" <ef*****@newsgr oups.nospamwrot e in message
news:45******** ******@newsgrou ps.nospam...
>Hi

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
Mu****@efextra. com
Delhi, India
*

Oct 7 '06 #1
3 1726
is there anybody to help me
Oct 7 '06 #2
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
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Mukesh" <ef*****@newsgr oups.nospamwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
is there anybody to help me

Oct 7 '06 #3
Hi Mukesh,

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

Regards,
Walter Wang (wa****@online. microsoft.com, 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2934
by: Karuppasamy | last post by:
Hi I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net . I installed everything as per the Instructions given in the 'Development Using the Logging Block'. But when i am trying to run the sample, i am getting the following error in the Event Viwer. Kindly help me on this.
8
4085
by: poifull | last post by:
Is anyone using the Microsoft Enterprise Library? If yes, do you like it or not? Any feedback will be appreciated.
5
2353
by: tindog | last post by:
I seem to be caught in a bit of a conundrum with C#. First of all getting books on VS 2003.net then VS 2005 comes out and further a book I have bought to just learn just the language C# (in 21 days). I now have ordered, as suggested to me by a few members of the newsgroup to get a Primer type book how ever until then I will use what I have. BUT looking at the C# language my first exercise which happens to be a windows form looks quite...
4
2928
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is the page does show up on the left side of the screen listing the available methods but the Add...
1
1526
by: Kiran_Juikar | last post by:
My application is already installed on the client machines & I am using Application Updater blockfor Auto Upgrades. Can I replace Updater blocks with ClickOnce.
6
3096
by: Moumen VB.NET 2003/2005 Developer | last post by:
How can I detect if a file sitting on a network drive is still open by another application? This application resides on another machine on the network? I am using VB.NET 2003 Your help is highly appreciated
5
1812
by: lds | last post by:
I am in the process of trying to migrate some of our existing .NET applications from version 1.1 to 2.0. In our 1.1 apps we have a common assembly that uses the sqlhelper.vb class from the Micosoft Application Block provided for version 1.1. When I try to migrate I get a few errors, so I thought that maybe I should just try using the new application block for version 2.0. I downloaded the Enterprise Library and it is all C#. Is there...
4
336
by: Mukesh | last post by:
Hi 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.
3
2820
by: Mukesh | last post by:
Hi all I have Created an web application using VS 2005, asp.net2.0, Ajax Extensions 1.0, Ent Lib 3.1 , MS sql Server 2005, ajax Control tool kit Version 1.0.10618.0
0
8355
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8638
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.