Problems Deploying Data Access Application Block

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
 
P

Paul Glavich [MVP ASP.NET]

What makes you think its the Data Access Application block? Sounds like
something else is causing the issue.
 
G

Guest

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
 
P

Paul Glavich [MVP ASP.NET]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top