This is a migrated thread and some comments may be shown as answers.

Configuration Error on Server

6 Answers 238 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bruce Hochstetler
Top achievements
Rank 2
Bruce Hochstetler asked on 13 Nov 2007, 11:37 PM
Hi,

Reporting (v1.5) is working fine on my development machine, but on the server I'm getting...

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: An error occurred loading a configuration file: Access to the path 'D:\Inetpub\wwwroot\web.config' is denied.

Source Error:

[No relevant source lines]

Source File: D:\Inetpub\wwwroot\web.config    Line: 0


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

The web.config has the following definitions:
...

<system.web>

<httpHandlers>

<add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=1.5.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true"/>

</httpHandlers>

<compilation debug="false">

<assemblies>

<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="Telerik.ReportViewer.WebForms, Version=1.5.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

<add assembly="Telerik.Reporting, Version=1.5.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

<add assembly="Telerik.Reporting.Processing, Version=1.5.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

<add assembly="Telerik.Reporting.Interfaces, Version=1.5.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

</assemblies>

</compilation>

</system.web>

Thanks,
Bruce

6 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 14 Nov 2007, 12:42 PM
Hi Bruce,

It seems that the ASPNET user does not have enough permissions to read from the web.config file. Try to give it Read permissions (or give Read permission to Everyone).

Please do not hesitate to contact us if the problem still exists.
Thank you.

Hope this helps.

Regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bruce Hochstetler
Top achievements
Rank 2
answered on 14 Nov 2007, 04:47 PM
Hi Chavdar,

When I look at the properties for the web.config file, the ASPNET user has 'Read&Execute' and 'Read' permissions. That's the only permissions allowed for ASPNET in our environment for security reasons (???), at least that's what I'm being told by the admins. In most cases, when I need to read/write to the web app, I have the 'Authenticated Users' permissions changed. Would this also apply for this particular problem?

Thanks,
Bruce
0
Chavdar
Telerik team
answered on 15 Nov 2007, 07:52 AM
Hi Bruce,

I am a little bit concerned about using a web.config file in the root folder of a Web Site. Is it possible to move it to the root folder of the web application instead and try again? This is definitely a problem with permissions but it depends a lot on your exact configuration. You can find some possible answers to your question from Google.

I hope this information helps.

Greetings,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bruce Hochstetler
Top achievements
Rank 2
answered on 15 Nov 2007, 04:57 PM
Hi Chavdar,

I actually didn't notice that it was pointing to the web.config in root folder of the web server. I do have my own web.config file that exists in my web application folder. I'm not sure why the reporting software thinks it needs to access that web.config file, in fact I not sure a web.config file exists there. Is there some configuration of the reporting software that needs to happen to get it to point to my web.config file, or is this a problem with the configuration of my web app that I need to talk to the web admin about?

Thanks,
Bruce
0
Bruce Hochstetler
Top achievements
Rank 2
answered on 15 Nov 2007, 11:09 PM
Hi Chavdar,

Some more info on this problem... not sure its related. Anyway, my web app uses the editor and I have the properties 'StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths' to true. My web apps path is D:\inetpub\wwwroot\do3\DO32\kb.net; everytime I embedded an image, the tag would convert to src=kb.net\EventFiles\RS\2500\image.gif. Everytime I switched between design and html view in the editor, another kb.net\ would be prepended to the src tag. It's almost like my web app has no clue to where it lives. It has to be something to do with the configuration, but the admin hasn't been much help. It appears I will have to figure out what needs to be done, then get the admin to implement.

Thanks,
Bruce
0
Chavdar
Telerik team
answered on 19 Nov 2007, 08:57 AM
Hi Bruce,

The web.config file for a specific Web site contains settings that apply to the Web site and inherit downward through all of the ASP.NET applications and subdirectories of the site. Given that if you have a web.config file in the root folder of the Web site it is read by the ASP.NET framework automatically.

There are two ways to solve the problem. Either remove this file if it is not needed by any web application or try giving Read permissions to different groups or users until the web application starts working. I would suggest you to first try with the general ones as Everyone, Launch IIS Process Account, etc.

As for the second problem you can take a look at the following article . If it doesn't help you, please open a support ticket for the editor so that it can be addressed more precisely.

 
Kind regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Bruce Hochstetler
Top achievements
Rank 2
Answers by
Chavdar
Telerik team
Bruce Hochstetler
Top achievements
Rank 2
Share this question
or