When I transfer my project to a server, I now get this error message. What does it mean and how do I fix it?
Server Error in '/HD' 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 'HD._Default'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="HD._Default" %>
Line 2:
Line 3: <%@ Register Assembly="FormControls" Namespace="FormControls" TagPrefix="FC" %>
Source File: /helpdeskform/HD/default.aspx Line: 1
Make sure that whatever directory you placed it in is also marked as an application. Looking at your code, you've uploaded into a folder HD under the folder helpdeskform. If HD is not an application then IIS will check to see if helpdeskform is. If helpdeskform
is an application, then it is looking at the bin folder there for your dlls.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
Marked as answer by bbcompent1 on Apr 27, 2012 04:08 PM
I double checked and helpdeskform is marked as a virtual directory according to IIS. There was a different version of that project in the folder and the it worked before.
A virtual directory is not an application. Make sure that it has an application specified to it as the two items often confuse people as the symbols look the same but a virtual directory is not given it's own application space nor is it the root of an application.
Is HD an application itself? If so then you need to mark the HD directory an application in order to use the bin directory under hd.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
HD is a newly created project, so probably yes. I looked online regarding marking something as an application and it says it gives you that option on web deploy. However, no such option appears for me when right clicking the project, only 'Build Deployment
Package' and that performs a task automatically.
Bushwick
Member
139 Points
190 Posts
Project transfer server error
Feb 29, 2012 07:53 PM|LINK
When I transfer my project to a server, I now get this error message. What does it mean and how do I fix it?
bbcompent1
All-Star
32982 Points
8508 Posts
Moderator
Re: Project transfer server error
Feb 29, 2012 07:56 PM|LINK
That should be CodePage, not CodeBehind. CodeBehind is C#, not VB.NET :)
bbcompent1
All-Star
32982 Points
8508 Posts
Moderator
Re: Project transfer server error
Feb 29, 2012 07:58 PM|LINK
Correction, CodeFile...sorry about that. Looks like this:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="MyCoolPage.aspx.vb" Inherits="SMIBcoverage" MasterPageFile="~/MyMaster.master" Title="Cool Webpage" %>markfitzme
Star
14413 Points
2227 Posts
Re: Project transfer server error
Feb 29, 2012 07:59 PM|LINK
Make sure that whatever directory you placed it in is also marked as an application. Looking at your code, you've uploaded into a folder HD under the folder helpdeskform. If HD is not an application then IIS will check to see if helpdeskform is. If helpdeskform is an application, then it is looking at the bin folder there for your dlls.
Bushwick
Member
139 Points
190 Posts
Re: Project transfer server error
Mar 01, 2012 05:31 PM|LINK
I double checked and helpdeskform is marked as a virtual directory according to IIS. There was a different version of that project in the folder and the it worked before.
markfitzme
Star
14413 Points
2227 Posts
Re: Project transfer server error
Mar 01, 2012 07:16 PM|LINK
A virtual directory is not an application. Make sure that it has an application specified to it as the two items often confuse people as the symbols look the same but a virtual directory is not given it's own application space nor is it the root of an application. Is HD an application itself? If so then you need to mark the HD directory an application in order to use the bin directory under hd.
Bushwick
Member
139 Points
190 Posts
Re: Project transfer server error
Mar 01, 2012 08:24 PM|LINK
HD is a newly created project, so probably yes. I looked online regarding marking something as an application and it says it gives you that option on web deploy. However, no such option appears for me when right clicking the project, only 'Build Deployment Package' and that performs a task automatically.