Asp.net Report Viewer SRS Setup - reportviewer

I currently have a srs report which has a url that looks like
http://localhost/Report_SqlExpress/Pages/Report.aspx?ItemPath=/personnel_report
I've tried using the Report viewer control to display this report by doing the following
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote"
Font-Names="Verdana" Font-Size="8pt" Height="400px" Width="400px" >
<ServerReport
ReportServerUrl="http://localhost/Report_SqlExpress" ReportPath="personnel_report" />
</rsweb:ReportViewer>
but i keep getting the error
The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
The request failed with HTTP status 404: Not Found.
Does anyone know of how i can fix this?
Thanks

The problem was that my report path needed a slash before it.
Silly me.

Related

What is the expected behavior of using the Worklight 6.2 vitality queries to validate an application?

I am attempting to use the Worklight server vitality query to validate that an application is installed on the Worklight server which is documented here http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.monitor.doc/admin/r_vitality_query.html
In a browser I am accessing this URL http://localhost:10080/WLHealth/ws/rest/vitality?app=somedummyapp
I believe the proper response from the server would contain an ALERT element that indicates that the application "somedummyapp" isn't installed in the server. (Which it isn't)
Instead I am getting the following response:
<ROOT>
<ALERT>
<DATE>2014-10-09T22:48:47.381-0400</DATE>
<EVENTID>0</EVENTID>
<SYSTEM>WRKL</SYSTEM>
<SUBJECT>SRV</SUBJECT>
<COMPUTER>192.168.1.6</COMPUTER>
<DESCRIPTION>Server is running</DESCRIPTION>
</ALERT>
<ALERT>
<DATE>2014-10-09T22:48:47.381-0400</DATE>
<EVENTID>0</EVENTID>
<SYSTEM>WRKL</SYSTEM>
<SUBJECT>APPL</SUBJECT>
<COMPUTER>192.168.1.6</COMPUTER>
<DESCRIPTION>Application 'somedummyapp' is deployed</DESCRIPTION>
</ALERT>
<ALERT>
<DATE>2014-10-09T22:48:47.381-0400</DATE>
<EVENTID>0</EVENTID>
<SYSTEM>WRKL</SYSTEM>
<SUBJECT>BUILD</SUBJECT>
<COMPUTER>192.168.1.6</COMPUTER>
<DESCRIPTION>6.2.0.00.20140915-1601</DESCRIPTION>
</ALERT>
</ROOT>
As my comment states above I believe you have encountered a defect in regards to the "Application 'somedummyapp' is deployed" description that the vitality check is outputting. I have opened a defect internally, but below I can show you what the expected result would be for an application that is not deployed:
If the application "somedummyapp" was not deployed to the server and you accessed the following URL:
http://localhost:10080/WLHealth/ws/rest/vitality?app=somedummyapp
An Alert would appear in the response with the following output:
-<ALERT>
<DATE>2014-10-14T14:02:43.601-0400</DATE>
<EVENTID>2</EVENTID>
<SYSTEM>WRKL</SYSTEM>
<SUBJECT>APPL</SUBJECT>
<COMPUTER>{IP_ADDRESS}</COMPUTER>
<DESCRIPTION>Application 'somedummyapp' is not deployed</DESCRIPTION>
</Alert>
As you can see the EVENTID would be set to "2" for a not deployed application. The DESCRIPTION would then be set to "Application 'somedummyapp' is not deployed".

"No mapping data was returned from the server" in web api vs2013?

I created new web api mvc4 project in vs2013.
I run it in Page Inspector but it won't open and reported these warning:
No mapping data was returned from the server.
I found a solution in stackoverflow here:
No mapping data was returned from the server after installing ASP.NET and Web Tools 2012.2 Update
But I can't find
<map id="surfer" name="surfer">
<area shape="poly" coords="0,23,30,13,40,3,64,5,69,19,86,23,98,30,99,51,72,63,68,83,41,83,38,67,1,65" alt="&%##?!">
</map>
as it suggested.
Can you help me ?
Comment default.aspx file part-by-part and try to run it each time to find out what causes the problem. Even simple "view in browser" should do the trick if removing parts of your file forces you to add changes in your code-behind.
In my case it was an "OnClick=" property calling a non-existing code-behind funtion.

A server or scripting issue

I am recieving an error in https
HTTP Status 404 - /cas/login
type Status report
message /cas/login
description The requested resource (/cas/login) is not available.
Apache Tomcat/7.0.23
when i open the same link in http it gives an output (an unknown language)
<html>
<head></head>
<body>
<pre>???�?? </pre>
</body>
</html>
Why is it so...? Is this an server issue or script issue? I feel it as a Server issue?? If so please share a remedy for it...
"The requested resource (/cas/login) is not available." generally indicates that cas was not correctly deployed or Tomcat couldn't load it properly. Could you plz examine the contents of either the catalina or the cas.log files and report back?

LINQPad 4 Error in Downloading More Samples

I am having this error when I try to download LINQPad sample libraries: Error while unpacking sample queries: C:\Documents and Settings[user]\Local Settings\Temp\LINQPad\TempSampleQueries849247.zip is not a valid zip file.
I use LinqPad 4 (installed version). The weird thing is I also have LINQPad 4 (licensed standalone executable) at home and I didn't encounter any problems in downloading. Do I need to have license to be able to download the sample files?
Edit:
I am also having problems in activating my LINQPad. The error says: Unable to contact licensing server: The remote server returned an error: (407) Proxy Authentication Required. I pretty much sure I'm not using any proxies. Please help! Thanks.
Are you certain you're not going through a proxy? I don't see any other way you could be getting a 407 error. Entering the proxy username/password into LINQPad's proxy dialog (Edit | Preferences | Updates) should fix it.
If you're still unable to proceed, you can perform an offline activation here and download the sample libraries via a web browser here. After downloading a samples zip file, click 'Download more samples' and type in the local file path to import it.
Simple solution to prevent the proxy 407 authentication needed error when licensing or updating Linqpad: Add the following to Linqpad's config file
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>

OData / WCF Data Service - HTTP 500 Error

I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3 with all current patches installed.
When I click on "view in browser", the service opens and I see the 3 tables from my EF model. However, when I add a table name ("Commands" in this case) to the end of the query string, rather than seeing the data from the table, I get an HTTP 500 error.
(This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.).
I have not only followed the examples from 2 sites, but have also tried running the sample application that the blog poster sent me (that works on his machine), and still am not having any luck.
The blog post is at Exposing OData from an Entity Framework Model
Does anyone have an idea why this is occurring and how to resolve it?
Here is the output of the "View in Browser":
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <service xml:base="http://localhost:1883/VistaDBCommandService.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
- <workspace>
<atom:title>Default</atom:title>
- <collection href="Commands">
<atom:title>Commands</atom:title>
</collection>
- <collection href="Databases">
<atom:title>Databases</atom:title>
</collection>
- <collection href="Statuses">
<atom:title>Statuses</atom:title>
</collection>
</workspace>
</service>
Update:
In an effort to get this working, I have:
Removed and re-installed IIS
Ran the %WINDIR%\Microsoft.Net\Framework\v4.0.30319\aspnet_regiis –i –enable command
Ran the %WINDIR%\Microsoft.Net\Framework\v4.0.30319\ServiceModelReg.exe -r command.
Created a new solution and followed the instructions very carefully to assure that I
didn't mess anything up.
After all of this, I am still getting the same HTTP 500 error, with no entries of any kind in the Event Viewer.
Any other ideas?
I figured out that my problem was an issue with opening the database. The way I figured it out was to add the following to the servicename.svc.cs file in the InitializeService method:
config.UseVerboseErrors=true;
Thanks to all who tried to help.
Eric
config.UseVerboseErrors=true; helped me in finding out the problem. The problem was I was using windows authentication for database connection. After changing to SQL Server Authentication everything worked fine.
Please try these debugging tips to see the actual error which happened:
Link
500 always means there was an unhandled exception in the service. Go look in the windows event log to see what that error was.
Received similar output with VS2013:
Resolved by upgrading the Entity Framework.
See answer https://stackoverflow.com/a/21028123/2116188.
You can also activate Failed Request Tracing for your Web Application in IIS
then you will get detailled trace execution in Xml files from IIS when a 500 error occurs
There is a good article here explaining how to setup Failed Request Tracing in IIS :
Using Failed Request Tracing to Trace Rewrite Rules
HTH
Cédric
If you are using SQL Server Compact data file (Like NorthWind.sdf) you need to give write file permission to IUSRS group.
Ex: If you are using NorthWind.sdf in DataDirectory i.e. YourWeb/App_Data then you need to give write permissions to _IUSRS group from IIS Console or from Windows Explorer.