Build your professional network on facebook via our app Go to app
 
<< Prev  7 of 12 in Topic  Next >>
Topic : ASP.NET with C# Programming
  Rate : 
Posted in Community :

.Net Champions

 
Industry : IT Services
Functional Area : Application Software
Keywords : c# asp.net
Activity: Question posted: 03 11 2010 01:39:16 +0000, 2 answers, 177 views, last activity 07 06 2010 20:18:08 +0000
 
Share
 
 
 
 

I created a Class Library project to create a DLL File to use and make use of this DLL file using Add Reference and I got this file inside the Bin Folder along with a .PDB File in website solution explorer. But when I use the functions of this DLL, it works but when I debugging it with F11 option it shows the Code written for that function or I say shows the complete code of that DLL. How can I restrict to myself to use functions of DLL but code of that functions not visible to me while debugging with F11?

 
2 Answers for "About DLL"
  Answered by     Himmat Singh, Software Developer, Banana Outsourcing Pvt. Ltd.  | 03 12 2010 01:26:50 +0000
[ Delete ]
[ Edit ]
Not Rated

First of all, when we are sure about that now the time has come to release this DLL to others where they can only use it not able to see the code behind the functions which they use in their pages. For that we need to build the class library project in release mode , on successful build you get a release folder in both Bin and Object folder of your class library project but you need to take the DLL file of Bin folder but you need to take care to that it also makes a .PDB file. A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program. A PDB file is created when you build your class library project.

So you need to take the DLL file in a separate  folder and whenever you require to use that DLL you simply need to reference that DLL from that separate folder but you can still found that while debugging with F11 you see the code of your DLL file and its because your DLL maintains a link your class library project but it only happen when you referencing that DLL at your local machine where you build your class library project and if you use it at any other machine then DLL won't able to link to code and during Debugging it simply pass through the function without going into the code of that function.......

  Answered by     Suhas Chitade, Senior Consultant, S1 Services (India)  | 03 11 2010 04:46:29 +0000
[ Delete ]
[ Edit ]
Not Rated

you must have build your DLL in debug mode in VS. Please build it in Release mode and then copy the same DLL from release folder under bin.

Also when you are referencing the DLL in another project, please check that you havent' added the project reference of class library.

Regards,

Suhas

 
Answer "About DLL"
Rate:
Submit
 Found the question "About DLL"  interesting?  Refer to your connections and communities  
Leading Recruitment Firm
  • Create a confidential Career Profile and Resume/C.V. online
  • Get advice for planning their career and for marketing of experience and skills
  • Maximize awareness of and access to the best career opportunities
Viewers also viewed
PHP vs ASP.NET
 
0 referals 10 arguments, 3008 views
For all those who work in IT field,whatever one works currently on is either because this was...
 
1 referals 10 arguments, 199 views
Though media vs Self
 
157 referals 105 arguments, 3090 views
more...  
Unanswered Questions (30)
I have to work out cost for a project happening in stages, i have calculated it for current...
 
0 referals 0 answers, 0 views
I NEED UR SERVICE 99044099094
 
1 referals 0 answers, 0 views
I am researching on a eco friendly and low cost method for road design. 1. I have searched that...
 
0 referals 0 answers, 0 views
More From Author
Somebody tell me the entire procedure to get certified for Microsoft's MCPD?
No. I don't think so because It is very similar to a glass fill half of water and some says that the glass is half empty and others says that the glass is half full so its up to you to take these helpful features to make yourself dependent or make...
more...