Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made a ASP.net website which is running in visual studio by PRESSING F5. I have saved my project folder in
C:\inetpub\wwwroot
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
DashBoard.sln
web.config


Inside each directory
C:\inetpub\wwwroot\DashBoard\DashBoard
C:\inetpub\wwwroot\DashBoard\DashBoard_BusinessLogic
C:\inetpub\wwwroot\DashBoard\DashBoard_DataLayer

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.
C:\inetpub\wwwroot\DashBoard\DashBoard


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
http://localhost

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
C:\inetpub\wwwroot\DashBoard.

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



XML
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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.


XML
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=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 58:                 <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 59:                 <add assembly="*"/>
Line 60:                 <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Line 61:                 <add assembly="System.IdentityModel, Version=3.0.0.0, 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].
Posted
Updated 15-Apr-14 20:51pm
v2

1 solution

 
Share this answer
 
Comments
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    
Welcome

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