473,386 Members | 1,673 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,386 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 881
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.