Showing posts with label errors. Show all posts
Showing posts with label errors. Show all posts

Saturday, March 31, 2012

strange 404 error

I'm wondering if anyone has encountered something similar to the error I've pasted below. We get similar errors when someone hits a bad link etc., but the part I can't figure out here is where the string "ExpenseWatch_files" come from. The page TEPrintFrame.aspx resides in the TE folder. There is no intermediate directory and the string "ExpenseWatch_files" does not exist anywhere in our code. Also, I'm pretty sure that the user never knows that an error occurred even though it is trapped and reported.

Thanks in advance,

Sean Nolan

----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx

Source:
System.Web

Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)Probably a hacker, probing for a specific vulnerability in some commercial
product called "ExpenseWatch".

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Sean Nolan" <snolan@.harriton.com> wrote in message
news:#bm2B0##DHA.2520@.TK2MSFTNGP11.phx.gbl...
I'm wondering if anyone has encountered something similar to the error I've
pasted below. We get similar errors when someone hits a bad link etc., but
the part I can't figure out here is where the string "ExpenseWatch_files"
come from. The page TEPrintFrame.aspx resides in the TE folder. There is no
intermediate directory and the string "ExpenseWatch_files" does not exist
anywhere in our code. Also, I'm pretty sure that the user never knows that
an error occurred even though it is trapped and reported.

Thanks in advance,

Sean Nolan

----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx

Source:
System.Web

Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)

Wednesday, March 28, 2012

Strange compilation errors

Assuming two aspx pages named Defaul1 and Default2 whith separate code behin
d
files. The corresponding class names are Defaul1 and Default2 respectively
and are in the same namespace (MyCompany.MyApplication.UI).
In the "Page_Load" of Page2 class I have the following code
if ( Context.Handler is Page1 )
Page1 sourcePage = (Page1)Context.Handler;
Not allways but quite often during the build, I see the following error:
The type or namespace name 'Page1' could not be found (are you missing a
using directive or an assembly reference?)
The error message appears twise indicating the two code lines above.
There is no missing "using" because both classes are in the same namespace.
There is no missing assemply reference because both classes (pages) are in
the same web project.
The dev environment is VS 2005 and in the code behind files the classes are
declared as partial.
Any ideas what could be the problem?
Thanksyou should not confuse namespaces with assemblies. namespace is just that, a
naming prefix. using a namespace just allows shortcuts in speciing names.
several assemblies (dlls) may use the same namespace, or one assembly may
have several namespaces. to reference a routine, you must specify the name,
but also must include the assembly containing the routine.
asp.net builds an assembly per page, so even though you use the same
namespace, you als need to add a reference to the page. a confusing facter
is that asp.net will compile serveral pages into the same dll if batching is
allowed. if you forgt the refernce and the pages end up in the same assembly
your ok. if they end up in different assemblies, then you're in trouble.
-- bruce (sqlwork.com)
"Argirop" <Argirop@.discussions.microsoft.com> wrote in message
news:8B674FC6-4D83-4D02-8076-1EA6D72E804E@.microsoft.com...
> Assuming two aspx pages named Defaul1 and Default2 whith separate code
> behind
> files. The corresponding class names are Defaul1 and Default2 respectively
> and are in the same namespace (MyCompany.MyApplication.UI).
> In the "Page_Load" of Page2 class I have the following code
> if ( Context.Handler is Page1 )
> Page1 sourcePage = (Page1)Context.Handler;
> Not allways but quite often during the build, I see the following error:
> The type or namespace name 'Page1' could not be found (are you missing a
> using directive or an assembly reference?)
> The error message appears twise indicating the two code lines above.
> There is no missing "using" because both classes are in the same
> namespace.
> There is no missing assemply reference because both classes (pages) are in
> the same web project.
> The dev environment is VS 2005 and in the code behind files the classes
> are
> declared as partial.
> Any ideas what could be the problem?
> Thanks
>
And how can I add a reference to Default1 in Default2 ?
"bruce barker (sqlwork.com)" wrote:

> you should not confuse namespaces with assemblies. namespace is just that,
a
> naming prefix. using a namespace just allows shortcuts in speciing names.
> several assemblies (dlls) may use the same namespace, or one assembly may
> have several namespaces. to reference a routine, you must specify the nam
e,
> but also must include the assembly containing the routine.
> asp.net builds an assembly per page, so even though you use the same
> namespace, you als need to add a reference to the page. a confusing facter
> is that asp.net will compile serveral pages into the same dll if batching
is
> allowed. if you forgt the refernce and the pages end up in the same assemb
ly
> your ok. if they end up in different assemblies, then you're in trouble.
> -- bruce (sqlwork.com)
> "Argirop" <Argirop@.discussions.microsoft.com> wrote in message
> news:8B674FC6-4D83-4D02-8076-1EA6D72E804E@.microsoft.com...
>
>
Never mind, I found it.
Thanks a lot.
"Argirop" wrote:
> And how can I add a reference to Default1 in Default2 ?
> "bruce barker (sqlwork.com)" wrote:
>

Strange compilation errors

Assuming two aspx pages named Defaul1 and Default2 whith separate code behind
files. The corresponding class names are Defaul1 and Default2 respectively
and are in the same namespace (MyCompany.MyApplication.UI).

In the "Page_Load" of Page2 class I have the following code

if ( Context.Handler is Page1 )
Page1 sourcePage = (Page1)Context.Handler;

Not allways but quite often during the build, I see the following error:

The type or namespace name 'Page1' could not be found (are you missing a
using directive or an assembly reference?)

The error message appears twise indicating the two code lines above.

There is no missing "using" because both classes are in the same namespace.
There is no missing assemply reference because both classes (pages) are in
the same web project.

The dev environment is VS 2005 and in the code behind files the classes are
declared as partial.

Any ideas what could be the problem?

Thanksyou should not confuse namespaces with assemblies. namespace is just that, a
naming prefix. using a namespace just allows shortcuts in speciing names.
several assemblies (dlls) may use the same namespace, or one assembly may
have several namespaces. to reference a routine, you must specify the name,
but also must include the assembly containing the routine.

asp.net builds an assembly per page, so even though you use the same
namespace, you als need to add a reference to the page. a confusing facter
is that asp.net will compile serveral pages into the same dll if batching is
allowed. if you forgt the refernce and the pages end up in the same assembly
your ok. if they end up in different assemblies, then you're in trouble.

-- bruce (sqlwork.com)

"Argirop" <Argirop@.discussions.microsoft.comwrote in message
news:8B674FC6-4D83-4D02-8076-1EA6D72E804E@.microsoft.com...

Quote:

Originally Posted by

Assuming two aspx pages named Defaul1 and Default2 whith separate code
behind
files. The corresponding class names are Defaul1 and Default2 respectively
and are in the same namespace (MyCompany.MyApplication.UI).
>
In the "Page_Load" of Page2 class I have the following code
>
if ( Context.Handler is Page1 )
Page1 sourcePage = (Page1)Context.Handler;
>
Not allways but quite often during the build, I see the following error:
>
The type or namespace name 'Page1' could not be found (are you missing a
using directive or an assembly reference?)
>
The error message appears twise indicating the two code lines above.
>
There is no missing "using" because both classes are in the same
namespace.
There is no missing assemply reference because both classes (pages) are in
the same web project.
>
The dev environment is VS 2005 and in the code behind files the classes
are
declared as partial.
>
Any ideas what could be the problem?
>
Thanks
>
>


And how can I add a reference to Default1 in Default2 ?

"bruce barker (sqlwork.com)" wrote:

Quote:

Originally Posted by

you should not confuse namespaces with assemblies. namespace is just that, a
naming prefix. using a namespace just allows shortcuts in speciing names.
several assemblies (dlls) may use the same namespace, or one assembly may
have several namespaces. to reference a routine, you must specify the name,
but also must include the assembly containing the routine.
>
asp.net builds an assembly per page, so even though you use the same
namespace, you als need to add a reference to the page. a confusing facter
is that asp.net will compile serveral pages into the same dll if batching is
allowed. if you forgt the refernce and the pages end up in the same assembly
your ok. if they end up in different assemblies, then you're in trouble.
>
-- bruce (sqlwork.com)
>
"Argirop" <Argirop@.discussions.microsoft.comwrote in message
news:8B674FC6-4D83-4D02-8076-1EA6D72E804E@.microsoft.com...

Quote:

Originally Posted by

Assuming two aspx pages named Defaul1 and Default2 whith separate code
behind
files. The corresponding class names are Defaul1 and Default2 respectively
and are in the same namespace (MyCompany.MyApplication.UI).

In the "Page_Load" of Page2 class I have the following code

if ( Context.Handler is Page1 )
Page1 sourcePage = (Page1)Context.Handler;

Not allways but quite often during the build, I see the following error:

The type or namespace name 'Page1' could not be found (are you missing a
using directive or an assembly reference?)

The error message appears twise indicating the two code lines above.

There is no missing "using" because both classes are in the same
namespace.
There is no missing assemply reference because both classes (pages) are in
the same web project.

The dev environment is VS 2005 and in the code behind files the classes
are
declared as partial.

Any ideas what could be the problem?

Thanks


>
>
>


Never mind, I found it.

Thanks a lot.

"Argirop" wrote:

Quote:

Originally Posted by

And how can I add a reference to Default1 in Default2 ?
>
"bruce barker (sqlwork.com)" wrote:
>

Quote:

Originally Posted by

you should not confuse namespaces with assemblies. namespace is just that, a
naming prefix. using a namespace just allows shortcuts in speciing names.
several assemblies (dlls) may use the same namespace, or one assembly may
have several namespaces. to reference a routine, you must specify the name,
but also must include the assembly containing the routine.

asp.net builds an assembly per page, so even though you use the same
namespace, you als need to add a reference to the page. a confusing facter
is that asp.net will compile serveral pages into the same dll if batching is
allowed. if you forgt the refernce and the pages end up in the same assembly
your ok. if they end up in different assemblies, then you're in trouble.

-- bruce (sqlwork.com)

"Argirop" <Argirop@.discussions.microsoft.comwrote in message
news:8B674FC6-4D83-4D02-8076-1EA6D72E804E@.microsoft.com...

Quote:

Originally Posted by

Assuming two aspx pages named Defaul1 and Default2 whith separate code
behind
files. The corresponding class names are Defaul1 and Default2 respectively
and are in the same namespace (MyCompany.MyApplication.UI).
>
In the "Page_Load" of Page2 class I have the following code
>
if ( Context.Handler is Page1 )
Page1 sourcePage = (Page1)Context.Handler;
>
Not allways but quite often during the build, I see the following error:
>
The type or namespace name 'Page1' could not be found (are you missing a
using directive or an assembly reference?)
>
The error message appears twise indicating the two code lines above.
>
There is no missing "using" because both classes are in the same
namespace.
There is no missing assemply reference because both classes (pages) are in
the same web project.
>
The dev environment is VS 2005 and in the code behind files the classes
are
declared as partial.
>
Any ideas what could be the problem?
>
Thanks
>
>


Saturday, March 24, 2012

strange error during publishing

I was publishing my asp.net 2005 to my web site with up dates, but I kept getting runtime errors. with no details

so I created a new project(web page) added all the existing folders , pages(aspx and vb) then published no problem

what the heck is going on

also how do i create an error page so I can see the errors remotley?

Turn off the customErrors option in web.config of the website to check the detailed error message:

<customErrors mode="Off" />

Strange Errors

Recently, I copied some files from Development to a testing server. I got the following error.
What is wrong?

Thanks,
Barb

Server Error in '/' Application.
------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'test1.LitStoreHome'.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="vb" trace="true" EnableSessionState="True" AutoEventWireup="false" Codebehind="LitStoreHome.aspx.vb" Inherits="test1.LitStoreHome" %>
Line 2: <HTML>
Line 3: <HEADyou need to copy the /bin dir with required assemblies
or add references to global assemblies in the web.config file
Have you copied the dll from the bin folder.
You guys are absolutely correct, I need to recompile the project or copy dlls.

THANKS!!!

Strange Errors

Im having a problem with one of my pages. Basically what i have is a page where someone can upload files and its all working ok. I also a have option for them to delete files, if they click this they are brought to a separate page to confirm the delete. It all works find for the first file i delete but when i try to do it again, my directory.delete function works but my database delete doesnt ? any idea's?Its ok figured it out, had the parameters in the wrong order !
Deleting a directory in asp.net is tricky. Afetr you delete a directorythe application will restart and u will looase all ur session dat if uare using in-proc session. Here is a link explaining that
http://vikramlakhotia.com/Post.aspx?postID=6

Thursday, March 22, 2012

strange JS error

Hello,

Till yesterday everything went well but I had to install service pack 2 to
windows 2003 serv.
After that every time I get strange JS errors (but could not debug it).
Example: www.edukon.pl and www.portal.idn.org.pl/idn
What could be wrong? Is it possible that SP2 could change something in IIS
or whatever?

Darek T.

--
Mazars & Gurard Audyt Sp. z o. o.
Z siedzib w Warszawie
Ul. Foksal 16, 00-372 Warszawa - Polska
Tel: 00 48 (0) 22 34 55 200, 22 826 46 30
Fax: 00 48 (22) 826 51 34
main@dotnet.itags.org.mazars.pl, www.mazars.pl
Spka zarejestrowana pod nr KRS 0000086577 w Sdzie Rejonowym dla M. St.
Warszawy,
XII Wydzia Gospodarczy KRS
Kapita zakadowy: 1 268 000,00 PLN, NIP: 526-021-54-09,
Konto w banku Socit Gnrale: 71184000072210007008101219

************************************************** ************************************************** ************************************************** ****
Ce message contient des informations confidentielles ou appartenant a la
socit Mazars et est tabli a l'attention exclusive de ses destinataires.
Toute divulgation, utilisation diffusion ou reproduction (totale ou
partielle) de ce message (y compris les annexes ventuelles) ou des
informations qu'il contient doit etre pralablement autorise. Tout message
lectronique est susceptible d'altration et son intgrit ne peut pas etre
assure. La socit Mazars dcline toute responsabilit au titre de ce
message s'il a t modifi ou falsifi. Toute opinion ou avis contenus dans
ce message peut etre celui de son auteur et non forcment celui du cabinet
Mazars.
Si vous n'etes pas destinataire de ce message, merci de le dtruire
immdiatement et d'avertir l'expditeur de l'erreur de distribution et de sa
destruction.

This e-mail contains confidential information or information belonging to
Mazars and is intended solely for the addressees. The unauthorised
disclosure, use, dissemination or copying (ether whole or partial) of this
e-mail (including any attachments), or any information it contains, is
prohibited. E-mails are susceptible to alteration and their integrity cannot
be guaranteed. Mazars shall not be liable for this e-mail if modified or
falsified. Any opinion or view presented can be solely those of the author
and do not necessarily those of Mazars office.
If you are not the intended recipient of this e-mail, please delete it
immediately and notify the sender of the wrong delivery and the mail
deletion."Dariusz Tomon" <d.tomon@.mazars.plwrote in message
news:uzRuTlJmHHA.4868@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

Hello,
>
Till yesterday everything went well but I had to install service pack 2 to
windows 2003 serv.
After that every time I get strange JS errors (but could not debug it).
Example: www.edukon.pl and www.portal.idn.org.pl/idn
What could be wrong? Is it possible that SP2 could change something in IIS
or whatever?
>


You can enable the script debugging by going to IE - Tools - Internet
Options - Advanced. In the Browsing category, clear the Disable script
debugging check box.

strange JS error

Hello,
Till yesterday everything went well but I had to install service pack 2 to
windows 2003 serv.
After that every time I get strange JS errors (but could not debug it).
Example: www.edukon.pl and www.portal.idn.org.pl/idn
What could be wrong? Is it possible that SP2 could change something in IIS
or whatever?
Darek T.
Mazars & Gurard Audyt Sp. z o. o.
Z siedzib w Warszawie
Ul. Foksal 16, 00-372 Warszawa - Polska
Tel: 00 48 (0) 22 34 55 200, 22 826 46 30
Fax: 00 48 (22) 826 51 34
main@dotnet.itags.org.mazars.pl, www.mazars.pl
Spka zarejestrowana pod nr KRS 0000086577 w Sdzie Rejonowym dla M. St.
Warszawy,
XII Wydzia Gospodarczy KRS
Kapita zakadowy: 1 268 000,00 PLN, NIP: 526-021-54-09,
Konto w banku Socit Gnrale: 71184000072210007008101219
****************************************
************************************
****************************************
************************************
**
Ce message contient des informations confidentielles ou appartenant a la
socit Mazars et est tabli a l'attention exclusive de ses destinataires.
Toute divulgation, utilisation diffusion ou reproduction (totale ou
partielle) de ce message (y compris les annexes ventuelles) ou des
informations qu'il contient doit etre pralablement autorise. Tout message
lectronique est susceptible d'altration et son intgrit ne peut pas etre
assure. La socit Mazars dcline toute responsabilit au titre de ce
message s'il a t modifi ou falsifi. Toute opinion ou avis contenus dans
ce message peut etre celui de son auteur et non forcment celui du cabinet
Mazars.
Si vous n'etes pas destinataire de ce message, merci de le dtruire
immdiatement et d'avertir l'expditeur de l'erreur de distribution et de sa
destruction.
This e-mail contains confidential information or information belonging to
Mazars and is intended solely for the addressees. The unauthorised
disclosure, use, dissemination or copying (ether whole or partial) of this
e-mail (including any attachments), or any information it contains, is
prohibited. E-mails are susceptible to alteration and their integrity cannot
be guaranteed. Mazars shall not be liable for this e-mail if modified or
falsified. Any opinion or view presented can be solely those of the author
and do not necessarily those of Mazars office.
If you are not the intended recipient of this e-mail, please delete it
immediately and notify the sender of the wrong delivery and the mail
deletion."Dariusz Tomon" <d.tomon@.mazars.pl> wrote in message
news:uzRuTlJmHHA.4868@.TK2MSFTNGP06.phx.gbl...
> Hello,
> Till yesterday everything went well but I had to install service pack 2 to
> windows 2003 serv.
> After that every time I get strange JS errors (but could not debug it).
> Example: www.edukon.pl and www.portal.idn.org.pl/idn
> What could be wrong? Is it possible that SP2 could change something in IIS
> or whatever?
>
You can enable the script debugging by going to IE - Tools - Internet
Options - Advanced. In the Browsing category, clear the Disable script
debugging check box.