.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

The element 'buildProvides' cannot be defined below the application level Options · View
vichayai
Posted: Saturday, September 06, 2008 7:17:36 PM
Rank: มือฝึกหัด
Groups: Member

Joined: 9/6/2008
Posts: 2

ใช้ Report viewer เมื่อเขียนโปรแกรม Run ได้ตามปกติ แต่เมื่อลง Server จะเจอปัญหา web.config ใน Folder ที่เก็บ Report

โดยโปรแกรมจะแจ้ง Error "The element 'buildProvides' cannot be defined below the application level" เมื่อ Run โปรแกรม

WEB.Config ครับ

<

buildProviders>//บรรทัด Erroradd extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />buildProviders>

 

<

</

nuttaponp
Posted: Thursday, September 11, 2008 1:56:34 PM
Rank: มือพระกาฬ
Groups: Member

Joined: 9/9/2008
Posts: 62

ตั้งโฟลเดอร์ที่ว่านี้เป็น Virtual Directory ใน IIS ยังครับ

vichayai
Posted: Thursday, September 11, 2008 3:33:17 PM
Rank: มือฝึกหัด
Groups: Member

Joined: 9/6/2008
Posts: 2
ตั้งแล้วครับ ไม่ทราบว่าต้องตั้งเฉพาะ Folder ด้วยหรือเปล่า ยังไม่เข้าใจวิธี SET ครับ
nuttaponp
Posted: Friday, September 12, 2008 9:29:53 AM
Rank: มือพระกาฬ
Groups: Member

Joined: 9/9/2008
Posts: 62

คือ error นี้มันบอกเราว่า ตัว 'buildproviders' นี้ไม่สามารถที่จะกำหนดค่าในโฟล์เดอร์ที่ไม่ใช่ระดับแอพพลิเคชั่น

ผมเข้าใจว่า ตัว buildproviders นี้ ถูกกำหนดค่าอยู่ใน web.config ที่อยู่ในโฟล์เดอร์ย่อยในเวบคุณ แล้วโฟล์เดอร์ย่อยอันนี้ไม่ได้ตั้งค่าให้เป็นเวบแอพพลิเคชั่นใน IIS

ดังนั้นลองกำหนดค่า buildproviders ไว้ใน web.config ที่อยู่ในโฟล์เดอร์ที่เป็นเวบแอพพลิเคชั่น หรือไม่ก็ ตั้งโฟล์เดอร์ย่อยนี้ให้เป็นเวบแอพพลิเคชั่นก็ได้

 

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by