473,385 Members | 1,908 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,385 software developers and data experts.

Visual Studio 2005 SP1 warning

Hi all,
I have experienced several problems after installing SP1 for Visual Studio
2005 Professional. The problems are occurring on 2 different Windows XP SP2
development machines that have been serviced packed. I am working on an
ASP.NET 2.0 Web Application in Visual Basic.

1. Publicly declared user controls on the Master page are no longer being
recognized by Intellisense. Webforms that were created before SP1 are still
working fine using the syntax Master.UserWelcome -- UserWelcome in this case
representing a publicly declared property on the Master Page which
references a user control. Here is the code...

-------------------------------------------
Public Property UserWelcome() As UserControl
Get
Return UserWelcome1
End Get
Set(ByVal value As UserControl)
UserWelcome1 = value
End Set
End Property
--------------------------------------------

And the code to reference the control from within a Web Form that uses the
Master page.

-----------------------------------
Dim mpUserNameLabel As Label
mpUserNameLabel = CType(Master.UserWelcome.FindControl("UserName"), Label)
If Not mpUserNameLabel Is Nothing Then
mpUserNameLabel.Text = CType(Session("UserName"), String)
End If
----------------------------------
Again I stress, this is code that I pulled from the project. It still works
fine in Web Forms created before SP1 in the same project. When I try to
apply the same code to any new Form in the same project using the same
Master Page I get an error: 'UserWelcome' is not a member of
'System.Web.UI.MasterPage'.

I have had to use a workaround.... "Microsoft Techs what gives?"
---------------------------------
usrWelcome = CType(Master.FindControl("UserWelcome1"), UserControl)
If Not usrWelcome Is Nothing Then
mpUserNameLabel = CType(usrWelcome.FindControl("UserName"), Label)
If Not mpUserNameLabel Is Nothing Then
mpUserNameLabel.Text = CType(Session("UserName"), String)
End If
End
----------------------------

Lastly, I have notified Microsoft and they are investigating. I tried to
reproduce the same error in a brand new project, but a couple other problems
popped up, not even allowing me to get that far.

1. Creating a new Web Form does not show me the checkboxes for Code Behind
or Use MasterPage.
2. A newly created webform throws an error underlining the declaration
"CodeBehind = default.aspx.vb" telling me that the file cannot be found.
3. Upon startup the VS 2005 splash screen shows only 256 colors.

If you see any of this behavior in your VS 2005 Pro install ... then you
have a problem.
My plan is to uninstall the SP1 then Uninstall VStudio 2005 and re-install
from scratch.
Note that this problem has occurred on 2 different development workstations.

Good luck to all and I sincerely hope that nobody else is having a problem
with SP1.
Mar 1 '07 #1
1 1584
Ladies and Gentlemen,

Thank you all for not flaming me too badly on this one. Microsoft Support
finally showed me that they are making an effort to be more Developer
friendly.

Two things resulted in the "errors" I was experiencing.

1. With SP1 the new option of opening up an ASP.NET Web Application was
introduced into the IDE. I had not installed that option earlier and
therefore was not familair with it. When a project is opened as a "Web
Application", rather than a "Web Site" (finely grained distinction), the
check boxes for Code Behind and Master Page are not available. The tech
support guy said that the IDE reverts somewhat back to VS 2003 style. So
much for that problem.

2. I was forgetting to place an important directive into my newly created
Web Forms.

<%@ MasterType VirtualPath="~/PowerCard.master" %>

Must be placed at the top of the form in order to access the publically
exposed user controls on the Master Page as Properties. That is a lesson I
shall not soon forget.

The upshot... If you can't take a vacation then at least take a deep breath.

I hope this entry will be as instructive to others as it has been to me.

Thanks all for your patience.

"John Kotuby" <jo***@powerlist.comwrote in message
news:eL**************@TK2MSFTNGP03.phx.gbl...
Hi all,
I have experienced several problems after installing SP1 for Visual Studio
2005 Professional. The problems are occurring on 2 different Windows XP
SP2 development machines that have been serviced packed. I am working on
an ASP.NET 2.0 Web Application in Visual Basic.

1. Publicly declared user controls on the Master page are no longer being
recognized by Intellisense. Webforms that were created before SP1 are
still working fine using the syntax Master.UserWelcome -- UserWelcome in
this case representing a publicly declared property on the Master Page
which references a user control. Here is the code...

-------------------------------------------
Public Property UserWelcome() As UserControl
Get
Return UserWelcome1
End Get
Set(ByVal value As UserControl)
UserWelcome1 = value
End Set
End Property
--------------------------------------------

And the code to reference the control from within a Web Form that uses the
Master page.

-----------------------------------
Dim mpUserNameLabel As Label
mpUserNameLabel = CType(Master.UserWelcome.FindControl("UserName"), Label)
If Not mpUserNameLabel Is Nothing Then
mpUserNameLabel.Text = CType(Session("UserName"), String)
End If
----------------------------------
Again I stress, this is code that I pulled from the project. It still
works fine in Web Forms created before SP1 in the same project. When I try
to apply the same code to any new Form in the same project using the same
Master Page I get an error: 'UserWelcome' is not a member of
'System.Web.UI.MasterPage'.

I have had to use a workaround.... "Microsoft Techs what gives?"
---------------------------------
usrWelcome = CType(Master.FindControl("UserWelcome1"), UserControl)
If Not usrWelcome Is Nothing Then
mpUserNameLabel = CType(usrWelcome.FindControl("UserName"), Label)
If Not mpUserNameLabel Is Nothing Then
mpUserNameLabel.Text = CType(Session("UserName"), String)
End If
End
----------------------------

Lastly, I have notified Microsoft and they are investigating. I tried to
reproduce the same error in a brand new project, but a couple other
problems popped up, not even allowing me to get that far.

1. Creating a new Web Form does not show me the checkboxes for Code Behind
or Use MasterPage.
2. A newly created webform throws an error underlining the declaration
"CodeBehind = default.aspx.vb" telling me that the file cannot be found.
3. Upon startup the VS 2005 splash screen shows only 256 colors.

If you see any of this behavior in your VS 2005 Pro install ... then you
have a problem.
My plan is to uninstall the SP1 then Uninstall VStudio 2005 and re-install
from scratch.
Note that this problem has occurred on 2 different development
workstations.

Good luck to all and I sincerely hope that nobody else is having a problem
with SP1.


Mar 1 '07 #2

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:...
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:...
18
by: Brandon Bray [MSFT] | last post by:
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I...
6
by: Tom McL. | last post by:
I'm trying to move a program that was designed using Visual Studio 2003 and (Visual Basic) into Visual Studio 2005. When it runs I get the following warning in the Error List Window and I'm not...
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...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 unexpectedly stopped generating the *.designer.vb files for *.aspx and *.ascx files. After a few days of frustration trying to fix this, I noticed that it had the following...
4
by: kurt.kurtsmith | last post by:
I am trying to import a tlb from a COM server(exe) I wrote with the following statement: #import "C:\\em2\\EM\\src\\core\\UMOSEFax\\Debug\\UMOSEFax.tlb" no_namespace auto_search the tlh and...
0
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack...
0
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.