Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > server error on / application

Reply
Thread Tools

server error on / application

 
 
Eric
Guest
Posts: n/a
 
      06-13-2009
Hi,

My website consists of several ASPX pages and all but one work.
I have one page called admin.aspx that is only available for my own login.
The menu to it works the same as to the other pages it just checks first
who logged in and if that person is allowed.

When allowed, it does a response.redirect("~\admin.aspx")

Right after that line is run, I get a "server error on \ appliation".
If I replace the page with another one, there is no problem.

I have looked over the code several times but I cannot find it.
This website is running on an intranet webserver and runs fine.
This problem occurs after putting it on a external hosting.

What is the cause of this?

here is the first line of the file:

<%@ Page EnableViewStateMac="true" ViewStateEncryptionMode="Auto"
Language="VB" MasterPageFile="~/masterpage.master"
AutoEventWireup="false" CodeFile="Admin.aspx.vb" Inherits="AdminPage"
Title="Field Operations Portal" %>

The class is called AdminPage and has a large page_init and a large
page_open event. But it never gets there.

Please help me solve this.

rg,
Eric
 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      06-13-2009
On Jun 13, 8:15*pm, Eric <(E-Mail Removed)> wrote:
> Hi,
>
> My website consists of several ASPX pages and all but one work.
> I have one page called admin.aspx that is only available for my own login..
> The menu to it works the same as to the other pages *it just checks first
> who logged in and if that person is allowed.
>
> When allowed, it does a response.redirect("~\admin.aspx")
>
> Right after that line is run, I get a "server error on \ appliation".
> If I replace the page with another one, there is no problem.
>
> I have looked over the code several times but I cannot find it.
> This website is running on an intranet webserver and runs fine.
> This problem occurs after putting it on a external hosting.
>
> What is the cause of this?
>
> here is the first line of the file:
>
> <%@ Page EnableViewStateMac="true" ViewStateEncryptionMode="Auto"
> Language="VB" MasterPageFile="~/masterpage.master"
> * AutoEventWireup="false" CodeFile="Admin.aspx.vb" Inherits="AdminPage"
> Title="Field Operations Portal" %>
>
> The class is called AdminPage and has a large page_init and a large
> page_open event. But it never gets there.
>
> Please help me solve this.
>
> rg,
> Eric


~\admin.aspx? should be ~/admin.aspx
 
Reply With Quote
 
 
 
 
Eric
Guest
Posts: n/a
 
      06-13-2009
Tried both, same error.

"Alexey Smirnov" wrote:

> On Jun 13, 8:15 pm, Eric <(E-Mail Removed)> wrote:
> > Hi,
> >
> > My website consists of several ASPX pages and all but one work.
> > I have one page called admin.aspx that is only available for my own login..
> > The menu to it works the same as to the other pages it just checks first
> > who logged in and if that person is allowed.
> >
> > When allowed, it does a response.redirect("~\admin.aspx")
> >
> > Right after that line is run, I get a "server error on \ appliation".
> > If I replace the page with another one, there is no problem.
> >
> > I have looked over the code several times but I cannot find it.
> > This website is running on an intranet webserver and runs fine.
> > This problem occurs after putting it on a external hosting.
> >
> > What is the cause of this?
> >
> > here is the first line of the file:
> >
> > <%@ Page EnableViewStateMac="true" ViewStateEncryptionMode="Auto"
> > Language="VB" MasterPageFile="~/masterpage.master"
> > AutoEventWireup="false" CodeFile="Admin.aspx.vb" Inherits="AdminPage"
> > Title="Field Operations Portal" %>
> >
> > The class is called AdminPage and has a large page_init and a large
> > page_open event. But it never gets there.
> >
> > Please help me solve this.
> >
> > rg,
> > Eric

>
> ~\admin.aspx? should be ~/admin.aspx
>

 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      06-15-2009
=?Utf-8?B?RXJpYw==?= <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> Hi,
>
> My website consists of several ASPX pages and all but one work.
> I have one page called admin.aspx that is only available for my own
> login. The menu to it works the same as to the other pages it just
> checks first who logged in and if that person is allowed.
>
> When allowed, it does a response.redirect("~\admin.aspx")
>
> Right after that line is run, I get a "server error on \ appliation".
> If I replace the page with another one, there is no problem.
>
> I have looked over the code several times but I cannot find it.
> This website is running on an intranet webserver and runs fine.
> This problem occurs after putting it on a external hosting.
>
> What is the cause of this?
>
> here is the first line of the file:
>
> <%@ Page EnableViewStateMac="true" ViewStateEncryptionMode="Auto"
> Language="VB" MasterPageFile="~/masterpage.master"
> AutoEventWireup="false" CodeFile="Admin.aspx.vb"
> Inherits="AdminPage"
> Title="Field Operations Portal" %>
>
> The class is called AdminPage and has a large page_init and a large
> page_open event. But it never gets there.
>
> Please help me solve this.
>
> rg,
> Eric



First, get the whack in the right direction.The next potential error is
something cached in the temporary ASP.NET files, which can only be fully
cleared by shutting down Visual Studio, restarting IIS, and manually
deleting.

As an aside, some times it is quicker to remove the admin page from the
site, and try to compile (error). Then create a new admin.aspx and copy
the code from the removed page. The failed compile will help undo the
magic that was causing failure.

If it is the temp files, there is something, somewhere in your code that
is confusing the compiler. It could be the wrong whack.

BTW, changing the whack in the site will not clear things out by itself
if the temp files are corrupted. For some reason the compiler sees both
the same and will not replace the offending compiled bits.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
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
Help: Runtime Error - Server Error in '/' Application Kevin Farless ASP .Net 13 10-03-2007 09:48 AM
Faulting application error occured while installing SQL Server service pack 3a(sp3a) on Windows Server 2003 Ent 64bit Edition Joshua Son Windows 64bit 0 03-16-2007 01:09 AM
Server Application Unavailable / Server Error hutty ASP .Net 1 09-11-2006 06:26 PM
'current custom error settings for application prevent details of application error from being viewed. ' Damian ASP .Net 3 12-30-2003 08:01 PM
Need help to understand this code error 'server error in /online application' Ketul Patel ASP .Net 1 11-29-2003 04:10 PM



Advertisments