Click here to Skip to main content
14,733,541 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made a website which is running in visual studio by PRESSING F5. I have saved my project folder in
as C:\inetpub\wwwroot\DashBoard

The folders inside the C:\inetpub\wwwroot\DashBoard directory are

DashBoard //a directory
DashBoard_BusinessLogic //a directory
DashBoard_DataLayer //a directory

Inside each directory

are the .aspx, aspx.cs, .aspx.cs.designer.cs files.

The above 3 directories are referenced to each other in the visual studio solution.

The default.aspx file is in the below directory.

Now I want to run the website using IIS7 on Windows 7.

I am first trying to run it in the server itself using the adress

Step 1. I have set the application pool as Classic.Net AppPool
Step 2. I have set the physical path to C:\inetpub\wwwroot\DashBoard.
Step 3. I have enable directory browsing.
Step 4. typed localhost in the browser.

It lists the directories inside

When I click on the first directory, the following is displayed.

Parser Error Message: Could not load type 'DashBoard.Login'.

Source Error:

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DashBoard.Login" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

Source File: /DashBoard/default.aspx    Line: 1

Can anyone help?
I do not want directory listing but want to open the page default.aspx in the directory
C:\inetpub\wwwroot\DashBoard\DashBoard when I enter localhost in the browser.

If I disable directory browsing, the error displayed says to enable directory browsing.

If I set the physical path to C:\inetpub\wwwroot\DashBoard\DashBoard the following error comes.

Parser Error Message: Could not load file or assembly 'DashBoard' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Source Error:

Line 57:                 <add assembly="System.EnterpriseServices, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 58:                 <add assembly="System.Web.Mobile, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 59:                 <add assembly="*"/>
Line 60:                 <add assembly="System.Runtime.Serialization, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Line 61:                 <add assembly="System.IdentityModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>

Source File: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\web.config    Line: 59

Assembly Load Trace: The following information can be helpful to determine why the assembly 'DashBoard' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Updated 15-Apr-14 21:51pm

1 solution

Member 9493720 17-May-14 2:23am
it was a perfect reply. thanks. Your to the point reply impressed me and it was there in my mind since long to appreciate you.
thatraja 18-May-14 0:36am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900