Saturday, March 31, 2012
strange 404 in ASP.NET IIS5
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.
404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx
StackTrace
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)
-MikeOh yeah, sometimes instead of mySite_com_files it will be a username_com_files or username_files. _files is on all these 404's no matter what was before it.
-Mike
-- Mike wrote: --
I have been receiving this very strange 404 lately and was wondering
if anyone else out there has had a similar problem. For some reason
when users receive this error and they hit refresh the error goes
away. Seems like a IE or ASP.NET cache problem, but can not find any
articles on it.
404 not found C:\inetpub\mySite\mySite_com_files\pictures.aspx
StackTrace
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)
-Mike
strange 404 error
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)
Strange 100% CPU issue with asp_wp
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.
Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?
Is there any code that can be written to see what is happening?
What I am trying to accomplish is to determine the offending
application. What toold exist?
Thanks
RichHi Rich
As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?
If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.
However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:
#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks
Rich
In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each we
b
> application in a separate workproesss. You can have a look at the followin
g
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...ft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
Hi Rich,
Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich
In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may b
e
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel
u
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
Strange 100% CPU issue with asp_wp
We are having some issues with our .NET web applications. Every so
often a computer will peg its CPU at 100% for some period of time. I am
told anywhere between 30mins and 2 hours. I have seen some kb articles
about asp_wp and 100% but I do not believe that is our issues. I am
fairly certain that the probelm is caused by one of the applications
running on the server. Ok so here are the questions.
Are there any perfmons that can be used to determine which asp.net app
is causing the cpu to spike up?
Is there any code that can be written to see what is happening?
What I am trying to accomplish is to determine the offending
application. What toold exist?
Thanks
RichHi Rich
As for the 100% cpu and troubleshooting on multi-web app server problem.
There are different options which depend on the server's OS version. Is
your webserver win2k server or win2003 server?
If you're using the Win2k server, since the processModel are the fixed
isolation mode. All the web application shared the same workerprocess.
There hasn't any buildin means or tools to determine which app caues the
problem. We have to test them one by one.
However , on win2k3 box, the IIS6 has provided a new workerprocess
isolation model( application pool model) which can let use isolate each web
application in a separate workproesss. You can have a look at the following
reference discussing on this:
#Chapter 20 C Hosting Multiple Web Applications
http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
ml/thcmch20.asp
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks for the feedback. This is a W2K server hosting these
applications. So I am left with the testing of individual applications.
Would this testing be done in a traditional manner (ie click and watch)?
If so I was hoping for something a little more than that. Any other
ideas? Thanks
Rich
In article <9LvS$c4eEHA.1600@.cpmsftngxa06.phx.gbl>, you say...
> Hi Rich
> As for the 100% cpu and troubleshooting on multi-web app server problem.
> There are different options which depend on the server's OS version. Is
> your webserver win2k server or win2003 server?
> If you're using the Win2k server, since the processModel are the fixed
> isolation mode. All the web application shared the same workerprocess.
> There hasn't any buildin means or tools to determine which app caues the
> problem. We have to test them one by one.
> However , on win2k3 box, the IIS6 has provided a new workerprocess
> isolation model( application pool model) which can let use isolate each web
> application in a separate workproesss. You can have a look at the following
> reference discussing on this:
> #Chapter 20 =3FC Hosting Multiple Web Applications
> http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
> ml/thcmch20.asp
>
> Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
Hi Rich,
Thanks for your followup. As for such problem, if you have found the web
application which cause the problem, I think you'd better continue to
narrow down the problem to some certain web pages or component which may be
the root cause. Also, you can have a check directly in the code logic to
see whether there is any potential issues. Currnetly there're any
particular tools focus on such problem.
In addition, if you still feel confused on this issue, I recommend that you
request a regular case on it since intensive troubleshooting(such as Dump
analyse) would be done quickly and effectively with direct assistance from
a Microsoft Support Professional through Microsoft Product Support
Services.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Thanks Steven. I was afraid there would be no way of tracking this
down. If we can't find the app we will contact MPS. Rich
In article <Cvm$ywefEHA.3212@.cpmsftngxa06.phx.gbl>, v-
schang@.online.microsoft.com says...
> Hi Rich,
> Thanks for your followup. As for such problem, if you have found the web
> application which cause the problem, I think you'd better continue to
> narrow down the problem to some certain web pages or component which may be
> the root cause. Also, you can have a check directly in the code logic to
> see whether there is any potential issues. Currnetly there're any
> particular tools focus on such problem.
> In addition, if you still feel confused on this issue, I recommend that you
> request a regular case on it since intensive troubleshooting(such as Dump
> analyse) would be done quickly and effectively with direct assistance from
> a Microsoft Support Professional through Microsoft Product Support
> Services.
> Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
Strange and annoying problem
Even commenting a line in javascript still prompts for an error. If I remove the following line then no error, but again if i put it back, even commented error occurs.
//opener.document.getElementById('<%=TextBox1.ClientID%>').value='akberalikaka';
isn't it strange behavior
Yes it is strange. As far as i am aware of, there are three types of comment you can do in java:
1. Multiple-line :/* and*/
2.One-line comments of C++ style: Begins with // and continue up to the next line break:
3.One-line comments with theHTML comment-opening sequence (<!--). Note that the JavaScript interpreter ignores the closing characters of HTML comments (-->). Consider this example:<!-- This is treated as a one-line JS comment<!-- It works just like a comment beginning with //<!-- --> This is also a one-line JS comment<!-- --> because JS ignores the closing characters<!-- --> of HTML-style comments
HTML-style comments are not usually found in the middle of JavaScript code. However, it is recommended to use HTML comments for hiding Javascript code from old browsers
Try using this mate
Hi,
//opener.document.getElementById('<%=TextBox1.ClientID%>').value='akberalikaka';
Your comment in javascript doesn't stop<%=TextBox1.ClientID%> since it is asp.net code. So to clear the error you have to remove this code.
You have to comment the aspnet code also
if you are using C#
//opener.document.getElementById('<%/*=TextBox1.ClientID*/%>').value='akberalikaka';
if you are using VB
//opener.document.getElementById('<%'=TextBox1.ClientID'%>').value='akberalikaka';
<%'=TextBox1.ClientID'%> is equivalent to <% Response.Write(TextBox1.ClientID) %>
Strange ASP.NET problem
Both have exactly the same .net framework.. regional settings.. and both are using the same codes and have compile with no problem in both platforms.
Then i've a webform which does a regular expression check on a date. It works perfectly fine in the windows xp machine, upon an invalid date (e.g. aaa, aa/aa/aaaa, 30/30/2222, etc), the message will come out. But when i run the exact same code in the win2k server, upon clicking an invalid date like in the winxp machine, it gives me this error:
The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Funny problem is that it worked on the winxp machine and not the win2k machine? What settings could i be missing in the OS itself? or iis?? Coz the source codes everything is the same.i found out its because the aspnet_client folder is missing thus the validation didn't work and got through the form.
Doesnt the asp.net validation work on the server side? It seems it just work in the client side through javascript. All the while i have the impression that the form validation works both on the client and have some check in the server side as well. But after this, when the javascript isnt available, it passes through.
Strange Authentication Issue
I'm trying to get the User.Identity.Name with my intranet application. I'm looking to get the Domain\User. Now, at first this simply did not work...User.Identity.Name would return nada. So then I poked around IIS a bit and I managed to switch the authentication methods. I checked off "Anonymous Access" and checked "Integrated Windows Authentication". After doing so, I was able to retrieve the Domain\user.
Great, dandy, fanny-tastic. Now comes the strange part. Certain users have access to re-open issues, so the powers that be created a new group on the server just for these users. When one of the users that belongs to this group accesses the site, they are prompted for a username and password from windows. Just those users in the group.
I don't have any code on page load that checks what role they're in, so what could I be missing here? I would like to get rid of the logon.
Thanks.
I was having the same problem and I fixed it. First of all I hope thereis some admin folder or the folder which special users are trying tovisit. That folder can have confidential files that are only viewableby special users. Go to IIS and view your project folder. right clickon the Admin folder and select properties and than select directorysecurity tab and uncheck windows authentication and check the Anonymousauthentication . Refresh your page and It should work fine now.azamsharp wrote:
I was having the same problem and I fixed it. First of all I hope there is some admin folder or the folder which special users are trying to visit. That folder can have confidential files that are only viewable by special users. Go to IIS and view your project folder. right click on the Admin folder and select properties and than select directory security tab and uncheck windows authentication and check the Anonymous authentication . Refresh your page and It should work fine now.
The thing is, I had it set up for Anonymous at first. When it was set up that way, I couldn't retreive the Domain\User with User.Identity.Name. It would return nothing.
Yeah you are right. Strange thing is when I try to view restrictedpages using my University Wireless network I dont see the pop upmessage for the username and password. But when I use my dial upaccount at home I see the pop up.
azamsharp wrote:
Yeah you are right. Strange thing is when I try to view restricted pages using my University Wireless network I dont see the pop up message for the username and password. But when I use my dial up account at home I see the pop up.
Interesting. Sounds like your issue is similar to mine. I figured it out. (Well, my manager really did)
We were navigating to the site using the the full url of the domain, instead of the shorter version. Something like:
http://domain.blah.com/dir
When all we had to do was:
http://domain.blah/dir
So I guess using the .com appeared as if we were outside of the network, and therefore it promted for a username/password.
Thanks for your help and interest in my matter!
Thanks for sharing the solution.