954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

System.Windows.Forms.Application.StartupPath Not working in WPF

i have one window application developed in VS 2005 which is running successfully on client side,My question is that now i want to convert this window application in WPF browser based application, so what should i keep in mind to convert this application to wpf applicaton,
One more thing that in Window Application i have used one mdb file which contain database login detail, so on application startup this file is accessed using System.Windows.Forms.Application.StartupPath+@"/filename.mdb", now im just want to test only whether can i login to my application using WPF or not this time it give me this error "Request for the permission of type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral" (hope some one understand my question)

So if any one who understand my question than please show me some way to develop my application on WPF

satiss7pwr
Newbie Poster
18 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 
dim path= System.IO.Directory.GetCurrentDirectory()
dim path = System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

thanks for giving me anser, n its also working now.
Now can u tell me how to access this broser based wpf application from client machine?
Thanks again

satiss7pwr
Newbie Poster
18 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: