Parser Error Message:

Discussion in 'Getting started' started by ytlunicorn, Sep 30, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am getting the following error when I try to run the C# project that I just ftped after publishing. It works fine on my local machine. How do I fix this?
    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 'food._Default'.
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="food._Default" %>

    The link to the site: http://msslsoccer.com/food/default.aspx

    The dll are in the bin directory.
     
  2. The url was completely dead @ 20:17 GMT. Try again.
     
  3. What does that mean?
     
  4. my guess: food._Default has an unneeded '.' in it, should be food_Default
     
  5. It means that when I requested http://msslsoccer.com/food/default.aspx on 30/09@20:17GMT there was no response; the url was dead. It's now in a state where it's responding to requests and I can see the exception thrown you originally described.

    From here it looks like a missing assembly that needs to be uploaded.
     
  6. Here what I did. I built the application, published it, added locally to my internet apps. Tested it in a browser and it worked fine. I then ftped all the files in the publish directory to the server and it does not work. Where else do I need to copy files from?
     
  7. the food directory contains: web.config; default, aspx; in directory called bin
    Bin has food.pdb and food.dll
     
  8. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    The error message means your application cannot properly reference the class "food._Default" either in the code behind file or the custom assembly you wrote. I took a quick look at your account and noticed that the /food directory has a /bin folder. You can mark this directory as a web application or you can move the assemblies in the root /bin folder to resolve the problem.
     
  9. The link you gave me was the issue. It was not assigned as a iis application.

    Thanks
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page