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.
--------------------------------------------------------------------------------
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 MYSite.NewWebLayer.MasterPage'.
Source Error:
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.
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. ?
Thanks and Regards
Nimesh Prabhakar
Mark this post as "ANSWER", if it helped you..
Marked as answer by ewren on Sep 18, 2008 03:00 PM
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.
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.
ewren
Member
6 Points
3 Posts
Problem running site after deploying using an msi
Sep 18, 2008 12:30 PM|LINK
Hi,
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.
--------------------------------------------------------------------------------
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 MYSite.NewWebLayer.MasterPage'.
Source Error:
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
nimeshprabha...
Participant
1898 Points
525 Posts
Re: Problem running site after deploying using an msi
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. ?
Nimesh Prabhakar
Mark this post as "ANSWER", if it helped you..
levalencia
Member
677 Points
340 Posts
Re: Problem running site after deploying using an msi
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
ewren
Member
6 Points
3 Posts
Re: Problem running site after deploying using an msi
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.
THanks
levalencia
Member
677 Points
340 Posts
Re: Problem running site after deploying using an msi
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
Thx