473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying Data Access Application Block

Hi,

I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following

Configuration Error
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: Required permissions cannot be acquired.

Source Error:
[No relevant source lines]
Source File: machine.config Line: 199

I do not have access to the machine.config file everything should be
accessed from the web.config and the databaseconfigu ration.config

Thanks in advance
Rachel
Nov 19 '05 #1
3 1886
1. Are you deploying to the /bin folder or a shared folder?
2. What OS is the server and what OS is the dev box?
3. Is this a web service?

While the questions might seem a bit inane, there are issues with web
services on Windows Server 2003 and the machine config has to be opened up a
bit to utilize the web interface version of the web service. Where you deploy
is also a big deal with Windows Server 2003.

Short story: With what you have given me to go on, there are a variety of
reasons for failure, including some that are more a Windows and security
issue than a data block issue.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Rachel" wrote:
Hi,

I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following

Configuration Error
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: Required permissions cannot be acquired.

Source Error:
[No relevant source lines]
Source File: machine.config Line: 199

I do not have access to the machine.config file everything should be
accessed from the web.config and the databaseconfigu ration.config

Thanks in advance
Rachel

Nov 19 '05 #2
Hi Greg,

I am deploying to the /bin folder.
The server is on Windows 2003 Server/IIS 6
The development box is on XP Pro
It is not a web service

The configuration file used follows.
Thanks
Rachel

<configuratio n>
<mscorlib>
<security>
<policy>
<PolicyLevel version="1">
<SecurityClasse s>
<SecurityClas s Name="AllMember shipCondition"
Description="Sy stem.Security.P olicy.AllMember shipCondition, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="AspNetHos tingPermission"
Description="Sy stem.Web.AspNet HostingPermissi on, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="DnsPermis sion"
Description="Sy stem.Net.DnsPer mission, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="Environme ntPermission"
Description="Sy stem.Security.P ermissions.Envi ronmentPermissi on, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="FileIOPer mission"
Description="Sy stem.Security.P ermissions.File IOPermission, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="FirstMatc hCodeGroup"
Description="Sy stem.Security.P olicy.FirstMatc hCodeGroup, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="IsolatedS torageFilePermi ssion"
Description="Sy stem.Security.P ermissions.Isol atedStorageFile Permission,
mscorlib, Version=1.0.500 0.0, Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="NamedPerm issionSet"
Description="Sy stem.Security.N amedPermissionS et"/>
<SecurityClas s Name="PrintingP ermission"
Description="Sy stem.Drawing.Pr inting.Printing Permission, System.Drawing,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
<SecurityClas s Name="Reflectio nPermission"
Description="Sy stem.Security.P ermissions.Refl ectionPermissio n, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="SecurityP ermission"
Description="Sy stem.Security.P ermissions.Secu rityPermission, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="SocketPer mission"
Description="Sy stem.Net.Socket Permission, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="SqlClient Permission"
Description="Sy stem.Data.SqlCl ient.SqlClientP ermission, System.Data,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="StrongNam eMembershipCond ition"
Description="Sy stem.Security.P olicy.StrongNam eMembershipCond ition, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="UIPermiss ion"
Description="Sy stem.Security.P ermissions.UIPe rmission, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="UnionCode Group"
Description="Sy stem.Security.P olicy.UnionCode Group, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="UrlMember shipCondition"
Description="Sy stem.Security.P olicy.UrlMember shipCondition, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="WebPermis sion"
Description="Sy stem.Net.WebPer mission, System, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
<SecurityClas s Name="ZoneMembe rshipCondition"
Description="Sy stem.Security.P olicy.ZoneMembe rshipCondition, mscorlib,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
</SecurityClasses >
<NamedPermissio nSets>
<PermissionSe t
class="NamedPer missionSet"
version="1"
Unrestricted="t rue"
Name="FullTrust "
Description="Al lows full access to all
resources"
/>
<PermissionSe t
class="NamedPer missionSet"
version="1"
Name="Nothing"
Description="De nies all resources, including
the right to execute"
/>
<PermissionSe t
class="NamedPer missionSet"
version="1"
Name="ASP.Net">
<IPermission
class="AspNetHo stingPermission "
version="1"
Level="Medium"
/>
<IPermission
class="DnsPermi ssion"
version="1"
Unrestricted="t rue"
/>
<IPermission
class="Environm entPermission"
version="1"
Read="TEMP;TMP"
/>
<IPermission
class="FileIOPe rmission"
version="1"
Read="$AppDir$"
Write="$AppDir$ "
Append="$AppDir $"
PathDiscovery=" $AppDir$"
/>
<IPermission
class="Reflecti onPermission"
version="1"
Unrestricted="t rue"
/>
<IPermission
class="Security Permission"
Flags="Assertio n, Execution,
ControlThread, ControlPrincipa l, RemotingConfigu ration, ControlAppDomai n"
/>
<IPermission
class="SocketPe rmission"
version="1"
Unrestricted="t rue"
/>
<IPermission
class="SqlClien tPermission"
version="1"
Unrestricted="t rue"
/>
<IPermission
class="WebPermi ssion"
version="1"
Unrestricted="t rue"
/>
</PermissionSet>
</NamedPermission Sets>
<CodeGroup
class="FirstMat chCodeGroup"
version="1"
PermissionSetNa me="Nothing">
<IMembershipCon dition
class="AllMembe rshipCondition"
version="1"
/>
<CodeGroup
class="UnionCod eGroup"
version="1"
PermissionSetNa me="ASP.Net">
<IMembershipCon dition
class="UrlMembe rshipCondition"
version="1"
Url="$AppDirUrl $/*"
/>
</CodeGroup>
<CodeGroup
class="UnionCod eGroup"
version="1"
PermissionSetNa me="ASP.Net">
<IMembershipCon dition
class="UrlMembe rshipCondition"
version="1"
Url="$CodeGen$/*"
/>
</CodeGroup>
<CodeGroup
class="UnionCod eGroup"
version="1"
PermissionSetNa me="FullTrust" >
<IMembershipCon dition
class="UrlMembe rshipCondition"
Url="$Gac$/*"
version="1"
/>
</CodeGroup>
<CodeGroup class="UnionCod eGroup" version="1"
PermissionSetNa me="Nothing">
<IMembershipCon dition
class="ZoneMemb ershipCondition "
version="1"
Zone="MyCompute r" />
<CodeGroup
class="UnionCod eGroup"
version="1"
PermissionSetNa me="FullTrust"
Name="Microsoft _Strong_Name"
Description="Th is code group grants code
signed with the Microsoft strong name full trust. ">
<IMembershipCon dition
class="StrongNa meMembershipCon dition"
version="1"

PublicKeyBlob=" 002400000480000 094000000060200 000024000052534 131000400000100 010007D1FA57C4A ED9F0A32E84AA0F AEFD0DE9E8FD6AE C8F87FB03766C83 4C99921EB23BE79 AD9D5DCC1DD9AD2 36132102900B723 CF980957FC4E177 108FC607774F29E 8320E92EA05ECE4 E821C0A5EFE8F16 45C4C0C93C1AB99 285D622CAA652C1 DFAD63D745D6F2D E5F17E5EAF0FC49 63D261C8A124365 18206DC093344D5 AD293"
/>
</CodeGroup>
<CodeGroup
class="UnionCod eGroup"
version="1"
PermissionSetNa me="FullTrust"
Name="Ecma_Stro ng_Name"
Description="Th is code group grants code
signed with the ECMA strong name full trust. ">
<IMembershipCon dition
class="StrongNa meMembershipCon dition"
version="1"

PublicKeyBlob=" 000000000000000 004000000000000 00"
/>
</CodeGroup>
</CodeGroup>
</CodeGroup>
</PolicyLevel>
</policy>
</security>
</mscorlib>
</configuration>

"Cowboy (Gregory A. Beamer) - MVP" wrote:
1. Are you deploying to the /bin folder or a shared folder?
2. What OS is the server and what OS is the dev box?
3. Is this a web service?

While the questions might seem a bit inane, there are issues with web
services on Windows Server 2003 and the machine config has to be opened up a
bit to utilize the web interface version of the web service. Where you deploy
is also a big deal with Windows Server 2003.

Short story: With what you have given me to go on, there are a variety of
reasons for failure, including some that are more a Windows and security
issue than a data block issue.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Rachel" wrote:
Hi,

I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following

Configuration Error
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: Required permissions cannot be acquired.

Source Error:
[No relevant source lines]
Source File: machine.config Line: 199

I do not have access to the machine.config file everything should be
accessed from the web.config and the databaseconfigu ration.config

Thanks in advance
Rachel

Nov 19 '05 #3
I still can not find any solution to this, do you have any more details that
may help me.

Thanks in Advance
Rachel

"Cowboy (Gregory A. Beamer) - MVP" wrote:
1. Are you deploying to the /bin folder or a shared folder?
2. What OS is the server and what OS is the dev box?
3. Is this a web service?

While the questions might seem a bit inane, there are issues with web
services on Windows Server 2003 and the machine config has to be opened up a
bit to utilize the web interface version of the web service. Where you deploy
is also a big deal with Windows Server 2003.

Short story: With what you have given me to go on, there are a variety of
reasons for failure, including some that are more a Windows and security
issue than a data block issue.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Rachel" wrote:
Hi,

I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following

Configuration Error
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: Required permissions cannot be acquired.

Source Error:
[No relevant source lines]
Source File: machine.config Line: 199

I do not have access to the machine.config file everything should be
accessed from the web.config and the databaseconfigu ration.config

Thanks in advance
Rachel

Nov 19 '05 #4

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

Similar topics

0
2220
by: ad | last post by:
I have used Data Application Access Block2 in my web application. Now I download the Library Data Access Application Block. and read the document. May be I am stupid, I can't migrate it to Enterprise Library Data Access Application Block. The code below is the Data Application Access Block 2, How can I modified them? //---------------using Data Application Access Block
3
1720
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following Configuration Error 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.
5
2373
by: | last post by:
I've created a small vb.net application which uses the Data Access Application Block to access a SQL Server 2000 database. The application works fine on the machine with the development environment (Windows 2K) but I am unable to get it to work on two other machines (Windows XP machines). When I try running the application on these machines I get a message box, after some delay, that says "Application has generated an exception that could...
4
4394
by: JOHN MALONEY | last post by:
Hi Everybody, I have created a three-tiered db application in VB .NET but I can't get the deployment to work right. I have added a SetUp project to the existing application. I also selected RELEASE as appropriate in the Application Folder and on the Users Desktop and Start menu. I didn't know whether the Project Output though would be enough or whether I would need to add the .mdb file to the Application folder too. I tested the deployment...
0
975
by: Devlei | last post by:
I have developed an application using Visual Studio 2003 and Win XP. All works 100% on Win XP, but on deploying to Win 98 I am getting the following problems: 1. The installer creates shortcuts on Desktop and Start menu that have no 'Target Location' etc. On trying to run them it returns an error, "C:\Windows\Application Data\Microsoft\Installer\{1D5D63DD-....}\_69525.exe is not a Win32 Application" 2. I get the following error:...
6
4138
by: Mukesh | last post by:
Hi I have Microsoft Enterprise Library 2005 installed on my local system. I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql Server 2000. I am developing a web application in which i am using data Access Application Block for data access. I have a remote web n data server with asp.net 1.1 support
3
1807
by: Mukesh | last post by:
Hi all As per my earlier conversation with Ciaran (thx for reply) I have installed the MS APplication block on the server , when i ran Build Enterprise Library file and Install Services from (batch files ) programme files menu it was asking for visual studio 2003 , I have only .net framework on the server how can i use the MS application block data access library on my server plz help... Mukesh Agarwal
3
2608
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and putting it in the Program Files directory along with the application executable, no problem. The problem is this... The OleDbConnection knows of the database in an absolute location (i.e. C:\Documents and Settings\ApplicationDB\data.mdb
12
13418
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD file was built by draging tables from the Data Sources pane. Auto-generated code created the files associated wtih the XSD file (xss,
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8272
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8035
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
8258
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
6688
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
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
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.