I have plenty of handlers in my project, but now none of them work, they stopped work after I created a virtual directory in my application pool (godaddy servers).

I had to create a virtual directory because I had some configurations to make in the web.config file, (full trust), and for that I needed to have the project in a virtual directory, and it solved.

What can I do to solve this problem:

%@ WebHandler Language="C#" CodeBehind="login.ashx.cs" 
   Class=".handlers.login" %>

Error:

Could not create type 'ProjectSeller.com.handlers.login'.

有帮助吗?

解决方案

The solution is pretty simple, i had to place the handlers in an App_Code folder inside the virtual directory.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top