adding a web form aspx page to WCF project
i need to build a project that has a WCF .svc
service and some web pages in the same c# project. Is there any pr开发者_JS百科oblem in doing this? if I create a project of type WCF project using Visual studio 2010
, it lets me add web forms
to it. Once I publish to IIS, i should be able to hit the .svc url and .aspx urls
seamlessly under the same root url.
Any problem in doing this in the long run?
No, no problems. This ought to work.
If you want to use MVC then it's probably better to start from that template and add SVC components.
Do think about authentication and authorization upfront.
精彩评论