Everything SharePoint/Silverlight/WP7

My continuous learning of SharePoint, Silverlight, WP7 Development, Office, VSTO, C#…

Error: Cannot convert type ‘Microsoft.SharePoint.WebControls.DelegateControl’ to ‘System.Web.UI.IAttributeAccessor’

Posted by Steve Pietrek on January 29, 2008

Today I was modifying application.master and ran into the following error:

“Cannot convert type ‘Microsoft.SharePoint.WebControls.DelegateControl’ to ‘System.Web.UI.IAttributeAccessor’”

Instead of following my own advice on disabling My Site and My Links, I commented out the two lines in the custom Master File I created. I copied the commented code from my custom Master File to application.master. When I refreshed the page, I received the error above. At least for the two lines I commented out, SPD adds characters for spaces and such. It does not cause any issues for end-user Master Pages but it does for application.master. Figuring that was the issue, I put back the correct code and uncommented. Error went away.  

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.