Problems Deploying Data Access Application Block

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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


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
 
What makes you think its the Data Access Application block? Sounds like
something else is causing the issue.
 
Hi,

It is the only variable. I have a live working system where I am using
System.Data.SQLClient which works perfectly.

As soon as I change any code to use the DAAB and upload to the live server
it fails.

My guess was that there must be some security access needed that my live
server does not allow.

Thanks in advance
Rachel

Paul Glavich said:
What makes you think its the Data Access Application block? Sounds like
something else is causing the issue.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com


Rachel said:
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


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 DAAB is simply a wrapper around the SQLClient. Have you done any strong
naming of that library and installed in the GAC or simply used the library
as is? You could try running 'fuslogvw' to see what other assemblies its
trying to bind to and see where it fails.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com


Rachel said:
Hi,

It is the only variable. I have a live working system where I am using
System.Data.SQLClient which works perfectly.

As soon as I change any code to use the DAAB and upload to the live server
it fails.

My guess was that there must be some security access needed that my live
server does not allow.

Thanks in advance
Rachel

Paul Glavich said:
What makes you think its the Data Access Application block? Sounds like
something else is causing the issue.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com


Rachel said:
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


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
 
Back
Top