VS 2010 - Parser Error In Subdirectory
Jul 7, 2011
I need to add a small training page to an existing website structure. I created a new project and published it to a subdirectory of the website, but when I run it, the .aspx pages throw a parser error because it's looking for the codebehind files in root/bin instead of root/subdirectory/bin. How can I make it look in the right folder?
View 1 Replies
Similar Messages:
Apr 27, 2010
I have deployed my website to a shared hosting provider and since deployment, it shows the error "XML Parser Error:no element found" from time to time. I have checked my error log and I find issues such as "Object reference not set to an instance of the object" but the weird thing is if I visit the SAME page after a while, it loads!
I have checked with my hosting provider and they told me the below is what they can see on their side:
Exception information:
Exception type: HttpException
Exception message: Could not load type 'Test2.GlobalAsax'.
I have checked my global.asax and the interits are all correct. I have tried:
a) Deleting the webapplication dlls and rebuilding - didn't work
b) Deleting the global.asax and adding a new one and then rebuild. - didn't work
c) Changing the class name of global.asax.vb and updating at inherits at global.asax, and rebuild - didn't work
d) Change the Asp.Net version to an older version and change back to original version - didn't work
e) Debugged my application countless times locally (for the same page) but while connecting to the DB on my hosting provider - no issues found
My webhosting provider is saying there is an error in my code, but if there is a bug, shouldn't it always show the same error?
I also noticed that when the XML parser error is shown, if I were to go back to say Google.com and then to my website's main page, and then to the Page with error, the page loads!!
I am seriously running out of ideas what could have caused this issue. I have also conducted a ping test to my website and I am getting some time outs, will that cause my page to not load from time to time?
View 1 Replies
Oct 7, 2010
I'm having two web.config files, one in my root directory(where all web pages of a project are found) and other in admin directory(that is located in root directory). But whenever I try to write <authentication>...</authentication> tag in web.cofig file that is in admin directory, I face the following error on building my project. It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
View 1 Replies
Oct 14, 2010
I'm having two web.config files, one in my root directory(where all web pages of a project are found) and other in admin directory(that is located in root directory). But whenever I try to write [Code].... tag in web.cofig file that is in admin directory, I face the following error on building my project
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
View 3 Replies
Dec 27, 2010
We use a build tool, TeamCity to do our builds. I have a directory locally with javascript files that works fine, but when its built and pushed to our test server and I try to get to any files in the directory I get: 401 - Unauthorized: Access is denied due to invalid credentials.
I've changed permissions several time on the server (2008/IIS 7) and still the problem persists. I have other directories that have javascripts and when I put the path into the browser for them I get the source.
View 2 Replies
Aug 25, 2010
I have created an application which runs fine in VS2010.Now i am trying to host that application using inetmgr.When i try to browse the page from inetmgr content view then i get the "Parser Error Message: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified".If i browse the page from VS i am able to do it.I am not able to host the app. may be the reason is the above stated error.
View 1 Replies
Feb 12, 2011
I created subdirectory Store in IIS 7 root page and converted it to application and added .NET 3.5 mvc musicstore sample to it. App pool is classic and isapi dll handler is added for request path *
Typing localhost/Store returns error below. How to run mvcmusicstore sample from subdirectory or from root directory using same code base?
Server Error in '/Store' Application.
Parser Error
Description:
An error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'System.Web.Mvc.ViewPage<IEnumerable<Business.Toode>>'.
Source Error:
[Code]....
Source File: /Store/Views/Home/Index.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
View 4 Replies
Sep 2, 2010
The screenshot pretty much says it all - that's all the relevant code and the only error.
View 7 Replies
Aug 10, 2010
I've seen similar posts but have been unable to resolve my error. When browsing the site from IIS I get the following error- a .master file does not exist. I can see it in the directory and everything works fine when running out of VS 2010.
Parser Error
Description:
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.
Parser Error Message: The file '/AMA.Master' does not exist.
Source Error:
[Code]....
View 1 Replies
Feb 3, 2011
I'm a newb to ASP.NET and I made an app in VS2010 using NET 4.0 (Working all fine in debug mode)
I tried to host my app @ aspspider and I'm getting the following error:Parser ErrorDescription: 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.Parser Error Message: Could not load type 'AuthStealerPanel._Default'.Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AuthStealerPanel._Default" %>
I also tried to rebuild the .dll and upload it to the /bin/ and application's root.
View 1 Replies
Mar 2, 2010
I have built an application in ASP.NET 3.5 framework and it is working fine on localhost but when i am uploading it on my server the page gives an error on loading "Parser Error Message: Could not load type 'Default'." <%@ Page Language="C#" AutoEventWireup="true" Debug="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
View 2 Replies
Nov 28, 2010
I am having a very odd issue for my website [URL]. I am seeing strange characters in the home page. visit the site [URL] to view the details The site works perfectly in local system The site is done asp 2.0 and sql server 2005. I have made the customer error mode to Off to view the issues. But the page is coming in odd characters.
View 5 Replies
Apr 23, 2010
I am very new to ASP .net. I need to create web application with ASP .net using VB. I have created a project and create web forms with Visual Studio 2005 (ASP .net version 2.0). And it was working fine on local host. However, I got an error after I published the forms on our hosting site. The error code was as following:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Login.aspx.vb" Inherits="KocaWebSite.Login" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I have tried to find the answers on this forum as well. But I couldn't find clear answer.
View 7 Replies
Oct 27, 2010
I'm getting the typical "Parser Error - the file '/virtualdir/Shared/Controls/filename.ascx.cs' does not exist..." error message on an @Register directive statement in one of my .master page files that references the same file. Note, this is working just fine on my old PC, where I have the same solution running on a Windows XP SP3, IIS 5.1 machine, developed with VS 2008 Team System. I'm now trying to set up my development environment on a new PC, running Windows 7, IIS 7, VS 2008 Team System.
The thing is this, and probably where I think I need help, the specific file it's saying has an error is a file that I added in one project (which was developed using VB.NET) as a linked file from another project (which was developed using C#) in the old PC. The solution in the new PC builds fine and runs fine (home page comes up, login works, brings up next page) until it tries to access a page that uses a master file that references the user control added as a linked file on my old PC. Note, the project and file that the linked file references has been added and exists on the new PC in the very same directory structure as the old PC.
View 2 Replies
Aug 19, 2010
Im running a web application in visual studio 2008..i got this error when particular page was loaded..
help me to proceed....
Server Error in '/PSS.NET' Application.
Parser Error
Description: 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.
Parser Error Message: Ambiguous match found.
Source Error:
<%@ Register TagPrefix="uc1" TagName="CtrlButtonControl" Src="../../WebControls/CtrlButtonControl.ascx" %>
<%@ Page language="c#" Codebehind="SPSearchFromToDtStorLocMatTypRank.aspx.cs" AutoEventWireup="false" Inherits="Sdi.Pss.Reports.SP.SPSearchFromToDtStorLocMatTypRank" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Source File: /PSS.NET/Reports/SP/SPSearchFromToDtStorLocMatTypRank.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
View 1 Replies
Jul 23, 2010
I am integrating third party Web Page Management CMS solution into my web application. I am getting the following error when I try to recompile:
Parser Error Message: The type 'oboutSolutions.ManageWebsite' is ambiguous: it could come from assembly 'C:VS2010 ProjectsTestCMSCMSinoboutSolutions.DLL' or from assembly 'C:VS2010 ProjectsTestCMSCMSinCMS.DLL'. Please specify the assembly explicitly in the type name.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageWebsite.aspx.cs" Inherits="oboutSolutions.ManageWebsite" %>
Line 2: <%@ Register TagPrefix="obout" Namespace="OboutInc.Editor" Assembly="obout_Editor" %>
Line 3: <%@ Register TagPrefix="obout" Namespace="Obout.Interface" Assembly="obout_Interface" %>
View 5 Replies
Dec 8, 2010
i made a web site by asp.net and it's work perfectly on locahost . But when I move it to major host , I see belw error ?
View 5 Replies
Apr 3, 2012
I keep getting this error message after upgrading an application from .net framework 3.5sp1 to 4.
The thing is, the block is well formed!
Code:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="~/Default.aspx.vb"" Title="DRL Manufacturing" Inherits="PrototipoJTSConsultasInventario._Default" %>
View 6 Replies
Feb 20, 2013
How to save webpage as pdf... Am using asp.net 4.0 and oracle 10g. and code behind language as vb.net.I have one button. that converts the web page to pdf.It shows Could not find file 'C:....' in htmlparser.Parse(sr) error...
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=psno.pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()
[code].....
View 1 Replies
May 20, 2010
I have build an web application in Visual studio 2005. Its working fine in the loal. But When I upload the same web application in the remote server, It produces the error,Parser Error Message: Could not load type '_Default'. I have tried the rebuild solution, rebuild website, and rebuild project. But the error remains same.If any one came accross similer error and resolved the issue, Please help me to solve this issue.
View 1 Replies
Mar 2, 2011
i created a site called birthday_calendar in vwd 2008.. it runs in my local system correctly, but when i host this site, it showing error"Could not load type: birthday_calendar".. what is the wrong with this? I just copied the website files to hosting server. I dont have any bin folder in my website containing dll files.. i googled this error, results are showing that, the website should be compiled and bin folder should be in correct place.
View 1 Replies
Sep 24, 2010
My web service works fine on my local machine but when i put it on the server it throw this error:
Parser Error Message: Could not create type 'Service'.
I don't know how to fix this.
View 1 Replies
Jul 24, 2010
I have created a web application project in vs2005. This is a simple website which has one form and a master page. It runs fine in my local machine but when I publish it to my hosting server it shows error in master page i.e.Parser Error Message: Could not load type 'WebApplication1.Site1'. Site1 is my master page.
The line on which the error is occuring is
[Code]....
View 5 Replies
May 19, 2010
i am trying to deploy the asp.net web application on windows 7 professional
i was getting error at <authentication mode="Windows"/>
if i commented the windows authentaction i get below error
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: 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.
Parser Error Message: Could not load type 'crmpark.Login'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Login.aspx
i have aslo commented
[Code]...
View 3 Replies
Aug 22, 2010
Server Error in '/' Application.
Parser Error
Description: 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.
Parser Error Message: Could not load type 'wamsilverlight.Web.Wam'.
Source Error: [Code]....
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927
All of the following have been tried over and over again:
1.) Delete all existing .dlls
2.) Delete MasterPage File and recreate it.
3.) Delete MasterPage perform a clean rebuild then recreate
4.) Delete web.config file and recreate
5.) Delete web.config file perform a clean rebuild then recreate
6.) Destroy the entire project and start from scratch
7.) Before any of these steps were taken the project was built with Ctrl+Shift+B and again with F5
8.) Checked all of the namespaces to make sure nothing was conflicting
9.) Checked IIS7 to see which .NET Framework was being used and it is all listed under 2.0 and later at one point even trying to swithc it over to .NET 4.0
The problem is rather persistant, annoying, and frustrating and I would truly love to acquire some input on correcting this matter,issue occured out of the blue one minute working the next minute it errors out.
View 3 Replies