Reputation: 383
In vs2008 (C#):
I have :
For testing my service with created client, I call my client form in my main proj and after getting the input requirement of service by this form, I start making response of service by calling my service contract method .
In this service I need to create a proper connection string with received parameter for request and I need my application startup path (D:\myProj.dll
) to get access to an exe file. Unfortunately after using different kinds of codes that return this path, exactly at point of calling my service, I get another paths I don't need (myproj
, bin\debug
or c:\programfiles\visual studio9\common7\IDE
)
Can you help me ?
For additional info I have to say that I added this path by a command to post-build event of my service library and client.
Please help me to get access to this path (startup path of my project -> D:\myProj.dll
)
Thank you in advance
Upvotes: 0
Views: 3727