PC Review


Reply
Thread Tools Rate Thread

The designer could not be shown for this file because none of the

 
 
=?Utf-8?B?QVNQLk5FVA==?=
Guest
Posts: n/a
 
      9th Jul 2004
I was working on converting an example pattern from C# to VB.NET for Page Controller in http://msdn.microsoft.com/library/de...esPatterns.asp (Web Service Patterns) when I ran into a nasty bug. I have not tried just setting up a project with their C# to see if it works. We are a VB shop and I'd like to make a case for using this pattern. But not if there is some weird sequence to get it to work.

1) I create a web app project.

2) I add a vb class file with this code:
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls

Public Class BasePage
Inherits System.Web.UI.Page

End Class

3) I build the solution.

4) I go to the code behind page of WebForm1.aspx and change the Inherited class from System.Web.UI.Page to BasePage

5) I switch over to the designer page and I receive the following error:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:

WebForm1 --- The base class 'PageController.BasePage' could not be loaded. Ensure the assembly has been referenced or built if it is part of the project.

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The designer could not be shown for this file because none of the classes within it can be designed. Daniel Wilson Microsoft VC .NET 0 1st Apr 2005 09:58 PM
Re: The designer could not be shown for this file ... in VS 2003 - Please HELP! Johann Blake Microsoft ASP .NET 4 9th Dec 2004 10:33 PM
The designer could not be shown for this file Manmohan Gupta Microsoft VC .NET 3 3rd Sep 2003 03:55 PM
Re: The designer could not be shown for this file... (Smart Device development) Johann Blake Microsoft Dot NET Compact Framework 0 8th Jul 2003 08:54 AM
The designer could not be shown for this file... (Smart Device development) Johann Blake Microsoft ASP .NET 0 26th Jun 2003 07:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.