I'm trying to deploy a InfoPath form to Sharepoint via Visual Studio, but I'm getting this error:
Error occurred in deployment step ‘Add Solution': The XSN cannot be used on the server.
I’m publishing the form to a network location. Any ideas?
I'm trying to deploy a InfoPath form to Sharepoint via Visual Studio, but I'm getting this error:
Error occurred in deployment step ‘Add Solution': The XSN cannot be used on the server.
I’m publishing the form to a network location. Any ideas?
In most cases this error relates to the InfoPath form not being on the network share prior to deploying your solution
So in order to get rid of this error deploy the InfoPath form to your network share. After this replace the form in your Project file with the one from your network share.
Make sure you run an elevated instance of Visual Studio or Powershell (run as Administrator) and then deploy your solution again. The error should not occur again.