locked
Error while trying to access an ASP.NET page published in the CRM server RRS feed

  • Question

  • Hello,

    I've created an aspx page which will return a string value and published it in the CRM server.

    Then when I try to access this page using the URL,

    http://servername:5555/isv/mypage.aspx?yearid=1

     

    I'm getting this error.But I didnt get this error before.Help me plz...urgent.

     

     

    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.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
    The request failed with the error message:
    --
    <html>
       <head>
           <title>Parser Error</title>
           <style>
            body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
            p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
            b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
            H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
            H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
            pre {font-family:"Lucida Console";font-size: .9em}
            .marker {font-weight: bold; color: black;text-decoration: none;}
            .version {color: gray;}
            .error {margin-bottom: 10px;}
            .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
           </style>
       </head>

       <body bgcolor="white">

               <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

               <h2> <i>Parser Error</i> </h2></span>

               <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

               <b> Description: </b>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.
               <br><br>

               <b> Parser Error Message: </b>Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.<br><br>

               <b>Source Error:</b> <br><br>

               <table width=100% bgcolor="#ffffcc">
                  <tr>
                     <td>
                         <code><pre>

    <font color=red>Line 1:  <%@ Assembly Name="Microsoft.SharePoint"%><%@ Application Language="C#" Inherits="Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication" %>
    </font></pre></code>

                     </td>
                  </tr>
               </table>

               <br>

               <b> Source File: </b> /global.asax<b>    Line: </b> 1
               <br><br>

               <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Microsoft.SharePoint' could not be loaded.<br><br>

               <table width=100% bgcolor="#ffffcc">
                  <tr>
                     <td>
                         <code><pre>

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    </pre></code>

                     </td>
                  </tr>
               </table>

               <br>

               <hr width=100% size=1 color=silver>

               <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

               </font>

       </body>
    </html>
    <!--
    [FileNotFoundException]: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
      at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
      at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
      at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
      at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
      at System.Reflection.Assembly.Load(String assemblyString)
      at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)
      at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail)
      at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies)
      at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive)
      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
    [HttpParseException]: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
      at System.Web.UI.TemplateParser.ProcessException(Exception ex)
      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
    [HttpParseException]: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
      at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
      at System.Web.UI.TemplateParser.ParseInternal()
      at System.Web.UI.TemplateParser.Parse()
      at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
      at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
      at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
      at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
      at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
      at System.Web.Compilation.BuildManager.CompileGlobalAsax()
      at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
    [HttpException]: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
      at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
      at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
      at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    [HttpException]: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
      at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
      at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
      at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

     

    Wednesday, September 17, 2008 2:39 PM

Answers

  •  

    yea...the assembly is in the bin folder.

    C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\bin

    No probs.Now  it is solved....

    Thursday, September 18, 2008 3:27 AM

All replies

  • Looks like you have a reference to the Microsoft.Sharepoint assembly but your page can't find it.  Is the assembly in the GAC or the bin folder?
    Wednesday, September 17, 2008 6:50 PM
    Moderator
  •  

    yea...the assembly is in the bin folder.

    C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ISV\bin

    No probs.Now  it is solved....

    Thursday, September 18, 2008 3:27 AM