{"id":25954,"date":"2020-12-21T03:04:49","date_gmt":"2020-12-20T19:04:49","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&#038;p=25954"},"modified":"2023-01-18T14:21:59","modified_gmt":"2023-01-18T06:21:59","slug":"parser-error-message-the-virtual-path-common-footer-ascx-maps-to-another-application-which-is-not-allowed","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/parser-error-message-the-virtual-path-common-footer-ascx-maps-to-another-application-which-is-not-allowed","title":{"rendered":"Parser Error Message"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"25954\" class=\"elementor elementor-25954\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9535aef elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9535aef\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d03b4fb\" data-id=\"d03b4fb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-86bbfde elementor-widget elementor-widget-heading\" data-id=\"86bbfde\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Parser Error Message <\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-95fd266 elementor-widget elementor-widget-image\" data-id=\"95fd266\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"579\" height=\"241\" src=\"https:\/\/www.casbay.com\/guide\/wp-content\/uploads\/2021\/02\/Parser-Error-Message-e1608525256130.png\" class=\"attachment-large size-large wp-image-32424\" alt=\"Parser Error Message\" srcset=\"https:\/\/www.casbay.com\/guide\/wp-content\/uploads\/2021\/02\/Parser-Error-Message-e1608525256130.png 579w, https:\/\/www.casbay.com\/guide\/wp-content\/uploads\/2021\/02\/Parser-Error-Message-e1608525256130-300x125.png 300w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8b14118 elementor-widget elementor-widget-text-editor\" data-id=\"8b14118\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong>Parser Error Message: The virtual path \u2018\/common\/footer.ascx\u2019 maps to another application, which is not allowed.<\/strong><\/p><p><strong>Issue<\/strong>: I am getting this error when I try to run my ASP.NET application on my Windows hosting server. Parser Error.<\/p><p><strong>Description<\/strong>: An error occurred during the parsing of a resource required to service this request. Please review the following specific parser error details and modify your source file appropriately.<\/p><p><strong>Parser Error Message<\/strong>: The virtual path \u2018\/common\/footer.ascx\u2019 maps to another application, which is not allowed.<\/p><p>Source Error:<br \/>Line 1, Line 2 and Line 3<\/p><p><strong>Solution :<\/strong><\/p><p>If the .ascx file is in one folder configured as an application in IIS, and the page from which you\u2019re trying to use it is in a different IIS application, it won\u2019t work. User controls cannot be used across app domain boundaries, which is one of their weaknesses compared to custom server controls.<\/p><p>To solve this you can:<br \/>\u2013 Copy the .ascx file to a folder in the application from which you want to use it, which of course means that you now have two copies of\u00a0the User Control to maintain.<\/p><p>Or<\/p><p>\u2013 Create a custom server control with the same functionality, give it a strong name, and install it in the Global Assembly Cache (GAC). Now you\u00a0can use this control from any app on that machine.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7a4b29e elementor-widget elementor-widget-heading\" data-id=\"7a4b29e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is a Parse Error?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-00c8434 elementor-widget elementor-widget-text-editor\" data-id=\"00c8434\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div>If the PHP code contains a syntax error, the PHP parser cannot interpret the code and stops working.<\/div><div>For example, a syntax error can be a forgotten quotation mark, a missing semicolon at the end of a line, missing brackets, or extra characters. This leads to a parse error because the code cannot be read and interpreted correctly by the PHP parser.<\/div><div class=\"content-section has-sticky-sidebar narrow\"><div class=\"content\"><div class=\"grid-12 equal-grid-spacing clearfix\"><div class=\"grid-08a grid-small-12\"><div class=\"grid-spacing-both\"><div class=\"content-sheet\"><section class=\"default\"><div class=\"sheet-block\"><p class=\"content-paragraph\">The corresponding error message does not necessarily display the exact line in which the error is located. In the following example, the trailing quotation mark is missing in line 2, but the parser will refer you to line 5 in the error message.<\/p><p class=\"content-paragraph\">The parser will display an error message similar to this one:<\/p><p class=\"content-paragraph\"><strong>Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in \/homepages\/12\/d1123465789\/htdocs\/index.php on line 5<\/strong><\/p><p class=\"content-paragraph\"><strong><span class=\"sc-warning\">Please note:<\/span><\/strong>\u00a0To avoid potential errors in missing or adding extra characters that should not be there, you can first put both sets of quotation marks or brackets, before you fill them with code. You can also use an editor that automatically enters the closing characters or highlights errors in the code for you.<\/p><\/div><\/section><\/div><\/div><\/div><\/div><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-926b684 elementor-widget elementor-widget-text-editor\" data-id=\"926b684\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>For more articles on this topic, please visit our <a href=\"https:\/\/www.casbay.com\/guide\/kb\/parser-error-message-the-virtual-path-common-footer-ascx-maps-to-another-application-which-is-not-allowed\">Knowledge Base- Shared Hosting<\/a><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Parser Error Message Parser Error Message: The virtual path \u2018\/common\/footer.ascx\u2019 maps to another application, which is not allowed. Issue: I am getting this error when I try to run my ASP.NET application on my Windows hosting server. Parser Error. Description: An error occurred during the parsing of a resource required to service this request. Please [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[117],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25954"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=25954"}],"version-history":[{"count":10,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25954\/revisions"}],"predecessor-version":[{"id":38233,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25954\/revisions\/38233"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=25954"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=25954"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=25954"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=25954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}