Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 18, 2008 03:05 PM by levalencia
Sep 18, 2008 12:30 PM|LINK
I have an asp.net project that references several other class library projects in the same solution. I can publish my asp.net project to IIS and everything works okay.
Now I have added a deployment project . To this project I have added to output of the asp.net project, and the content of the project.
When I run the msi generated by the deployment project it installs the web application in IIS.
However when I then go to browse to the application I get the following error:
Server Error in '/CAPSetup' Application.
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 MYSite.NewWebLayer.MasterPage'.
Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs"
Line 2: Inherits="MYSite.NewWebLayer.MasterPage" %>
Line 3: <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Source File: /CAPSetup/MasterPage.Master Line: 1
Any ideas what might be wrong? I have searched the net and so far have not found any solution.
Thanks very much
Sep 18, 2008 01:18 PM|LINK
Check wheather the specified assembly is there in your bin folder, or just go to the public assemblies folder located at c drive(in the hosted machine), and check the assembly is ther or not.
are you using ajax or somethign in your project. ?
Sep 18, 2008 01:29 PM|LINK
Try Installing the system.web.extensions assemby first on the GACr .
Or check if you master page has spelling errors
Sep 18, 2008 02:56 PM|LINK
Thank you both for your reply.
The assembly containing all the types from my web project is located in the root folder of my website, not in the Bin folder. if I copy it into the Bin folder it works.
I built my msi using the deployment project in VS I would have thought that it would have placed the assemblies in the correct place.
Sep 18, 2008 03:05 PM|LINK
There you go, you cant put your assemblies on the root folder of the website, at least you use some specific settings in the configuration file saying where those assemblies are.
But that doesnt make any sense