Error: System.Net. WebException: The Remote Server Returned an Error: (401) Unauthorized (Opening Revit®)
Issue
Upon opening Revit with the Planting F/X plugin installed, you saw an error message similar to the following:
An error occurred when attempting to fetch a request.
Error: System.Net. WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.WebClient.DownloadDatalnternal(Uri address,
WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address) at LandFXRevitUtil.Util.WCDownloadString(String url, String authtoken)
WebException: "The remote server returned an error: (401)
Unauthorized."
StackTrace:
System.Net. WebClient { private bytel]
DownloadDataInternal(System.Uri address,
System.Net.WebRequest& request) {...}} in '' Ln O
System.Net. WebClient { public string
DownloadString(System.Uri address) {...}} in '''' Ln 0
LandFXRevitUtil.Util { public static string
WCDownloadString(string url, string authToken) {... }} in "'' Ln0"
Cause
This error can result from either:
- A failure to download a file from landfx.com, or
- A folder permissions issue
Solution
1. Follow our steps to uninstall the Planting F/X for Revit plugin.
2. Follow our steps to download and install the Planting F/X for Revit Plugin.
Revit® is a restricted trademark of Autodesk®.