Parser Error on Deployement to Localhost IIS

  • 3p
    azoccolillo3p 5 months ago

    I’ve got a project that runs fine in Visual Studio 2015. When I publish it to my wwwroot/apppath folder I originally got an error with ASMX. After moving the ASMX file to the wwwroot folder that error went away and was replaced with a Parser Error message. I checked permissions on wwwroot and everyone and iusr has read.

    Any Ideas?
    I’m currently unlicensed. Is that the issue?

  • 195p
    AbdiasM195p 5 months ago

    Can you attach a screen shot of the Parser error you’re now facing. It’ll help me provide an appropriate solution for your problem. Even if you’re using a trial version, a parser error shouldn’t occur.

    Thanks

  • 3p
    azoccolillo3p 5 months ago

    I don’t think a screen shot is going to help you since the error message is minimal. I have copies the ActiveReports.ReportService.asmx to the root of my web site (C:\inetpub\wwwroot) and to the root of my application (C:\inetpub\wwwroot\EventCalendar). In my index.vbhtml file the path is:

    viewer = GrapeCity.ActiveReports.Viewer({
    // Specify the div that hosts the viewer
    element: ‘#viewer’,
    // Set the path to the ReportService
    reportService: {
    url: ‘/ActiveReports.ReportService.asmx’
    },
    // Set the default UI type
    uiType: ‘desktop’,
    // Enable report buttons
    reportLoaded: function () {
    reportsButtons.prop(‘disabled’, false);
    },
    // Set the path to the file with localized strings
    // TIP: Edit this text file to localize the viewer
    localeUri: ‘Scripts/i18n/Localeuri.txt’
    });

    The content of my asmx file is:

    I’ve attached images of report in VS2015, run on localhost published, and the ASMX url output.

    Attachments:
    1. ASMX_Service_is_working

      ASMX_Service_is_working.jpg

    2. HTML_Viewer_InVisualStudio2015

      HTML_Viewer_InVisualStudio2015.jpg

    3. HTML_Viewer_Localhost

      HTML_Viewer_Localhost.jpg

  • 3p
    azoccolillo3p 5 months ago

    Also… When I put this on a test webserver with SSL (and with NO EXTERNAL INTERNET ACCESS) and App Pool is .NET 4.5 Classic, I get the following:

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: The compiler failed with error code -532462766.

    Show Detailed Compiler Output:
    C:\Windows\SysWOW64\inetsrv>C:\WebApps\EventCalendar\bin\roslyn\vbc.exe /t:library /utf8output /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\7925461c05cfb2a_1d3cd201\GrapeCity.ActiveReports.Export.Document.v11.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\d188203c0817dfc_1c3cd201\GrapeCity.ActiveReports.Export.Image.v11.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\cd618c050b37e33_d93ad001\System.Web.Http.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\acf195010b7e2c0_1c3cd201\GrapeCity.ActiveReports.Document.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3bf4d07c0bbf20a_d13ad001\System.Web.WebPages.Razor.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\1c18c3e2\c8a0fc65_849ed201\EventCalendar.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\7913db280817dfc_1c3cd201\GrapeCity.ActiveReports.Export.Image.Unsafe.v11.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\be9dc89b07b0525_1d3cd201\GrapeCity.ActiveReports.Export.Xaml.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3fdf94ec0a087f6_1c3cd201\GrapeCity.ActiveReports.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\f6a224df0d0a76d_64aece01\Antlr3.Runtime.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\cfbf3e9e0588ffc_a310cf01\Microsoft.Owin.Security.OAuth.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\a44850440e7b7c6_94a0d101\PagedList.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3f9635f70343a27_0257ce01\Menulab.RichTextBox.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\1fc4f8fc0fb12b5_8016d101\EntityFramework.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\c0d00e6909af533_b947d001\Microsoft.Owin.Security.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\9db8bf340271bfa_1c3cd201\GrapeCity.ActiveReports.Export.Rdf.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\ab7e8eb50c72635_b947d001\Microsoft.Owin.Security.Cookies.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\8f5441a60bedf2b_1c3cd201\GrapeCity.ActiveReports.Extensibility.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\dd6de1b904cae5f_1855d201\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\996c275b0136230_b947d001\Microsoft.Owin.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\e53714f90bbf20a_d13ad001\System.Web.Helpers.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\3a9720bc02145bc_d03ad001\System.Web.Mvc.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\13eff31f0e14a2d_526ed001\Microsoft.AspNet.Identity.Core.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\fd7aaee80457d52_d93ad001\System.Web.Http.WebHost.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\298c283702397f9_6c18cf01\WebGrease.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\b0f46d350bbf20a_d13ad001\System.Web.WebPages.Deployment.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3aa1abce00c7fb0_1d3cd201\GrapeCity.ActiveReports.Web.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\ca92ea13017e2b5_e9c5d101\Newtonsoft.Json.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\9a0457ac0d330cf_1c3cd201\GrapeCity.ActiveReports.Chart.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\3880f13709dcb0a_1d3cd201\GrapeCity.ActiveReports.Export.Pdf.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\d8fe1be30bedf2b_1c3cd201\GrapeCity.ActiveReports.Diagnostics.v11.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\7f201cdc00a1b27_1c3cd201\DocumentFormat.OpenXml.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\d0745dc909a0f1f_1d3cd201\GrapeCity.ActiveReports.Export.Excel.v11.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\5695b2600e14a2d_526ed001\Microsoft.AspNet.Identity.Owin.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\4c52273b05b5aa1_8621cd01\Microsoft.Web.Infrastructure.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\9aa220b00fb12b5_8016d101\EntityFramework.SqlServer.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl39c16b10021a322_1d3cd201\GrapeCity.ActiveReports.Export.Html.v11.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3d65939305c9dc4_d03ad001\System.Web.Razor.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\57b18614057bb0c_c3c1cd01\Owin.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\2bf2de980bbf20a_d13ad001\System.Web.WebPages.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\53d1ba830e7b7c6_94a0d101\PagedList.Mvc.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\b8dce35f0a5572c_d93ad001\System.Net.Http.Formatting.dll” /R:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\assembly\dl3\ab641bfe0aead1a_5f27cf01\System.Web.Optimization.dll” /R:”C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll” /out:”C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\App_global.asax.mts2rwjz.dll” /D:DEBUG=1 /debug+ /nowarn:41008,40000,40008 /define:_MYTYPE=\”Web\” /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.ComponentModel.DataAnnotations,System.Configuration,System.Linq,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.DynamicData,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Xml.Linq /optionInfer+ /langversion:14 /nowarn:41008 /define:_MYTYPE=\”Web\” /optionInfer+ “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\App_global.asax.mts2rwjz.0.vb” “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eventcalendar\b6805b00\1eea8dd9\App_global.asax.mts2rwjz.1.vb”

  • 195p
    AbdiasM195p 5 months ago

    Looks like an error with the AR handler mappings in web.config. Can you take a look at the following documentation link and confirm if you have all the required AR modules and handlers added to your web.config (system.web and system.webserver sections) – http://arhelp.grapecity.com/webhelp/AR11/index.html#ConfigureHTTPHandlersinIIS7x.html
    Look under the section ‘Integrated Mode’. Also, please change the AppPool of the application from .NET 4.5 Classic to .NET 4.5 (Integrated), if you’re not using the Classic AppPool for a particular reason. If it’s a requirement, then please look under the ‘Classic Mode’ section at the above documentation link.

    Let me know if you’re still facing the issue.

  • 3p
    azoccolillo3p 5 months ago

    I’ve switch to Integrated Mode and checked my web.config and IIS setting according to the documentation and I still get the Parser Error. I’ve attached the details of my settings and mu web.config.

    Also…On my 2012 R2 Test Server I upgraded .NET to 4.6.2 and that fixed the compiler issue I was having. Now I get the same “Parser Error” when I run as localhost on the server and when connecting remotely I get a “Runtime Error” . I am running SSL on the test webserver.

  • 3p
    azoccolillo3p 5 months ago

    Problem solved.
    Path to ASMX and an extra handler setting…

    Thanks

  • 195p
    AbdiasM195p 5 months ago

    Glad to know your problem is resolved. Feel free to contact us in case you need any other help.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.