473,569 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to use microsoft application blocks ent lib june 2005

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 5 '06 #1
4 1913
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 5 '06 #2
Thx Sloanfor the solution.
It is working properly under Full trust
When i tried it under unMedium 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 6 '06 #3
The only thing you need to do to get Ent Lib working on a server is run
installutil on all the ent lib DLLs in order to register the event logs,
performance counters and WMI sinks associated with them.

There are no services (if by that you mean a Windows service) in Ent Lib.
Your code should just be referencing and using the DLLs.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"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 6 '06 #4
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 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2927
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
4083
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.
0
986
by: karthick | last post by:
Hi: I have an n- tier application where a web app calls a web service to get/set info. My web app is configured to use the caching, exception and logging block of the june version of Enterprise library application blocks. The Web service is configured to use the data access block. when i make a call from the web app, when execution comes to...
182
7422
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
1
1525
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.
2
6082
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the development machine's Assembly Cache. The assemblies version appears to be 1.1.0.0. I changed the project reference to the newly compiled...
5
1809
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...
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...
3
1721
by: Mukesh | last post by:
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:
0
7619
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...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
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...
0
5228
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...
0
3662
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...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.