简体   繁体   中英

.ashx handler doesn't work

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'.

解决方案非常简单,我必须将处理程序放置在虚拟目录内的App_Code文件夹中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM