rhythmagency / formulate

An advanced form builder for Umbraco.
MIT License
92 stars 50 forks source link

Umbraco 7.6.5: Error install Formulate #105

Closed biapar closed 6 years ago

biapar commented 7 years ago

I tried to install on Umbraco 7.6.5 but the system give the error:

Error loading package action 'Formulate.TransformXmlFile' for package Formulate
System.IO.FileNotFoundException: Could not find file 'C:\Hosting\www.xcdfdfdf.xzs\App_Plugins\formulate\Transforms\dashboard.config.install.xdt'.
File name: 'C:\Hosting\www.xcdfdfdf.xzs\App_Plugins\formulate\Transforms\dashboard.config.install.xdt'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
   at Microsoft.Web.XmlTransform.XmlFileInfoDocument.LoadFromFileName(String filename)
   at Microsoft.Web.XmlTransform.XmlFileInfoDocument.Load(String filename)
   at Microsoft.Web.XmlTransform.XmlTransformation..ctor(String transform, Boolean isTransformAFile, IXmlTransformationLogger logger)
   at formulate.app.Install.Package_Actions.TransformXmlFile.Transform(XmlNode xmlData, Boolean install) in C:\Projects\formulate\src\formulate.app\Install\Package_Actions\TransformXmlFile.cs:line 119
   at formulate.app.Install.Package_Actions.TransformXmlFile.Execute(String packageName, XmlNode xmlData) in C:\Projects\formulate\src\formulate.app\Install\Package_Actions\TransformXmlFile.cs:line 65
   at umbraco.cms.businesslogic.packager.PackageAction.RunPackageAction(String packageName, String actionAlias, XmlNode actionXml)
Nicholas-Westby commented 7 years ago

I will give it a try when I get home, but my guess is this is some sort of permission issue on your machine (i.e., I expect I will be unable to reproduce the issue). IIRC, the transforms haven't been significantly modified in a good while.

In the meantime, can you answer these questions:

Nicholas-Westby commented 7 years ago

Additional question:

biapar commented 7 years ago

Hi,

Nicholas-Westby commented 7 years ago

Wasn't able to look into this yet. Will try again tomorrow/this weekend.

Nicholas-Westby commented 7 years ago

I wasn't able to reproduce your error. I was able to install the latest Formulate (1.3.5) on the latest Umbraco (7.6.5) without issue:

formulate

My guess is this is a permission issue or something else peculiar about your setup. By chance, is your Umbraco install in a subfolder under your main domain rather than at the root of your domain?

biapar commented 7 years ago

Sigh. It's installed in the root.

Nicholas-Westby commented 7 years ago

Have you tried removing all remnants of the install (perhaps it got interrupted for some reason) and trying to install again?

garyhammett commented 6 years ago

Looks like you may need to give the IIS user permission to C:\windows\temp.

That fixed that install issue for me.

Nicholas-Westby commented 6 years ago

@garyhammett I've never had to do that, and I can't think of anything specific to Formulate that would use that folder (other than the Umbraco installer, though I believe that uses the ~/App_Data/TEMP folder). How'd you come to the conclusion that you should give IIS permission to that folder?

garyhammett commented 6 years ago

Hi @Nicholas-Westby,

For me this wasn't tied to your extention. I couldn't install any package. I ran it through IIS locally and the moment I added this permission it installed.

Like @biapar I checked logs and had the same issue. I'm using the latest version as of today. It was also a fresh laptop so didn't have some of these things applied to it yet.

Nicholas-Westby commented 6 years ago

Closing due to inactivity.