Last post Feb 05, 2013 02:31 PM by Enamul Kh-MSFT
Jan 29, 2013 03:13 PM|DMoody007|LINK
Been searching, reading and trying forums suggestions all day without any luck. Think I have something stupid in my setup and could use a second set of eyes to help identify the problem.
When I try to load the start up page (default.aspx), I get a server error, parser error, could not load type "AKSMReporting._default"
I have tried changing CodeBehind to CodeFile
Removing Compilers and Assemblies from Web Config
Deleting the BIN folder, recreating and rebuilding all DLL's
Tried moving the project to different sub-directories due to the folder restrictions of ASPX
Here is what I have as it stands right now.
In IIS, I have a web which is external. Within that site, we created a virtual directory. So when you go to
www.mycompany.com\virtualdirectory it launches my default.aspx page.
The primary website is in a directory called "d:\ExternalSite". Within that directory is the web.config and bin. In the bin is two projects and the DLL's for each. Within the ExternalSite, I have created a directory called "Exclusions" and it contains
all my ASPX files. I have also created a directory "d:\Exclusions" and put all the ASPX files in it. When I said I tried moving the project, I pointed IIS to each directory and tried to load the web page and it failed each time.
The initial external site works file so copying in the second project has not caused an issue. The first line of the ASPX page that fails reads, where AKSMReporting is the namespace for the project. The other namespace is externalsite.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb" Inherits="AKSMReporting._default" %>
Is my issue that I have two projects in the Bin folder? Didn't read anything that said I couldn't as long as defined in page. Or, is my exclusion directory within the externalsite directory causing the folder issue with ASPX?
Any ideas would be appreciated.
Jan 29, 2013 04:06 PM|DMoody007|LINK
On a whim, I tried to combine both projects into one.
I imported all the AKSMReporting pages and code into the "ExternalSite" project. I recompiled and reposted. The original site still works fine. When I go to my reporting, it fails with the same error.
Now I am really stumped. : (
Feb 05, 2013 02:31 PM|Enamul Kh-MSFT|LINK
Convert your virtual directory into an IIS Application and try it out.
Not sure why you "have two projects in the Bin folder". Bin is typically for dlls and executables.