473,473 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.dll startup path

Hi there,

I develop a small .dll file.
When I deploy the dll I also attach a xsd file in the same folder.
I try to load the xsd file from the client code (window form) but I don't
know how to start it give me the wrong path.

I am not sure which namespace can give me the method to get the path.
Please advice.

Thank,
kids
Nov 16 '05 #1
2 2530
Hi Kids,

In simple terms, this will give you the base directory your application was
started from:

AppDomain.CurrentDomain.BaseDirectory

Joe
--
http://www.csharp-station.com

"kids_pro" <ki******@yahoo.com> wrote in message
news:e4**************@TK2MSFTNGP10.phx.gbl...
Hi there,

I develop a small .dll file.
When I deploy the dll I also attach a xsd file in the same folder.
I try to load the xsd file from the client code (window form) but I don't
know how to start it give me the wrong path.

I am not sure which namespace can give me the method to get the path.
Please advice.

Thank,
kids

Nov 16 '05 #2
Hi,

The better way is to find any of your DLL types and then
find its assembly location e.g.:

Type type=type(MyDllType);
string dllPath=type.Assembly.Location;

It will work even if you register your DLL.

Cheers!

Marcin

kids_pro wrote:
Hi there,

I develop a small .dll file.
When I deploy the dll I also attach a xsd file in the same folder.
I try to load the xsd file from the client code (window form) but I don't
know how to start it give me the wrong path.

I am not sure which namespace can give me the method to get the path.
Please advice.

Thank,
kids

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Neil Benn | last post by:
Hello, I'm looking at a small app which would need a very quick startup time for the Python interpreter. It doesn't do much (copying and caching of files, no GUI) but I need the Python...
4
by: acemann7 | last post by:
Windows 2000 udb v 7.2 Got the latest fixpak 13 Applied it. Still can't get a single java sp to run. I used to get reason "2"... now reason "0" - reason 0 is not even documented. I point...
5
by: JJ | last post by:
Hi, Using the app.config scenario and I added a Connectionstring to appSettings area in xml. In the value string I have the datasource equal to a absolute path on my dev machine. Now how can I...
0
by: Ariel Gimenez | last post by:
Hi, Does anyone know how to get the startup path of an assembly? this is my scenario: have a project with that generates a component wom is referenced in my web project this component needs to...
4
by: Larry | last post by:
I have a Perl script using DBD::DB2, that runs during system startup on a Solaris system. The script is working fine during startup on many machines, except on one machine it fails complaining...
3
by: New user | last post by:
How can I programmatically start a windows application when windows loads. Can I get the code to do that, I'd rather do it with code than with the setup & deployment wizard. I'd also like to be...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
12
by: rdemyan via AccessMonster.com | last post by:
I'm having a complicated linking problem. Before I get into the particulars, I'd like to know how Access links to the back-end file at startup, AFTER I've distributed my application to the client....
4
JodiPhillips
by: JodiPhillips | last post by:
MS Access2000 Hi everyone, I've searched the forums for an answer to this question and nothing jumps out at me. When a database is opened I want to automatically run code (at start-up) that...
10
by: kimiraikkonen | last post by:
Hi there, I figured out, for the first execution for any .NET-powered app such as VB.NET or C#, it takes 7-8 seconds to see main form of "any" application even the application consists of a single...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.