ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Opening Word Document in Browser Error: could not find a path in ASP.Net<p>Make sure Temp folder&nbsp;is exist in the&nbsp;projects root folder.</p>https://www.aspforums.net:443/Threads/175979/Opening-Word-Document-in-Browser-Error-could-not-find-a-path-in-ASPNet/https://www.aspforums.net:443/Threads/175979/Opening-Word-Document-in-Browser-Error-could-not-find-a-path-in-ASPNet/Mon, 18 Mar 2019 01:54:43 GMTOpening Word Document in Browser Error: could not find a path in ASP.Net<p>Yes you need to create the Temp folder.</p> <p>Else you need to add the below code for Create folder if&nbsp;not present.</p> <p><strong><span style="text-decoration: underline;">C#</span></strong></p> <pre class="brush: csharp">//If Directory not present, create it. if (!Directory.Exists(Server.MapPath(&#34;~/Temp/&#34;))) { Directory.CreateDirectory(Server.MapPath(&#34;~/Temp/&#34;)); }</pre> <p><strong><span style="text-decoration: underline;">VB.Net</span></strong></p> <pre class="brush: vb">&#39;If Directory not present, create it. If Not Directory.Exists(Server.MapPath(&#34;~/Temp/&#34;)) Then Directory.CreateDirectory(Server.MapPath(&#34;~/Temp/&#34;)) End If</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/175979/Opening-Word-Document-in-Browser-Error-could-not-find-a-path-in-ASPNet/https://www.aspforums.net:443/Threads/175979/Opening-Word-Document-in-Browser-Error-could-not-find-a-path-in-ASPNet/Mon, 18 Mar 2019 02:55:06 GMT