direcotry as application in IIS (Could not load type)

G

Guest

Hello,

Where to start? Well, I was creating a little back office for a website. That website is in fact a virtual directory in an existing website. So, I have this:

-- WEBSITE1
|---- [Some Files & Directories]
|---- WEBSITE2 (Virtual Directory -- dirname: "koea")
|------ [Some Files & Directories]
|------ BackOffice

When the development of the back office was about finished, I wanted to add FormsAuthentication via web.config. Therefore I needed to set the "BackOffice" directory as an application in IIS.

From that moment I get this error when trying to reach the back office:

---------------------------------------------------------------
Server Error in '/koea/BackOffice' Application.

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'LS.Ebrug.Web.BackOffice.Login'.
---------------------------------------------------------------

The error goes away when I make "backoffice" a regular directory again, but then I can't use FormsAuthentication anymore.

I have tried to rebuild the entire solution, but that didn't work out. Does someone has an idea how to solve this issue? Any help would be appreciated!

Thanks in advance,
Thomas
 
J

John Saunders

Thomas D. said:
Hello,

Where to start? Well, I was creating a little back office for a website.
That website is in fact a virtual directory in an existing website. So, I
have this:
-- WEBSITE1
|---- [Some Files & Directories]
|---- WEBSITE2 (Virtual Directory -- dirname: "koea")
|------ [Some Files & Directories]
|------ BackOffice

When the development of the back office was about finished, I wanted to
add FormsAuthentication via web.config. Therefore I needed to set the
"BackOffice" directory as an application in IIS.
From that moment I get this error when trying to reach the back office:
to service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'LS.Ebrug.Web.BackOffice.Login'.
but then I can't use FormsAuthentication anymore.
I have tried to rebuild the entire solution, but that didn't work out.
Does someone has an idea how to solve this issue? Any help would be
appreciated!

Where should it be finding the type 'LS.Ebrug.Web.BackOffice.Login'? Is the
assembly containing that type in the bin subdirectory of your new
application?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top