473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Visual Studio .NET 2005 using Web Application Project

Because I wanted the builds for my ASP.NET sites to be a single *.dll in a
/bin/ directory (like VSNET 2003), I decided to try the Web Application
Project download. However, I am still pulling my hair out because it doesn't
want to recognize any of the Controls (not even the ones that are part of
ASP.NET). All of the Controls show the following error:

Name 'mycontrolid' is not declared.

And my UserControls show the following error (all my UserControls are in the
same directory as my Pages and I do have them registered with the register
directive):

Element 'myusercontrolclassname' is not a known element. This can occur if
there is a compilation error in the Web site.

Can anybody help me find an easy way to move my 2003 ASP.NET code to Visual
Studio .NET 2005 and be able to have a single *.dll generated? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jul 3 '06 #1
2 1174
Nathan,

That way of using ASPNET creates more code pages than the website style did
you got those.

There has to be as well a pages as

Mypage.designer.vb

In that are your controls declared in a kind of global way to the page.

Cor

"Nathan Sokalski" <nj********@hotmail.comschreef in bericht
news:%2***************@TK2MSFTNGP03.phx.gbl...
Because I wanted the builds for my ASP.NET sites to be a single *.dll in a
/bin/ directory (like VSNET 2003), I decided to try the Web Application
Project download. However, I am still pulling my hair out because it
doesn't want to recognize any of the Controls (not even the ones that are
part of ASP.NET). All of the Controls show the following error:

Name 'mycontrolid' is not declared.

And my UserControls show the following error (all my UserControls are in
the same directory as my Pages and I do have them registered with the
register directive):

Element 'myusercontrolclassname' is not a known element. This can occur if
there is a compilation error in the Web site.

Can anybody help me find an easy way to move my 2003 ASP.NET code to
Visual Studio .NET 2005 and be able to have a single *.dll generated?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Jul 4 '06 #2

Do you see the .designer.cs or .vb file for your Page class? Make sure that
exists and that the control definition you are trying to access exists
inside of the file.

If you ported your application from a stock project, make sure you Convert
to Web Application first as this will convert a standard page to a WAP page
with the required designer files. VS2005 from then on should update that
..designer.cs file when you make a change. In my experience this isn't 100%
reliable unless you go into the visual designer and save - making changes in
the HTML source view often doesn't update the .designer file.

Hope this helps,

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/weblog
http://www.west-wind.com/wwThreads/
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl...
Because I wanted the builds for my ASP.NET sites to be a single *.dll in a
/bin/ directory (like VSNET 2003), I decided to try the Web Application
Project download. However, I am still pulling my hair out because it
doesn't want to recognize any of the Controls (not even the ones that are
part of ASP.NET). All of the Controls show the following error:

Name 'mycontrolid' is not declared.

And my UserControls show the following error (all my UserControls are in
the same directory as my Pages and I do have them registered with the
register directive):

Element 'myusercontrolclassname' is not a known element. This can occur if
there is a compilation error in the Web site.

Can anybody help me find an easy way to move my 2003 ASP.NET code to
Visual Studio .NET 2005 and be able to have a single *.dll generated?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jul 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
54
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications...
4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
7
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried...
1
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.