Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Deploying Data Access Application Block

Reply
Thread Tools

Deploying Data Access Application Block

 
 
=?Utf-8?B?UmFjaGVs?=
Guest
Posts: n/a
 
      06-16-2005
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 databaseconfiguration.config

Thanks in advance
Rachel
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBNVlA=?=
Guest
Posts: n/a
 
      06-16-2005
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 databaseconfiguration.config
>
> Thanks in advance
> Rachel

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmFjaGVs?=
Guest
Posts: n/a
 
      06-17-2005
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

<configuration>
<mscorlib>
<security>
<policy>
<PolicyLevel version="1">
<SecurityClasses>
<SecurityClass Name="AllMembershipCondition"
Description="System.Security.Policy.AllMembershipC ondition, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="AspNetHostingPermission"
Description="System.Web.AspNetHostingPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="DnsPermission"
Description="System.Net.DnsPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="EnvironmentPermission"
Description="System.Security.Permissions.Environme ntPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="FileIOPermission"
Description="System.Security.Permissions.FileIOPer mission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="FirstMatchCodeGroup"
Description="System.Security.Policy.FirstMatchCode Group, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="IsolatedStorageFilePermission"
Description="System.Security.Permissions.IsolatedS torageFilePermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="NamedPermissionSet"
Description="System.Security.NamedPermissionSet"/>
<SecurityClass Name="PrintingPermission"
Description="System.Drawing.Printing.PrintingPermi ssion, System.Drawing,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<SecurityClass Name="ReflectionPermission"
Description="System.Security.Permissions.Reflectio nPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="SecurityPermission"
Description="System.Security.Permissions.SecurityP ermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="SocketPermission"
Description="System.Net.SocketPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="SqlClientPermission"
Description="System.Data.SqlClient.SqlClientPermis sion, System.Data,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="StrongNameMembershipCondition"
Description="System.Security.Policy.StrongNameMemb ershipCondition, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="UIPermission"
Description="System.Security.Permissions.UIPermiss ion, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="UnionCodeGroup"
Description="System.Security.Policy.UnionCodeGroup , mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="UrlMembershipCondition"
Description="System.Security.Policy.UrlMembershipC ondition, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="WebPermission"
Description="System.Net.WebPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<SecurityClass Name="ZoneMembershipCondition"
Description="System.Security.Policy.ZoneMembership Condition, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</SecurityClasses>
<NamedPermissionSets>
<PermissionSet
class="NamedPermissionSet"
version="1"
Unrestricted="true"
Name="FullTrust"
Description="Allows full access to all
resources"
/>
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="Nothing"
Description="Denies all resources, including
the right to execute"
/>
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="ASP.Net">
<IPermission
class="AspNetHostingPermission"
version="1"
Level="Medium"
/>
<IPermission
class="DnsPermission"
version="1"
Unrestricted="true"
/>
<IPermission
class="EnvironmentPermission"
version="1"
Read="TEMP;TMP"
/>
<IPermission
class="FileIOPermission"
version="1"
Read="$AppDir$"
Write="$AppDir$"
Append="$AppDir$"
PathDiscovery="$AppDir$"
/>
<IPermission
class="ReflectionPermission"
version="1"
Unrestricted="true"
/>
<IPermission
class="SecurityPermission"
Flags="Assertion, Execution,
ControlThread, ControlPrincipal, RemotingConfiguration, ControlAppDomain"
/>
<IPermission
class="SocketPermission"
version="1"
Unrestricted="true"
/>
<IPermission
class="SqlClientPermission"
version="1"
Unrestricted="true"
/>
<IPermission
class="WebPermission"
version="1"
Unrestricted="true"
/>
</PermissionSet>
</NamedPermissionSets>
<CodeGroup
class="FirstMatchCodeGroup"
version="1"
PermissionSetName="Nothing">
<IMembershipCondition
class="AllMembershipCondition"
version="1"
/>
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="ASP.Net">
<IMembershipCondition
class="UrlMembershipCondition"
version="1"
Url="$AppDirUrl$/*"
/>
</CodeGroup>
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="ASP.Net">
<IMembershipCondition
class="UrlMembershipCondition"
version="1"
Url="$CodeGen$/*"
/>
</CodeGroup>
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust">
<IMembershipCondition
class="UrlMembershipCondition"
Url="$Gac$/*"
version="1"
/>
</CodeGroup>
<CodeGroup class="UnionCodeGroup" version="1"
PermissionSetName="Nothing">
<IMembershipCondition
class="ZoneMembershipCondition"
version="1"
Zone="MyComputer" />
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="Microsoft_Strong_Name"
Description="This code group grants code
signed with the Microsoft strong name full trust. ">
<IMembershipCondition
class="StrongNameMembershipCondition"
version="1"

PublicKeyBlob="00240000048000009400000006020000002 4000052534131000400000100010007D1FA57C4AED9F0A32E8 4AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79 AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC 607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C 1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC49 63D261C8A12436518206DC093344D5AD293"
/>
</CodeGroup>
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="Ecma_Strong_Name"
Description="This code group grants code
signed with the ECMA strong name full trust. ">
<IMembershipCondition
class="StrongNameMembershipCondition"
version="1"

PublicKeyBlob="00000000000000000400000000000000"
/>
</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 databaseconfiguration.config
> >
> > Thanks in advance
> > Rachel

 
Reply With Quote
 
=?Utf-8?B?UmFjaGVs?=
Guest
Posts: n/a
 
      06-21-2005
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 databaseconfiguration.config
> >
> > Thanks in advance
> > Rachel

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
Problems Deploying Data Access Application Block =?Utf-8?B?UmFjaGVs?= ASP .Net 3 07-03-2005 10:39 AM
Problem with enterprise application block - data block Showjumper ASP .Net 1 03-19-2005 03:48 PM
deploying and re-deploying ASP.Net applications =?Utf-8?B?VG9tIE4=?= ASP .Net 2 02-04-2004 09:31 PM



Advertisments