Click here to Skip to main content
11,703,632 members (65,204 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET WCF

I am developing services using WCF. I have created separate new WCF application therefore I can host/deploy it on IIS(Independant on any site).

I have to do some database operation in these services therefore I will require SQLHelper class(As I am using SQL helper for SQL DB interfacing). BUT I can not add App_Code folder in this application. I have manually added App_Code folder BUT I am not getting reference of these classes in my service.

Please let me know the solution as I am new to WCF.

Posted 27-Sep-12 0:02am
Edited 27-Sep-12 0:29am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If the SQL Helper Class is a seperate Project. Then Just add the reference of the Project to you WCF Application Project. Or Add the SQL Helper Project Dll as Reference to the WCF Project. You do not have to create an App_Code folder. For WCF Application all the binaries goes to the bin folder itself automatically when you deploy it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 570
1 OriginalGriff 510
2 Sergey Alexandrovich Kryukov 430
3 Andy Lanng 249
4 CPallini 195
0 OriginalGriff 8,744
1 Sergey Alexandrovich Kryukov 7,747
2 CPallini 5,107
3 Maciej Los 4,716
4 Mika Wendelius 3,606

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100