Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Visual Studio .NET 2005 using Web Application Project

Reply
Thread Tools

Visual Studio .NET 2005 using Web Application Project

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      07-03-2006
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

http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      07-04-2006
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" <> schreef in bericht
news:%...
> 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
>
> http://www.nathansokalski.com/
>



 
Reply With Quote
 
 
 
 
Rick Strahl
Guest
Posts: n/a
 
      07-08-2006

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" <> wrote in message
news:%...
> 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
>
> http://www.nathansokalski.com/
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM
Went from using Visual Web Develop express to Visual Studio 2005 and getting error when trying to open project jonny ASP .Net 1 10-06-2007 06:52 AM
Converting VS 2005 Web Site Project to VS 2005 Web Application Project ITistic ASP .Net 2 08-21-2007 08:56 PM
Visual Studio .NET 2005 using Web Application Project Nathan Sokalski ASP .Net 2 07-08-2006 11:05 PM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 14 06-30-2006 09:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57