Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Why the Designer is doing this?

Posted on 2015-01-20
1
Medium Priority
?
68 Views
Last Modified: 2015-01-22
The designer.cs for a web control keeps changing this:

protected global::System.Web.UI.UpdatePanel upList;

(which is correct) to this:

protected global::System.Web.UI.WebControls.WebParts.UpdatePanel upList;

(which causes compile-time errors)

I can manually correct it ... but then later on the problem surfaces again (maybe every 20 rebuilds).

Why does this happen?  Can it be permanently fixed?

Keep in mind - it does not happen EVERY single time.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Michael Fowler earned 2000 total points
ID: 40560707
Use a register command on the asp page to override this behavior
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web"%>

Open in new window


You could place the system.web.dll, and system.web.design. dll in your bin folder but this introduces a security risk

http://blogs.msdn.com/b/nikhil_agarwal/archive/2014/04/19/asp-net-issue-with-auto-generated-designer-page.aspx
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

688 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