Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 08:24 PM by Bushwick
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?
Server Error in '/HD' 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 'HD._Default'.
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="HD._Default" %>
Line 3: <%@ Register Assembly="FormControls" Namespace="FormControls" TagPrefix="FC" %>
Source File: /helpdeskform/HD/default.aspx Line: 1
Feb 29, 2012 07:56 PM|LINK
That should be CodePage, not CodeBehind. CodeBehind is C#, not VB.NET :)
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" %>
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.
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.
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.
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.