• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

IIS 7 Error

I am trying to open a website on the localhost using IIS7 (Server 2008) and I am getting the message below. I am using .NetFramework v2. Does anyone know what I can do to fix this?
Please let me know if I can provide some more details for you.


Server Error in '/' 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 'Simulator._Default'.

Source Error:


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Simulator._Default" %>
Line 2:  
Line 3:  <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>
 

Source File: /BuyDesign_Prod/Simulator/default.aspx    Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
0
Winsoup
Asked:
Winsoup
  • 2
1 Solution
 
Randy DownsOWNERCommented:
Maybe something like this?
http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication

None of the above answers worked for me. I fixed my error by changing the web project's output path. I had had it set to bin\debug but the web project doesn't work unless the output path is set to simply "bin"
0
 
WinsoupAuthor Commented:
I've looked at that. I'm not really sure what it's telling me to do. Is this something I can do in IIS or something I have to manually change a file to do?
0
 
Randy DownsOWNERCommented:
This is something you do in the application. Are you using Visual Studio? If so this might help.

http://msdn.microsoft.com/en-us/library/ms165410(v=vs.80).aspx

Visual C# and Visual J# Projects
To change the build output directory:
On the Project menu, click Properties.
Click the Build tab.
Click the Browse button next to the Output path box and select a new build output directory.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now