Click here to Skip to main content
15,887,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
First of all, I am trying to deploy a web application, without virtual directory. Yes...I have no other option but to try this due to some non-tehnical constraints.
Now, I have developed an ASP.NET 3.5 Web application, which works fine on my local ASP.NET Development Web Server. Then, I published the application to the actual webserver using the VS2008 Publish... option. When I got some error messages related to web.config, I removed the corresponding items from the web.config.
When I can access the page but the code inside the page doesn't really work. When I open the Default.aspx, which is directly under the website, I keep on getting this error:
Compiler Error Message: CS0246: The type or namespace name 'DynamicLoadControl' could not be found (are you missing a using directive or an assembly reference?)

This DynamicLoadControl is a class that I have developed and is present in \App_Code\DynamicLoadControl.cs file (in the same namespace).

Also, for debugging I am publishing entire project folder and I've something like this in the .aspx file:
<%@ Page Language="C#" AutoEventWireup="true" src="Default.aspx.cs" Inherits="MyNamespace.Default" %>
I am using src instead of CodeBehind (only for debugging).

I have searched a lot and tried everything except creating a virtual directory. First of all, is it possible to have asp.net 3.5 website without virtual directory. If so, what is it required to get rid of this problem?
Thanks.
Posted
Updated 2-Nov-10 8:02am
v2

1 solution

copy your entire website into the wwwroot and then

first of all see all your folders are in the same hierarchary ie only one bin , one app_code , one app_data folders under the default website

or else move your newly created dll's etc into the default bin and your code file into app_code etc and remaining files and folders copy them as is into the wwwroot folder

now it should work if you get any other errors now you can fix them basing on the error you get.

post your exceptions/ errors for further suggestions.
 
Share this answer
 

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