Ram Shankar Yadav's Blog!

My life's my passion!
posts - 172, comments - 566, trackbacks - 91

My Links

News


Microsoft Certified Professional Developer (MCPD) - .NET 2.0 Enterprise Application Development



Cheap Website Hosting - Free Domain

Twitter












Archives

Post Categories

Image Galleries

Blogs that I like most !

Sites that I like most !

Mappath in WCF

Today one of my friend got this problem when she tried to get local path of a WCF Service using Mappath. I searched in a google for a while and got a MSDN link saying,

“…using HostingEnvironment plus VirtualPathExtension is the right thing to map virtual paths to physical paths. This works fine for any IIS/WAS hosted services, even for Cassini….”

here : http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/a3c4841c-0617-4dc0-ada5-687b52075295

I hope it works!

If somebody has a better way please post a comment!

Happy Coding 8-)

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Tuesday, April 14, 2009 12:16 AM |

Feedback

Gravatar

# re: Mappath in WCF

How to access the xml files (which is in a folder) from the web.config file ??

I have XML files in my one of the project and I have another project in which I have to add the path of that XML Files in web.config file. When we use the path of our local machine its working fine. But for the deployment of the project in the cloud I need to use a relative path.

What I want to do is I set the copy to output directory property of the XML file’s to copy always and I want to add the relative path of the XML files in web.config file.

Will it work in the cloud? How to add the relative path of the file???

Is there any other way to access those Xml files in cloud ??

please help me.

Thanks in advance for your help..
10/12/2011 3:35 PM | kinjal
Gravatar

# re: Mappath in WCF

First I thought that my situation is the same but it still don't work.
11/8/2011 3:39 PM | art essays
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: