I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on to this new computer and tried to open a previously existing ASP.NET 3.5 solution that displayed perfectly fine on my previous computer (this previous computer used the Windows XP operating system, IIS6, and IE7 browser). However, in Windows7/IE8, I'm receiving the following 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: The file '/MasterPages/MainMaster.master' does not exist.
Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs"[code]....
when I tell you that the file '/MasterPages/MainMaster.master' file does, in fact, exist. In addition, this file's location is properly referenced in the code (as indicated in Line 1 above), and as I said, was displayed properly by the browser in my previous computer. It might also be helpful to note that I've tried to navigate to other pages in this site, and this browser displays the same message for any and all master pages located in my MasterPages folder. In summary, for some reason the browser cannot see any pages in the MasterPages folder. Can anybody tell me why I'm getting this error message when the folder and file is exactly where default.aspx says it is?
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.
When debugging my application, I m getting an application level error in global.asax file. The Server.GetLastError() reads "File does not exist." but thats it. No more details on the filename or the location where the code is trying to find a file. I commented out the application_error method, with a hope that the exception would be thrown when the debug the application, but no errors were thrown. How do i find the source of the error, cos I want to resolve this issue by either putting the file that the application is looking for or by completely removing the code that is referencing the file.
I have recently moved my project to VS2005 and I have trouble running all pages that have code behind. I set up a DEV sub domain so I could start with one page and work out what is going on.
I have got the page working locally but it won't work when I upload the page, dll and associated files to the web server (hosted for me).
The error seems simple enough, it's a parser error saying it can't find the code behind file (aspx.vb), but I can't for the life of me work out why, especially when it works locally.
Problem Page = [URL]
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: The file '/rss/rss_darts_players_cx.aspx.vb' does not exist.
I am facing a weird issue.I have a label on the front end but when I try to use it on the code-behind and run my code I obtain an error: Label does not exist in the current context! The label is shown in intellisense and was working earlier.My team mate had created a back up of the file and it stopped working after that.I deleted the back up files and tried but it doesn't seem to work.
The following is the code snippet of the front end as well as the code behind:
var kisaicerik = CKEDITOR.instances.<% = txtKisaIcerik.ClientID %>.getData();
I am taking this error: The name 'txtKisaIcerik' does not exist in the current context.I know txtkisaicerik is not in my page but it will.I want javascript error's shown in warning or not show.How can i do?
I have a drop down list inside a formview control's edititemtemplate and itemtemplate. The dropdown list is not bound to a data source. I am hard-coding the listitems for the drop down list. The formview is bound to a datasource. All I want to do is set the selectedvalue of the dropdown to what is in the record from the database. But I keep getting the error.
<asp:formview .....> <edititemtemplate> .... //some other controls like textboxes that are correctly bound and display the value from the datasource <asp:dropdownlist ID=myddl runat=server cssclass=myclass selectedvalue='<%# eval("mychoice") %>'> <asp:listitem value='0'>I dont know</asp:listitem> <asp:listitem value='1'>Yes</asp:listitem> <asp:listitem value='2'>No</asp:listitem> </asp:dropdownlist .....//rest of the edititem controls that display correctly. </edititemtemplate>
Just for kicks, I added a textbox and set it's value to eval("mychoice") as well and it correctly prints 0,1 or 2. So, I know that there is no illegal value coming back from the datasource. It seems as something with the timing of events - when the listitems are getting bound to the ddl. The error I get is - "myddl has a selectedvalue which is invalid because it does not exist in the list of items".
I've been searching Google for some answers and failed! Nothing has worked yet. Yes the Web.Sitemap is on the server.
Here is my web.config.
[Code]....
Here is my web.sitemap
[Code]....
I'm not sure if being hosted on a shared web server from aspnix or even having it in a sub domain may be the issue. This is my first time using the sitemap control.
I am working on a contact form. i am getting an error below, here is my code:
[Code]....
And here is the error i'm getting:
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: CS0103: The name 'txtEmail' does not exist in the current contextSource
Error:
[Code]....
Line 20: try Line 21: { Line 22: MailAddress fromAddress = new MailAddress(txtEmail.Text, txtFirstName.Text + " " + txtLastName.Text); Line 23: Line 24: // You can specify the host name or ipaddress of your server Source File: c:HostingSpacesartofmouldingartofmoulding.comwwwrootcontact.aspx.cs Line: 22
I noticed these errors while building my project (Image#1), but wasn't able to fix them until I declared all of them in the Code behind file (Image #2).It worked fine & I cleared all the errors in al the pages in Visual Studio, BUT the code wouldn't work right on the webpage (Image #3).With this block of Web Controls commented out, I get 3782 errors as you can see below (Image #1). When these blocks are Uncommented, that number goes down to 3755 (Image #2) and eventually clears all error messages.Can anyone assist with this annoyance?
[Code]....
[Code]....
Uncommented Code Error Message when you navigate to the page:
1) on a button click, new web page(New.aspx) should open and this new web page is populating data from an xml file and if this xml file doesnot find then it should redirect to another webpage ErrorPage.aspx.
I lifted some nice code to handle memberships, but I want to add a customer specific field. My issue is how to reference my class from the inline c# code.
[Code]....
The problem is the line csUserProperties.AddNew(intUserId, lngCustomerId); -- I get the error "The name 'csUserProperties' does not exist in the current context. I have <%@ Import Namespace="csUserProperties" %> at the top of the file. I also tried everything with no namespace in the class below.
I am working on my CMS project based on ASP.Net MVC2, I have implemented my VirtualPathProvider and VirtualFile for my master page, to use a master page in db.
It works as below: I indicate the MasterPageFile in the aspx/ascx file.
<%@ Page MasterPageFile="/Content.master"
Then override VirtualPathProvider.GetFile to load the master page from db, "/Content.master" is the key to search in the db.
Everything works fine for me, except
IF I click "Build Web Site" in the context menu in VS2010, I will get an error says "The file '/Content.master' does not exist."
My master page is stored in db and this error is normal, Is there a way that VS2010 can ignore this error?
I am looking into the BuildManager relative code, seems complicated.
I created a PageLoad event, so when the page opens it fills all the fields from a DataSource control. However, the problem is that if the DataSource control is empty (the row does not exist yet) it gives me an error. How do I check that if DataSource Control has a row of data or not?
I am getting a very strange error. i have declared a field send_outlook_appt. Even though intellisync is picking up the field name, I am getting an error saying that it does not exist in current context. My program runs as expected in dev. When I try to build/publish my website, that's when I get the error. Here is a snippet from my code.
public class arcTraining { private string connstring = ConfigurationManager.ConnectionStrings["xxxx"].ToString(); protected int _training_id; public int training_id { get { return _training_id; } set { _training_id = value; }
We are trying to deploy a Silverlight + WCF RIA Services application to an IIS 6 web server. When the silverlight application starts in the browser I get an error. Using Fiddler, I can see the real error:
EndpointNotFoundException The service Web-AuthenticationService.svc does not exist.
Sure enough, if I try to browse to the service in a browser, it is not found:
I have researched this error as much as I could, trying these things:
Making sure RIA Services assemblies are included in the site's bin folder.
Then, Making sure RIA Services is installed on the server.
Ensuring only 1 authentication scheme is being used (both in web config & in IIS site settings.) Triple checking that the config sections are present as explained here.
Update:
I manually added the svc file to the ClientBin folder and the problem was "resolved". I'm now onto a Timeout problem when the login query is called. Why do I have to add the svc file manually?