Build error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!!!
 
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!!
 
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!
*************************************************
 
Hello Beamer,

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

1. I copied the "app_offline.htm" 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!!!
 
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"
-->
<authentication mode="Forms">
<forms loginUrl="sitedown.aspx" protection="All" timeout="30">
</forms>
</authentication>

<authorization>
<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_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
{
Response.Redirect("sitedown.aspx")
}
=-=-=-=-=-=-

enjoy - brians
http://www.limbertech.com
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top