none
mostrar un report publicado en sharepoint desde una aplicacion web aspnet RRS feed

  • Pregunta

  • hola

    he desarrollado reportes con sql server 2005 y publique los mismos en un sharepoint 2007 y ahora necesito "llamar" a esos reportes desde un menu de una aplicacion web, asp.net.
    basicametne lo que hice fue crear un webform (vs2010), colocarle un scriptmanager de ajax,un reporviwer  al viwer lo configure asi:

    Chosse report: <report server>
    Report server url:htp://miportal/path/mireporte.rdl
    ReportPath: lo deje en blanco

    Ejecuté mi pagina web el reportViwer ni aparece como que no se ejecutara,

    Entocnes en el page_load coloque:

    y me salio el siguiente error:
    Hay algo incompatible entre los reportviwer del vs2010 y un report creado en sql2005????

    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
    Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <HTML dir="ltr"> <HEAD><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" /><meta HTTP-EQUIV="Expires" content="0" /><meta name="ROBOTS" content="NOHTMLINDEX" /><title> Error </title><link rel="stylesheet" type="text/css" href="/_layouts/3082/styles/core.css?rev=tLJBk8aGDXac%2BaUQ4b1cJA%3D%3D"/> <script type="text/javascript" language="javascript" src="/_layouts/3082/init.js?rev=qQqJ%2B4wiXhp%2Bsi8xwuuM1A%3D%3D"></script> <script type="text/javascript" language="javascript" src="/_layouts/3082/core.js?rev=yxewtlu23Cg4w2%2FBk9EQiQ%3D%3D"></script> <meta name="Robots" content="NOINDEX " /> <meta name="SharePointError" content=""/> </HEAD> <BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();"> <form name="aspnetForm" method="post" action="../../../_layouts/error.aspx" id="aspnetForm" onsubmit="return _spFormOnSubmitWrapper();"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTU2NjkxODU3M2Rkuv2zA5vnQinS+xCMRO9ktp5tGjk=" /> </div> <TABLE class="ms-main" CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%" HEIGHT="100%"> <tr><td> <table CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%"> <tr> <td colspan=4 class="ms-globalbreadcrumb" align="right">  <a href="javascript:TopHelpButtonClick('NavBarHelpHome')" id="ctl00_PlaceHolderGlobalNavigation_TopHelpLink" AccessKey="6" title="Help (new window)"><img src="/_layouts/images/helpicon.gif" align="absmiddle" border="0" alt="Help (new window)" /></a> </td> </tr> </table> </td></tr> <tr> <td class="ms-globalTitleArea"> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr> <td id="GlobalTitleAreaImage" class="ms-titleimagearea"><img id="onetidHeadbnnr0" src="/_layouts/images/titlegraphic.gif" alt="" /></td> <td class="ms-sitetitle" width=100%> </td> <td style="padding-top:8px;" valign=top> </td> </tr> </table> </td> </tr> <TR> <TD id="onetIdTopNavBarContainer" WIDTH=100% class="ms-bannerContainer"> </TD> </TR> <TR height="100%"><TD><TABLE width="100%" height="100%" cellspacing="0" cellpadding="0"> <tr> <td class="ms-titlearealeft" id="TitleAreaImageCell" valign="middle" nowrap><div style="height:100%" class="ms-titleareaframe"></div></td> <td class="ms-titleareaframe" id="TitleAreaFrameClass"> <table cellpadding=0 height=100% width=100% cellspacing=0> <tr><td class="ms-areaseparatorleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td></tr> </table> </td> <td valign=top id="onetidPageTitleAreaFrame" class='ms-areaseparator' nowrap width="100%"> <table id="onetidPageTitleAreaTable" cellpadding=0 cellspacing=0 width=100% border="0"> <tr> <td valign="top" class="ms-titlearea"> <a href="http://portalcre" id="ctl00_PlaceHolderTitleBreadcrumb_idSimpleGoBackToHome">Go back to site</a> </td> </tr> <tr> <td height=100% valign=top ID=onetidPageTitle class="ms-pagetitle"> <h2 class="ms-pagetitle"> Error </h2> </td> </tr> </table> </td> <td class="ms-titlearearight"> <div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div> </td> </tr> <TR> <TD class="ms-leftareacell" valign=top height=100% id="LeftNavigationAreaCell"> <table class=ms-nav width=100% height=100% cellpadding=0 cellspacing=0> <tr> <td> <TABLE height="100%" class=ms-navframe CELLPADDING=0 CELLSPACING=0 border="0"> <tr valign="top"> <td width="4px"><IMG SRC="/_layouts/images/blank.gif" width=4 height=1 alt=""></td> <td valign="top" width="100%">   </td> </tr> <tr><td colspan=2><IMG SRC="/_layouts/images/blank.gif" width=138 height=1 alt=""></td></tr> </TABLE> </td> <td></td> </tr> </table> </TD> <td> <div class='ms-areaseparatorleft'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div> </td> <td class='ms-formareaframe' valign="top"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet"> <TR valign="top" > <TD class="ms-descriptiontext" width="100%"> </TD> <TD ID=onetidYPadding width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></TD> </TR> <TR > <TD ID=onetidMainBodyPadding height="8px"><IMG SRC="/_layouts/images/blank.gif" width=1 height=8 alt=""></TD> </TR> <tr> <td valign="top" height="100%"> <A name="mainContent"></A> <table width=100% border=0 class="ms-titleareaframe" cellpadding=0> <TR> <TD valign=top width="100%" style="padding-top: 10px" class="ms-descriptiontext"> <span id="ctl00_PlaceHolderMain_LabelMessage">Los administradores del servidor han bloqueado en este sitio Web el archivo que intenta guardar o recuperar.</span> <P><span class="ms-descriptiontext"> <span id="ctl00_PlaceHolderMain_helptopic_troubleshooting"><A Title="Troubleshoot issues with Windows SharePoint Services. - Opens in new window" HREF="javascript:HelpWindowKey('troubleshooting')">Troubleshoot issues with Windows SharePoint Services.</A></span> </span> </TD> </TR> </table> <script type="text/javascript" language="JavaScript"> var gearPage = document.getElementById('GearPage'); if(null != gearPage) { gearPage.parentNode.removeChild(gearPage); document.title = "Error"; } </script> </td> </tr> </table> </td> <td class="ms-rightareacell"> <div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div> </td> </TR> <tr> <td class="ms-pagebottommarginleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-pagebottommargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-bodyareapagemargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-pagebottommarginright"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> </tr> </TABLE></TD></TR> </TABLE> <input type="text" name="__spDummyText1" style="display:none;" size=1/> <input type="text" name="__spDummyText2" style="display:none;" size=1/> </form> </BODY> </HTML> --.
     
    LabelHyperLink

    • The attempt to connect to the report server failed.  Check your connection information and that the report server is a compatible version.
      • Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: --< HTML dir="ltr">< HEAD><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" /><meta HTTP-EQUIV="Expires" content="0" /><meta name="ROBOTS" content="NOHTMLINDEX" /><title> Error< /title><link rel="stylesheet" type="text/css" href="/_layouts/3082/styles/core.css?rev=tLJBk8aGDXac%2BaUQ4b1cJA%3D%3D"/>< script type="text/javascript" language="javascript" src="/_layouts/3082/init.js?rev=qQqJ%2B4wiXhp%2Bsi8xwuuM1A%3D%3D"></script>< script type="text/javascript" language="javascript" src="/_layouts/3082/core.js?rev=yxewtlu23Cg4w2%2FBk9EQiQ%3D%3D"></script> <meta name="Robots" content="NOINDEX " /> <meta name="SharePointError" content=""/>< /HEAD>< BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">  <form name="aspnetForm" method="post" action="../../../_layouts/error.aspx" id="aspnetForm" onsubmit="return _spFormOnSubmitWrapper();">< div>< input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTU2NjkxODU3M2Rkuv2zA5vnQinS+xCMRO9ktp5tGjk=" />< /div>  <TABLE class="ms-main" CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%" HEIGHT="100%"> <tr><td>    <table CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%"> <tr> <td colspan=4 class="ms-globalbreadcrumb" align="right">     <a href="javascript:TopHelpButtonClick('NavBarHelpHome')" id="ctl00_PlaceHolderGlobalNavigation_TopHelpLink" AccessKey="6" title="Help (new window)"><img src="/_layouts/images/helpicon.gif" align="absmiddle" border="0" alt="Help (new window)" /></a> </td> </tr>    </table>   </td></tr> <tr> <td class="ms-globalTitleArea">   <table width=100% cellpadding=0 cellspacing=0 border=0>    <tr> <td id="GlobalTitleAreaImage" class="ms-titleimagearea"><img id="onetidHeadbnnr0" src="/_layouts/images/titlegraphic.gif"  alt="" /></td> <td class="ms-sitetitle" width=100%>     </td> <td style="padding-" valign=top>     </td>    </tr>   </table> </td> </tr> <TR> <TD id="onetIdTopNavBarContainer" WIDTH=100% class="ms-bannerContainer"> </TD> </TR> <TR height="100%"><TD><TABLE width="100%" height="100%" cellspacing="0" cellpadding="0"> <tr> <td class="ms-titlearealeft" id="TitleAreaImageCell" valign="middle" nowrap><div style="height:100%" class="ms-titleareaframe"></div></td> <td class="ms-titleareaframe" id="TitleAreaFrameClass">   <table cellpadding=0 height=100% width=100% cellspacing=0>   <tr><td class="ms-areaseparatorleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td></tr> </table>   </td> <td valign=top  id="onetidPageTitleAreaFrame" class='ms-areaseparator' nowrap width="100%">   <table id="onetidPageTitleAreaTable" cellpadding=0 cellspacing=0 width=100% border="0">    <tr> <td valign="top" class="ms-titlearea">   <a href="http://portalcre" id="ctl00_PlaceHolderTitleBreadcrumb_idSimpleGoBackToHome">Go back to site</a> </td>    </tr>    <tr> <td height=100% valign=top ID=onetidPageTitle class="ms-pagetitle">   <h2 class="ms-pagetitle"> Error   </h2> </td>    </tr>   </table> </td> <td class="ms-titlearearight"> < div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>< /td> </tr> <TR>   <TD class="ms-leftareacell" valign=top height=100% id="LeftNavigationAreaCell">    <table class=ms-nav width=100% height=100% cellpadding=0 cellspacing=0> <tr> <td>   <TABLE height="100%" class=ms-navframe CELLPADDING=0 CELLSPACING=0 border="0">    <tr valign="top"> <td width="4px"><IMG SRC="/_layouts/images/blank.gif" width=4 height=1 alt=""></td> <td valign="top" width="100%">             </td>    </tr>    <tr><td colspan=2><IMG SRC="/_layouts/images/blank.gif" width=138 height=1 alt=""></td></tr>   </TABLE> </td> <td></td> </tr>    </table>   </TD>   <td>< div class='ms-areaseparatorleft'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>< /td>   <td class='ms-formareaframe' valign="top"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet"> <TR valign="top"  > <TD class="ms-descriptiontext" width="100%">   </TD>    <TD ID=onetidYPadding width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></TD>   </TR>   <TR > <TD ID=onetidMainBodyPadding height="8px"><IMG SRC="/_layouts/images/blank.gif" width=1 height=8 alt=""></TD>   </TR>   <tr> <td valign="top" height="100%">    <A name="mainContent"></A> <table width=100% border=0 class="ms-titleareaframe" cellpadding=0> <TR> <TD valign=top width="100%" style="padding- class="ms-descriptiontext">    <span id="ctl00_PlaceHolderMain_LabelMessage">Los administradores del servidor han bloqueado en este sitio Web el archivo que intenta guardar o recuperar.</span>    <P><span class="ms-descriptiontext"> <span id="ctl00_PlaceHolderMain_helptopic_troubleshooting"><A Title="Troubleshoot issues with Windows SharePoint Services. - Opens in new window" HREF="javascript:HelpWindowKey('troubleshooting')">Troubleshoot issues with Windows SharePoint Services.</A></span> </span> </TD> </TR> </table>< script type="text/javascript" language="JavaScript"> var gearPage = document.getElementById('GearPage'); if(null != gearPage) { gearPage.parentNode.removeChild(gearPage); document.title = "Error"; }< /script> </td>   </tr> </table>   </td>   <td class="ms-rightareacell">< div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>< /td> </TR>< tr> <td class="ms-pagebottommarginleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-pagebottommargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-bodyareapagemargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td> <td class="ms-pagebottommarginright"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>< /tr> </TABLE></TD></TR>  </TABLE>       <input type="text" name="__spDummyText1" style="display:none;" size=1/>   <input type="text" name="__spDummyText2" style="display:none;" size=1/>  </form>  < /BODY>< /HTML> --.
      LabelHyperLink

    Salu2 Sergio T

    jueves, 24 de mayo de 2012 12:37

Todas las respuestas

  • Chosse report: report server
    Report server url:htp://miportal/path/mireporte.rdl
    ReportPath: lo deje en blanco

    Me temo que has puesto mal los parámetros. En "Report Server URL" no se pone la URL del informe, sino la del servicio web que contiene el .asmx con el que el ReportViewer tiene que comunicarse para pedirle que genere el informe (de forma predeterminada, http://miservidor/ReportServer). Y en ReportPath se pone la ruta relativa dentro de la cual se ha instalado el informe, tal como "/micarpeta/nombredemiinforme" (sin la extensión .rdl).

    sábado, 26 de mayo de 2012 17:14
    Moderador
  • hola

    a q webservice te refieres? quien configura eso? esta por default en el sharepoint? o hay q activarlo de alguna forma?

    yo no tngo acceso a la administracion del sharepoint, me podrias decir exactametne q solicitar a los responsables del sharepoint???

    muchas gracias


    Salu2 Sergio T

    lunes, 28 de mayo de 2012 13:44