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

  • SEARCH
  • Home
  • 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 .Net 3.5 class library project that I've migrated to use Visual
I have a class library that contains a valid connectionString inside the app.config. Inside
I have CruiseControl.NET configured to monitor 10+ .NET projects. All of these projects (web
I have a Windows Form project that I would like to migrate toward a
My ASP.NET MVC 2 application uses Entity Framework 4.0 for the data model. Following
We have a Visual Studio 2010 solution that contains several C# projects in accordance
I'm trying to use WCF Data Service with Subsonic, but ran into this error
I'm always referencing DLLs in my C# code, but they have remained somewhat of
I'm using a 3rd party library which requires a static method to be invoked
Along with: An attempt was made to load a program with an incorrect format

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.