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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:28:59+00:00 2026-06-14T06:28:59+00:00

I have a dll named JIMS.Printing.dll which is placed inside the Reporting folder of

  • 0

I have a dll named JIMS.Printing.dll which is placed inside the Reporting folder of the main application JIMS.exe.

But I am getting an error when calling some files inside the Templates folder inside JIMS.Printing.dll code inside of Reporting which running JIMS.exe

JIMS.exe
--------->Reporting
------------------->JIMS.Printing.dll
------------------->Templates
-----------------------------> Files

Code:

string _templatePath = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(JIMS.Printing.PrintInvoice)).Location), "Templates");

Code from JIMS.Printing.dll

JIMS.exe looking for Files inside JIMS.exe Path\Templates\file,
But actually the file is in JIMS.Printing.dll Path\Templates\files

  • 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-06-14T06:29:01+00:00Added an answer on June 14, 2026 at 6:29 am

    You can use:

    Assembly.GetExecutingAssembly().Location
    

    which will give you the path of the executing assembly then use:

    System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
    

    which will give the containing folder.

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

Sidebar

Related Questions

I have an application (exe) that uses some strongly named dll's. If I understand
I have a DLL which outpus data to a stream. But it adds a
I have a DLL which cause to an error when I run the application.
I have a C# application program, let's call it App.exe. It references a DLL
I have a web-site named CCESD set up in IIS7; my application root folder
Consider the following scenario: I have two assemblies: Assembly named A.dll located in folder
I have DLL and application that will call some function in this dll. For
I have a .dll I'm trying to embed as a resource inside an executable.
I have a dll in C# which returns a class object. DLL code: Person.cs:
I have a DLL generated from Visual Studio 2010, but I need to link

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.