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 574527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:50:26+00:00 2026-05-13T13:50:26+00:00

I have a C#.net class library that references a folder and the files in

  • 0

I have a C#.net class library that references a folder and the files in it.

I’ve added this library as a reference in my ASP.NET web project and I can’t figure out how i’m supposed to get the path to this folder.

Anyone know? Or would you have to pass the Server.MapPath in from the website?

Cheeres

  • 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-13T13:50:26+00:00Added an answer on May 13, 2026 at 1:50 pm

    Assemblies usually have no idea where the caller is running from; which is what you are after. The reasoning is that sometimes assemblies are gac’d, sometimes they are in the same bin folder, etc.

    The web project should get it’s own path then pass that to the assembly.

    OR you could have the path in the web.config, and let the assembly read the path information from there.

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

Sidebar

Related Questions

I have a solution with an ASP.NET project and a Class library project where
I have a .NET class library containing a class with a method that performs
I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on
I have built a number of asp.net servercontrols into a class library, & I
I have some ASP.NET web services which all share a common helper class they
I have an ASP.net Web Site Project (.net 3.5). Currently all of the non-code
I have a class library written in .Net that I would like to make
In Visual Studio 2010, I have project A (asp.net application). Project A references project
I have created a class library in VB .NET. Some code in the library
if i have a .net 1.1 class that inherits from DictionaryBase and i am

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.