Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4597918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:19:31+00:00 2026-05-21T23:19:31+00:00

First, I have two project working on: ASP.NET and Silverlight Both uses a class

  • 0

First, I have two project working on: ASP.NET and Silverlight
Both uses a class (QueryServiceClass in a library class project) that have query methods to access the database with ADO.NET, manipulating the database. (open connection to database, add customer, edit, update etc.)

So I stored them into a C# Class library and it shared with ASP.Net and Silverlight.
ASP.NET project and Silverlight’s Web project will have a reference to the QueryServiceClass project.

But then if I publish the ASP.NET/Silverlight Project, the QueryServiceClass project’s dll file should also be published ( the dll should be locate in the server side at this point).

Because the QueryServiceClass’s method has to be public so ASP.NET/Silverlight project can use it.
So someone might able to use that dll to access the database? Would that be safe?

======
Edit

In the Silverlight’s Web Project, I am using WCF inhert the QueryServiceClass and an Interface to access the database, so on Silverlight Client, it will access the database through the WCF.
I am more concern on someone might take the dll file from the server and give to someone.

Thanks in advance.

King

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:19:32+00:00Added an answer on May 21, 2026 at 11:19 pm

    You can make your members internal instead of public and modify the AssemblyInfo.cs class and make internals visible to specific asseblies.

    [assembly: InternalsVisibleTo("OtherLib.Domain.Stuff")]
    

    This doesn’t keep someone from disassembling your DLL to get the info, but will keep people from using your dll in their code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with two different web sites in asp.net. In the first project
I'm working on an asp.net-mvc project. I have an Items table and a Tags
Hello I have two project in a .NET 4.0 framework visual studio solution. First
I have a class library that I created using the Class Library project template.
In Visual C# 2008, I have a solution with two projects. First project contains
I am working on a asp.net project having a three-layered implementation. DataAccess Layer is
I'm working on a project that's a .NET extension to a rather large classic
I am working on project with picker view. I have two components in it.
I'm working on project that uses a tab bar at the bottom to flip
I have two strings: the first's value is catdog and the second's is got.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.