473,802 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET 2.0 Master Pages problem

I have a windows 2000 server on which I have installed the .NET 2.0
Framework runtime. I have an application I've written using VS 2005. In
it, I use master pages. When I debug this app on my machine, it looks
great. When I run it on the server, it looks like crap - no master page
goodness is being employed. This is the first ASP.NET 2.0 application I've
put on the server. I noticed that there is no ASP.NET tab on the properties
window as there is on never Windows server editions. How can I tell IIS
that this application should be run as ASP.NET 2.0?

Tim
Apr 27 '07
12 1648
re:
!I think the -s and -sn command line options for aspnet_regiis are what you need.

The -s and -sn options only work for registering scriptmaps,
not for registering/unregistering the .net framework with IIS.

Tim,

Which versions of the .Net Framework have you installed ?
This is very important...

If you *did* install both 1.1 and 2.0, you have a bad install of at least one of them.

To fix both .Net framework installs, run

aspnet_regiis -ua

....from command windows in *both* the 1.1 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v1.1.4 322 )
and
the 2.0 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v2.0.5 0727 )

i.e., you will run the same command *twice*, once from a command window in each directory.

Then, *after* you do that, run

aspnet_regiis -i

from a command window in each of those directories, starting with the 1.1 directory.

Then, run the ASP.NET switcher again. It should run.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:ew******** ******@TK2MSFTN GP05.phx.gbl...
Page:

It says "ASP.NET Version Switcher has encountered a problem and needs to close. We are sorry for
the inconvenience." It appears to be an application-defined window, not a stock pop-up.

I'm most concerned that the .NET tab is not being displayed in the properties window. Also that
running aspreg_iis does not do what is advertised.

Tim
"Page Brooks" <NO************ **@gmail.comwro te in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Tim,
What is the error message you are receiving? I didn't write the application so I don't know what
could be wrong with it. The tool is using Aspnet_regiis internally so you can always fall back to
that if you can't get the switcher tool to work. I think the -s and -sn command line options for
aspnet_regii s are what you need.

Thanks,
Page Brooks
www.explosivedog.com
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:ez******* ******@TK2MSFTN GP06.phx.gbl...
>>Page:

I get an error message as soon as your .NET switcher launches.

Tim

"Page Brooks" <NO************ **@gmail.comwro te in message
news:A5****** *************** *************@m icrosoft.com...
I've run into this problem before. You can try running this little utility
to switch the version of ASP.NET for a specific web application:

http://www.denisbauer.com/NETTools.aspx

Please be aware that you need seperate AppPools for each version of ASP.NET
that you are running. I've seen this unexpectedly bring down many
applicatio ns before.
--
Thanks,
Page Brooks
www.explosivedog.com
"Tim Wallace" wrote:

I have a windows 2000 server on which I have installed the .NET 2.0
Framework runtime. I have an application I've written using VS 2005. In
it, I use master pages. When I debug this app on my machine, it looks
great. When I run it on the server, it looks like crap - no master page
goodness is being employed. This is the first ASP.NET 2.0 application I've
put on the server. I noticed that there is no ASP.NET tab on the properties
window as there is on never Windows server editions. How can I tell IIS
that this application should be run as ASP.NET 2.0?
>
Tim
>
>
>




Apr 27 '07 #11
Juan:

Thanks for the advice. I have 1.1 and 2.0 installed. I followed your
steps, but the switcher still doesn't work.

Tim

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
re:
!I think the -s and -sn command line options for aspnet_regiis are what
you need.

The -s and -sn options only work for registering scriptmaps,
not for registering/unregistering the .net framework with IIS.

Tim,

Which versions of the .Net Framework have you installed ?
This is very important...

If you *did* install both 1.1 and 2.0, you have a bad install of at least
one of them.

To fix both .Net framework installs, run

aspnet_regiis -ua

...from command windows in *both* the 1.1 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v1.1.4 322 )
and
the 2.0 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v2.0.5 0727 )

i.e., you will run the same command *twice*, once from a command window in
each directory.

Then, *after* you do that, run

aspnet_regiis -i

from a command window in each of those directories, starting with the 1.1
directory.

Then, run the ASP.NET switcher again. It should run.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:ew******** ******@TK2MSFTN GP05.phx.gbl...
>Page:

It says "ASP.NET Version Switcher has encountered a problem and needs to
close. We are sorry for the inconvenience." It appears to be an
application-defined window, not a stock pop-up.

I'm most concerned that the .NET tab is not being displayed in the
properties window. Also that running aspreg_iis does not do what is
advertised.

Tim
>"Page Brooks" <NO************ **@gmail.comwro te in message
news:%2******* *********@TK2MS FTNGP04.phx.gbl ...
>>Tim,
What is the error message you are receiving? I didn't write the
application so I don't know what could be wrong with it. The tool is
using Aspnet_regiis internally so you can always fall back to that if
you can't get the switcher tool to work. I think the -s and -sn command
line options for aspnet_regiis are what you need.

Thanks,
Page Brooks
www.explosivedog.com
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in
message news:ez******** *****@TK2MSFTNG P06.phx.gbl...
Page:

I get an error message as soon as your .NET switcher launches.

Tim

"Page Brooks" <NO************ **@gmail.comwro te in message
news:A5***** *************** **************@ microsoft.com.. .
I've run into this problem before. You can try running this little
utility
to switch the version of ASP.NET for a specific web application:
>
http://www.denisbauer.com/NETTools.aspx
>
Please be aware that you need seperate AppPools for each version of
ASP.NET
that you are running. I've seen this unexpectedly bring down many
application s before.
--
Thanks,
Page Brooks
www.explosivedog.com
>
>
"Tim Wallace" wrote:
>
>I have a windows 2000 server on which I have installed the .NET 2.0
>Framewor k runtime. I have an application I've written using VS 2005.
>In
>it, I use master pages. When I debug this app on my machine, it
>looks
>great. When I run it on the server, it looks like crap - no master
>page
>goodness is being employed. This is the first ASP.NET 2.0
>applicatio n I've
>put on the server. I noticed that there is no ASP.NET tab on the
>properti es
>window as there is on never Windows server editions. How can I tell
>IIS
>that this application should be run as ASP.NET 2.0?
>>
>Tim
>>
>>
>>




Apr 27 '07 #12
re:
!Thanks for the advice. I have 1.1 and 2.0 installed. I followed your
!steps, but the switcher still doesn't work.

Then, your only recourse is to fully uninstall/reinstall both .Net Frameworks,
as opposed to only unregistering/reregistering them.

To completely remove the .Net Framework 1.1, see :
http://support.microsoft.com/default.aspx/kb/824643

The .Net Framework 2.0 can be uninstalled from the "Add or Remove Programs" link in Control Panel.

When you reinstall, make sure you start with 1.1

See : http://asp.net.do/faq/basic.aspx for links to the setup files for both.

As a last resort, have you applied the 1.1 Service Pack 1 ?
http://asp.net.do/faq/basic.aspx has the link for that as well.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:eE******** ******@TK2MSFTN GP06.phx.gbl...
Juan:

Thanks for the advice. I have 1.1 and 2.0 installed. I followed your steps, but the switcher
still doesn't work.

Tim

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>re:
!I think the -s and -sn command line options for aspnet_regiis are what you need.

The -s and -sn options only work for registering scriptmaps,
not for registering/unregistering the .net framework with IIS.

Tim,

Which versions of the .Net Framework have you installed ?
This is very important...

If you *did* install both 1.1 and 2.0, you have a bad install of at least one of them.

To fix both .Net framework installs, run

aspnet_regii s -ua

...from command windows in *both* the 1.1 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v1.1.4 322 )
and
the 2.0 directory
( Drive:\WINDOWS\ Microsoft.NET\F ramework\v2.0.5 0727 )

i.e., you will run the same command *twice*, once from a command window in each directory.

Then, *after* you do that, run

aspnet_regii s -i

from a command window in each of those directories, starting with the 1.1 directory.

Then, run the ASP.NET switcher again. It should run.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
============== =============== ======
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:ew******* *******@TK2MSFT NGP05.phx.gbl.. .
>>Page:

It says "ASP.NET Version Switcher has encountered a problem and needs to close. We are sorry
for the inconvenience." It appears to be an application-defined window, not a stock pop-up.

I'm most concerned that the .NET tab is not being displayed in the properties window. Also that
running aspreg_iis does not do what is advertised.

Tim
>>"Page Brooks" <NO************ **@gmail.comwro te in message
news:%2****** **********@TK2M SFTNGP04.phx.gb l...
Tim,
What is the error message you are receiving? I didn't write the application so I don't know
what could be wrong with it. The tool is using Aspnet_regiis internally so you can always fall
back to that if you can't get the switcher tool to work. I think the -s and -sn command line
options for aspnet_regiis are what you need.

Thanks,
Page Brooks
www.explosivedog.com
"Tim Wallace" <twallace-ThisDoesNotBelo ng-AT-emailDOTcomwrot e in message
news:ez***** ********@TK2MSF TNGP06.phx.gbl. ..
Page:
>
I get an error message as soon as your .NET switcher launches.
>
Tim
>
"Page Brooks" <NO************ **@gmail.comwro te in message
news:A5**** *************** *************** @microsoft.com. ..
>I've run into this problem before. You can try running this little utility
>to switch the version of ASP.NET for a specific web application:
>>
>http://www.denisbauer.com/NETTools.aspx
>>
>Please be aware that you need seperate AppPools for each version of ASP.NET
>that you are running. I've seen this unexpectedly bring down many
>applicatio ns before.
>--
>Thanks,
>Page Brooks
>www.explosivedog.com
>>
>>
>"Tim Wallace" wrote:
>>
>>I have a windows 2000 server on which I have installed the .NET 2.0
>>Framewo rk runtime. I have an application I've written using VS 2005. In
>>it, I use master pages. When I debug this app on my machine, it looks
>>great. When I run it on the server, it looks like crap - no master page
>>goodnes s is being employed. This is the first ASP.NET 2.0 application I've
>>put on the server. I noticed that there is no ASP.NET tab on the properties
>>window as there is on never Windows server editions. How can I tell IIS
>>that this application should be run as ASP.NET 2.0?
>>>
>>Tim
>>>
>>>
>>>
>
>




Apr 27 '07 #13

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

Similar topics

5
2441
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the Master Page? ....Content Page? ...elsewhere?
20
2428
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the include files to change the layout. When I came to ASP.NET, I used user controls to do a similar thing. I have just been looking at master pages, and it looks like they do the same thing. If so, is there any advantage in using them over the...
1
1874
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The master page looks like this... <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
4
1875
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses more than one master page. Currently, there are two pages, Freedom1.master and Freedom2.master. I have no problems with Freedom1.master. However, I am having problems with Freedom2.master. The first problem is I sometimes get the following error when I build the site. The type 'Freedom2' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
8
2393
by: otto | last post by:
Hi, all: I have a problem with the inclusion of .js files in mu .aspx pages when using Master Pages. I try to explain it. If I make a web project without master pages I simply put in the head tag on each page the reference to the ..js file I want to use. Because I want client side includes I make the reference with <script> tag, for example: <head runat=server> <script src="/javascript/test.js" /> </head>
2
3325
by: news.sbcglobal.net | last post by:
I hope I can explain this well enough to understand. I have a master page that is used by almost all of the pages in my site. On the master page is a table. In one of the cells in this table, I have set the background to display an image that is located in a directory called "images" which is just off the root directory. Here's the problem: Any page that is not located in the root directory (where the master page is located) cannot...
7
8733
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will remain the same. I am interested to know your opinions/suggestions in finding an easy way of doing it. In asp one could have something like this:
2
3835
by: Argirop | last post by:
I have a page Default.aspx. Its first line is the following: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="MyCompany.MyApp.default" Title="Untitled Page" %> The first line in MasterPage.master is the following: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MyCompany.MyApp.masterpage" %>
3
5976
by: Rich | last post by:
Hi, I want to use 2 master pages, one for the main part of the site, the other for the admin pages. They are quite similar, with many shared elements. Ideally I would like to have a parent master page, which both of these child master pages are based on, and in turn the final pages are based on one of these child master pages.
6
9164
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.