Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
16002 Points
2731 Posts
Feb 25, 2012 02:09 PM|LINK
Hi
string paths = @"C:\inetpub\wwwroot\List\Data\" + TextBox1.Text + ".docx" ;
his is not a valid filepath.
try to put the file inside the web application folder, for example create a folder called WordDocs inside the place where you deployed your ASP.NET application then get the file path like this:
string filePath = Server.MapthPath("~/WordDocs/stopwords.doc");
Thnaks...
abiruban
All-Star
16002 Points
2731 Posts
Re: Opening a word document on IIS
Feb 25, 2012 02:09 PM|LINK
Hi
string paths = @"C:\inetpub\wwwroot\List\Data\" + TextBox1.Text + ".docx" ;his is not a valid filepath.
try to put the file inside the web application folder, for example create a folder called WordDocs inside the place where you deployed your ASP.NET application then get the file path like this:
***DON'T FORGET TO CLICK “MARK AS ANSWER” ON THE POST IF HELPED YOU.