I keep getting this exception intermittently, it looks like a search engine is hitting my page even though I have a robots.txt file. What is weird is look at the "Event" from Management Console (below). The
"Request URL" has "&" in the URL. If you copy and paste that request URL you get the same exception (my site hides the exception of course) If you copy and paste the URL and replace "&" with just "&" then there is no exception and it returns a javascript
file. When I visit the reports page myself, everything works properly. Like I said I am picking this up in my error logs and it throws quite a few exceptions all right in a row (like 5 of the same exceptions at the same time down to the second)
Has anyone encountered this? I am using this in my web.config:
Request information:
Request URL: http://alliance.nmrdesign.com/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=8.0.50727.42&Name=Scripts.ReportViewer.js
Request path: /Reserved.ReportViewerWebControl.axd
User host address: 69.19.14.15
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Reporting.WebForms.EmbeddedResourceOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I have not tested this yet but in
theory it should work....
Sub Application_BeginRequest(ByVal sender
As Object,
ByVal e As EventArgs)
' Fires at the beginning of each request
If Not Request.ServerVariables.Item("HTTP_X_BLUECOAT_VIA") =
Nothing Then
HttpContext.Current.RewritePath(Request.Path & "?" & Replace(Request.QueryString.ToString, Server.UrlEncode("amp;"),
"&"), True)
End If
End Sub
I know it has been some time since this post, but i am having the exact same problem as the original poster. Your solution looks promising but I'm curious how I determine what the proxy is. I've looked in my server variables and don't seem to have one--though
I don't believe it's specifically Bluecoat.
Ryan, Curious where you put your code? In the page with the control in it? And how will I know if it is that variable exactly as you mention or where can I find that blue coat variable?
C# version of ryanloken's answer (tested in Fiddler):
protected void Application_BeginRequest(Object sender, EventArgs e)
{
// Fires at the beginning of each request
if (!String.IsNullOrEmpty(Request.ServerVariables["HTTP_X_BLUECOAT_VIA"]))
{
string original = Request.QueryString.ToString();
HttpContext.Current.RewritePath(Request.Path + "?" + original.Replace(Server.UrlEncode("amp;"), "&"));
}
}
None
0 Points
27 Posts
Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Jun 05, 2007 10:30 AM|strazz|LINK
I keep getting this exception intermittently, it looks like a search engine is hitting my page even though I have a robots.txt file. What is weird is look at the "Event" from Management Console (below). The "Request URL" has "&" in the URL. If you copy and paste that request URL you get the same exception (my site hides the exception of course) If you copy and paste the URL and replace "&" with just "&" then there is no exception and it returns a javascript file. When I visit the reports page myself, everything works properly. Like I said I am picking this up in my error logs and it throws quite a few exceptions all right in a row (like 5 of the same exceptions at the same time down to the second)
Has anyone encountered this? I am using this in my web.config:
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 6/4/2007
Time: 4:21:36 PM
User: N/A
Computer: SV1803
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/4/2007 4:21:36 PM
Event time (UTC): 6/4/2007 11:21:36 PM
Event ID: 451314926608461980cfb5a89a038a94
Event sequence: 10588
Event occurrence: 4
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1136884830/Root-1-128254433988287500
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\alliance\
Machine name: SV1803
Process information:
Process ID: 9316
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ArgumentException
Exception message: Missing URL parameter: Name
Request information:
Request URL: http://alliance.nmrdesign.com/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=8.0.50727.42&Name=Scripts.ReportViewer.js
Request path: /Reserved.ReportViewerWebControl.axd
User host address: 69.19.14.15
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at Microsoft.Reporting.WebForms.EmbeddedResourceOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
None
0 Points
2 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Jul 30, 2007 09:28 PM|ant-ny|LINK
strazz,
Did you ever figure out the cause of this error? I'm gettting a similar error that I can't track down.
Error:
ArgumentException: Missing URL parameter: Name
at Microsoft.Reporting.WebForms.EmbeddedResourceOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
URL: http://www.....com/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=8.0.50727.42&;Name=Scripts.ReportViewer.js
Source: Microsoft.ReportViewer.WebForms
User: joe@doe.com
Member
2 Points
52 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 18, 2007 01:10 PM|jhenkel|LINK
Has anyone solved this yet -- am getting the same problem.
Thanks...
None
0 Points
1 Post
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 19, 2007 10:13 AM|lourdino|LINK
i suppose no body has a solution to this yet......this is a very common error across reports i think.....hoping that someone comes up wit ha solution
Member
640 Points
1158 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 19, 2007 10:46 AM|Karenros|LINK
can u pls post ur code that ur using to load the report viewer ...
None
0 Points
2 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Aug 21, 2008 05:33 PM|ronald.avendano@gmail.com|LINK
It may be help, try this:
Install Report Viewer
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe
Second step:
Give full access to 'NETWORK SERVICE' to c:\windows\temp directory.
Good Luck,
Ronald Avendaño
ronald.avendano@gmail.com
None
0 Points
1 Post
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Sep 10, 2008 07:23 PM|AlexVM|LINK
I am getting this error too. I noticed that error occures only for users who are using Bluecoat proxy. They have HTTP_X_BLUECOAT_VIA header.
This proxy URL encodes ampercent in a query string, which breaks ReportViewer.
QUERY_STRING=OpType=Resource&Version=8.0.50727.762&Name=Icons.PrevPage.gif
It seems to be a proxy's issue.
None
0 Points
2 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 02, 2008 04:45 PM|ypmembership@yahoo.com|LINK
So it is the Bluecoat proxy issue. What is the solution to this?
thanks.
yp
None
0 Points
2 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Feb 20, 2009 01:55 PM|ryanloken|LINK
None
0 Points
13 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Jul 23, 2009 06:32 PM|Mike_Zandvliet_|LINK
Hello,
Has anybody been able to see if Ryan Loken's workaround resolves the problem?
I could test it however my site only generates this error infrequently - so it could be a month or more before I know if it has had any effect.
Thanks,
Mike
None
0 Points
2 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Jul 24, 2009 02:40 PM|ryanloken|LINK
This worked for me. I have not seen the error again in our production environment.
RL
Member
52 Points
283 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 28, 2010 01:10 PM|ejowens|LINK
I know it has been some time since this post, but i am having the exact same problem as the original poster. Your solution looks promising but I'm curious how I determine what the proxy is. I've looked in my server variables and don't seem to have one--though I don't believe it's specifically Bluecoat.
Thanks,
ejo
Member
52 Points
283 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Oct 29, 2010 02:19 PM|ejowens|LINK
Finally caught the rascal...bluecoat proxy fix underway!
Star
9197 Points
2576 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Feb 25, 2011 10:12 AM|b471code3|LINK
Ryan, Curious where you put your code? In the page with the control in it? And how will I know if it is that variable exactly as you mention or where can I find that blue coat variable?
None
0 Points
1 Post
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Aug 30, 2013 11:16 AM|nmg196|LINK
C# version of ryanloken's answer (tested in Fiddler):
None
0 Points
3 Posts
Re: Reserved.ReportViewerWebControl.axd Missing URL parameter: Name
Dec 09, 2013 04:49 AM|SeyoS|LINK
Thanks ! I was seeking this !!