Solved

Error Creating Control

Posted on 2011-09-13
2
271 Views
Last Modified: 2012-08-14
I got the following error at dsign time. The application compiles and runs. How can I fix it?
System.Web.UI.scriptreferenceCollection must have items of type 'System.Web.UIi.ScriptReference'. 'asp:ScriptReference' is of type 'System.Web.UIi.ScriptReference'

By searching the internet, it looks like removing the script control and adding again seems to work. see http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/design-time-errors.aspx

But how to removing the script control and adding again ?

Thanks.
0
Comment
Question by:minglelinch
2 Comments
 
LVL 7

Accepted Solution

by:
Slimfinger earned 500 total points
ID: 36532397
Just try re-loading everything.

1) remove the control (& everything related to it, including dll references) via designer or manually from .aspx/.cs
2) clean the solution
3) close and re-open the IDE
4) rebuild the solution
0
 
LVL 1

Author Closing Comment

by:minglelinch
ID: 36542861
Thanks for the comment. I believe it will work. As my application is near done, I'm afraid to remove those at this time. But I'll do it for my next one. Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now