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.