473,769 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Build error

Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!
Oct 6 '06 #1
6 1365
Hello Diffident,

If you want to provide a user-friendly message while you do maintenance on
your website, you can place a file named app_offline.htm in the root of your
web application directory. See ScottGu's blog for additional information:

http://weblogs.asp.net/scottgu/archi...06/426755.aspx

--
enjoy - brians
http://www.limbertech.com
"Diffident" wrote:
Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!
Oct 6 '06 #2
Hello Brian,

I forgot to inform you that I am using ASP.NET 1.1 and not 2.0. Does this
feature apply for ASP.NET 1.1 too?

Thanks a lot!!

"brians[MCSD]" wrote:
Hello Diffident,

If you want to provide a user-friendly message while you do maintenance on
your website, you can place a file named app_offline.htm in the root of your
web application directory. See ScottGu's blog for additional information:

http://weblogs.asp.net/scottgu/archi...06/426755.aspx

--
enjoy - brians
http://www.limbertech.com
"Diffident" wrote:
Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!
Oct 6 '06 #3
Yes, it applys for both.

Best bet, if possible, is use a web farm configuration and update one at a
time. Then, you have 0 down time. No feasible in all situations, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hello Brian,

I forgot to inform you that I am using ASP.NET 1.1 and not 2.0. Does this
feature apply for ASP.NET 1.1 too?

Thanks a lot!!

"brians[MCSD]" wrote:
>Hello Diffident,

If you want to provide a user-friendly message while you do maintenance
on
your website, you can place a file named app_offline.htm in the root of
your
web application directory. See ScottGu's blog for additional information:

http://weblogs.asp.net/scottgu/archi...06/426755.aspx

--
enjoy - brians
http://www.limbertech.com
"Diffident" wrote:
Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!

Oct 6 '06 #4
Hello Beamer,

The "app_offline.ht m" does not seem to be working for ASP.NET 1.1
application. Here is why:

1. I copied the "app_offline.ht m" into my "wwwroot" folder which is the root
of applicaiton.
2. I started the build process.
3. I tried accessing the application using http://localhost
4. It tried displaying the page that I was accessing.

Thanks for any pointers!!!

"Cowboy (Gregory A. Beamer)" wrote:
Yes, it applys for both.

Best bet, if possible, is use a web farm configuration and update one at a
time. Then, you have 0 down time. No feasible in all situations, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hello Brian,

I forgot to inform you that I am using ASP.NET 1.1 and not 2.0. Does this
feature apply for ASP.NET 1.1 too?

Thanks a lot!!

"brians[MCSD]" wrote:
Hello Diffident,

If you want to provide a user-friendly message while you do maintenance
on
your website, you can place a file named app_offline.htm in the root of
your
web application directory. See ScottGu's blog for additional information:

http://weblogs.asp.net/scottgu/archi...06/426755.aspx

--
enjoy - brians
http://www.limbertech.com
"Diffident" wrote:

Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!


Oct 6 '06 #5
Hello Diffident,

Yeah, app_offline.htm won't work with .net 1.1. One way to do want you want
to do would be to alter the web.config file to deny all users access your
website and use the loginUrl to Sitedown.aspx (or something like that).
Obviously, you just have a message that the site is down on the Sitedown.aspx
page and don't display any login controls. Doesn't even require a
recompilation:

=-=-=-=-
<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible
modes are "Windows", "Forms", "Passport" and "None"
-->
<authenticati on mode="Forms">
<forms loginUrl="sited own.aspx" protection="All " timeout="30">
</forms>
</authentication>

<authorizatio n>
<deny users="*" />
</authorization>
=-=-=-=-=-=-=-

Another way that I've seen suggested is to put a redirect into the
global.asax file along the lines of:

void Application_Beg inRequest(ByVal sender As Object, ByVal e As EventArgs)
{
Response.Redire ct("sitedown.as px")
}
=-=-=-=-=-=-

enjoy - brians
http://www.limbertech.com
"Diffident" wrote:
Hello Beamer,

The "app_offline.ht m" does not seem to be working for ASP.NET 1.1
application. Here is why:

1. I copied the "app_offline.ht m" into my "wwwroot" folder which is the root
of applicaiton.
2. I started the build process.
3. I tried accessing the application using http://localhost
4. It tried displaying the page that I was accessing.

Thanks for any pointers!!!

"Cowboy (Gregory A. Beamer)" wrote:
Yes, it applys for both.

Best bet, if possible, is use a web farm configuration and update one at a
time. Then, you have 0 down time. No feasible in all situations, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hello Brian,
>
I forgot to inform you that I am using ASP.NET 1.1 and not 2.0. Does this
feature apply for ASP.NET 1.1 too?
>
Thanks a lot!!
>
"brians[MCSD]" wrote:
>
>Hello Diffident,
>>
>If you want to provide a user-friendly message while you do maintenance
>on
>your website, you can place a file named app_offline.htm in the root of
>your
>web application directory. See ScottGu's blog for additional information:
>>
>http://weblogs.asp.net/scottgu/archi...06/426755.aspx
>>
>--
>enjoy - brians
>http://www.limbertech.com
>>
>>
>"Diffident" wrote:
>>
Hi All,
>
How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?
>
Thanks a bunch!!!
Oct 6 '06 #6
Hello Brian,

The solutions that you gave me will work if the application was up and
running. What if I was recompiling the project? global.asax or web.config
will not work....will they?

"brians[MCSD]" wrote:
Hello Diffident,

Yeah, app_offline.htm won't work with .net 1.1. One way to do want you want
to do would be to alter the web.config file to deny all users access your
website and use the loginUrl to Sitedown.aspx (or something like that).
Obviously, you just have a message that the site is down on the Sitedown.aspx
page and don't display any login controls. Doesn't even require a
recompilation:

=-=-=-=-
<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible
modes are "Windows", "Forms", "Passport" and "None"
-->
<authenticati on mode="Forms">
<forms loginUrl="sited own.aspx" protection="All " timeout="30">
</forms>
</authentication>

<authorizatio n>
<deny users="*" />
</authorization>
=-=-=-=-=-=-=-

Another way that I've seen suggested is to put a redirect into the
global.asax file along the lines of:

void Application_Beg inRequest(ByVal sender As Object, ByVal e As EventArgs)
{
Response.Redire ct("sitedown.as px")
}
=-=-=-=-=-=-

enjoy - brians
http://www.limbertech.com
"Diffident" wrote:
Hello Beamer,

The "app_offline.ht m" does not seem to be working for ASP.NET 1.1
application. Here is why:

1. I copied the "app_offline.ht m" into my "wwwroot" folder which is the root
of applicaiton.
2. I started the build process.
3. I tried accessing the application using http://localhost
4. It tried displaying the page that I was accessing.

Thanks for any pointers!!!

"Cowboy (Gregory A. Beamer)" wrote:
Yes, it applys for both.
>
Best bet, if possible, is use a web farm configuration and update one at a
time. Then, you have 0 down time. No feasible in all situations, however.
>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
>
*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Hello Brian,

I forgot to inform you that I am using ASP.NET 1.1 and not 2.0. Does this
feature apply for ASP.NET 1.1 too?

Thanks a lot!!

"brians[MCSD]" wrote:

Hello Diffident,
>
If you want to provide a user-friendly message while you do maintenance
on
your website, you can place a file named app_offline.htm in the root of
your
web application directory. See ScottGu's blog for additional information:
>
http://weblogs.asp.net/scottgu/archi...06/426755.aspx
>
--
enjoy - brians
http://www.limbertech.com
>
>
"Diffident" wrote:
>
Hi All,

How can I prevent my end users from noticing an error when we are
re-compiling our project? Is there any way? Or how can we show a
user-friendly message when we are recompiling the project?

Thanks a bunch!!!
>
>
>
Oct 6 '06 #7

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

Similar topics

2
4379
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
10
2349
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a similar name to the table. Rather than making a long Select Case that could become obsolete if lookup tables are added and the source table of the ListBox is edited I came up with this code.) This code works but of course it gives me build...
5
5358
by: David++ | last post by:
Hi there, I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for the debug version of the DLL (and this DLL works fine), however, I seem unable to build a Release version of the DLL. If I do a 'Batch Build' and select both Debug and Relase versions for building it will build the debug version but throws up errors for the Release version. For example, the output I get for a Batch Build is this - ...
0
1757
by: ktelep | last post by:
I'm trying to build python 2.4.2 on AIX 5.3 with the IBM xlC compiler as per the notes in the AIX Readme file. Basically my make fails with the errors listed below. I'm calling configure with: ../configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-ipv6 AR="ar -X64" It looks like it's not resolving symbols in readline. I originally
1
4266
by: | last post by:
I'm having a problem finding the cause for this problem. I have a solution in Visual Studio 2005 that contains two projects -- a Web Site and a Class Library. The web site references the class library. After the project became larger, the build process would sometimes fail with no errors. The "quick fix" for this was to rebuild the whole solution and things seemed ok. When this didn't solve the problem any longer, I went to the property...
1
2131
by: Ted Zeng | last post by:
Hi, I am new to Python. I am trying to build MySQLdb for my PowerPC PowerMac. I just downloaded the source last week and tried to build it. But I got the error messages as follow. I checked and there is no such files as mysql_config mysql.h my_config.h
6
7680
by: Soren | last post by:
Hi! I'm trying to extend my python program with some C++ code. Right now I've spent hours just trying to get boost to work! I'm trying to get the example hello.cpp to work. Using Windows XP and Visual Studio 8 (.NET 2005) I've set BOOST_BUILD_PATH = C:\boost\boost_1_33_1 (where i installed
0
1394
by: Darrin Thompson | last post by:
I've been trying to build pyOpenSSL on Windows with Visual Studio 2003. I've hit the message below: building 'OpenSSL.SSL' extension creating build\temp.win32-2.5\Release\src\ssl C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\OpenSSL\include -Ic:\Python25\include -Ic:\Python25\PC /Tcsrc/ssl/connection.c /Fobuild\temp.win32-2.5\Release\src/ssl/connection.obj connection.c
5
7825
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/li b .) at Build.PL line 5.
1
2008
by: Owen Zhang | last post by:
I am trying to build lxml package in SunOS 5.10. I got the following errors. Does anybody know why? $ python setup.py build Building lxml version 2.1. NOTE: Trying to build without Cython, pre-generated 'src/lxml/ lxml.etree.c' needs to be available. Using build configuration of libxslt 1.1.7 Building against libxml2/libxslt in the following directory: /usr/lib running build
0
9579
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
9422
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
10208
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...
0
10038
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
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
5294
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
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
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
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.