Ehsan Akbar
Ehsan Akbar

Reputation: 7299

Define ashx file in MVC doesn't work

I define a ashx file in MVC4 project in content folder so it doesn't work ?!!

So i have several questions?

1- Can we define ashx file in MVC or it isn't possible?

2-If we can define how can we do that?

Best regards

Upvotes: 1

Views: 2265

Answers (1)

Erik A. Brandstadmoen
Erik A. Brandstadmoen

Reputation: 10608

You can definitely use an .ashx file in MVC. An MVC app is an ASP.NET Web app. You should add the .ashx in the root folder (not the content folder), or in a normal subfolder, as you would in an ordinary ASP.NET web project.

Upvotes: 2

Related Questions