Building Web Services in VS 2005
Why are web services (.asmx) files placed in the app_code folder by default, as opposed to regular .aspx files?
+1
cwius
source
to share
2 answers
Usually asmx files are more like proxies for business objects and business objects are not owned by website projects. The web service classes should be hosted in a different business logic project and not in a view. aspx and aspx.cs, on the other hand, are additional files that are placed correctly within the website project, since their job is to represent the data.
0
Diadistis
source
to share
When you work with website projects, this is the style that Visual Studio uses. This does not apply to web application projects.
0
Mehrdad afshari
source
to share