Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules missing a section declaration #11

Open
yaffeweb opened this issue Apr 3, 2018 · 18 comments
Open

Modules missing a section declaration #11

yaffeweb opened this issue Apr 3, 2018 · 18 comments

Comments

@yaffeweb
Copy link

yaffeweb commented Apr 3, 2018

Installed .Net 4.5
Ran the phpmanagerv1.5.0
Get Error 1001. Filename: \?\C:\Windows\system32\inetsrv\config\administration.config
Error: The configuration section 'modules' cannot be read because it is missing a section declaration.

Running on Server 2008R2 IIS7

Not really a IIS kind of person so I have no idea if this is because the installer is looking for PHP somewhere that it's not, which it is in the C:\Program Files\PHP. If this is a .NET problem because there are 1500 versions of .NET so when you state that it works with 4.5 is that 4.5.1 or 4.5.2 ect ect..

Any light you can shed on this would be helpful.

@sachink23
Copy link

I am facing the same problem.

@RonaldCarter
Copy link
Owner

Sorry about not replying earlier

This version was built for server 2016 with IIS7 while you are using an earlier IIS version,
Their is a IIS7 sub branch that would have a working MSI for use.

I am investigating moving back to IIS7 web.administration for all builds just need more testing

@lextm
Copy link

lextm commented Aug 1, 2018

The cause of the exception is simple. The installer you built use .NET Framework 4.x to load the custom action, and on IIS 7.x machine such a way will lead to exceptions.

The only way to fix is to let the installer run the same custom action on .NET Framework 3.5, then the exception would disappear.

Update: Sounds like it is impossible to choose .NET Framework version in Custom Actions, https://blogs.msdn.microsoft.com/astebner/2005/03/10/dont-use-managed-code-to-write-your-custom-actions/ So other workarounds need to be used.

Update: Fixed in latest installers, https://ci.appveyor.com/project/lextm/phpmanager/build/artifacts .

@RonaldCarter
Copy link
Owner

I am not sure of your solution to the problem as this then generates more then one MSI.
Would it be possible to insert these MSIs into a master MSI with a simple check script on IIS version and Windows architecture on run on which one installs?

@lextm
Copy link

lextm commented Aug 2, 2018

@RonaldCarter That's not something Visual Studio Setup Project supports. I don't plan to create a master MSI yet, but that is clearly a better way to simplify installation.

@lextm
Copy link

lextm commented Aug 3, 2018

@RonaldCarter I am able to ship a single MSI package now in 2.0 Beta 2.

@deltaforce
Copy link

was this ever solved, as I am also having this issue on Windows server 2012. Cannot install php manager either via WPI or manually from MSI

@lextm
Copy link

lextm commented May 3, 2019

@deltaforce what MSI did you use? I am confident that the ones created by me do not have this issue, https://github.com/phpmanager/phpmanager/releases

@deltaforce
Copy link

I tried via Web platform installer and used the download from the Microsoft site

@lextm
Copy link

lextm commented May 3, 2019

@deltaforce those are extremely old installers and they won't work as expected if you read my comment in Aug 2018 above.

You can either,

  • Uninstall .NET Framework 4.x and then use that old installers.
  • Or simply use PHP Manager 2.x installers maintained by me.

@deltaforce
Copy link

ok thanks, I did not realise these were different versions from the official.

@deltaforce
Copy link

deltaforce commented May 4, 2019

ok I downloaded your version, but still getting the error
phpmanager

@lextm
Copy link

lextm commented May 4, 2019

Make sure you go to Control Panel | Programs to uninstall the previous version.

Mine should call "PHP Manager 2 for IIS" when you install it.

@deltaforce
Copy link

There is no previous version installed as the install failed with the same above error.

@lextm
Copy link

lextm commented May 7, 2019

@deltaforce All installers I created come with SHA1 hash values, https://github.com/phpmanager/phpmanager/releases

Which one did you use and what is the hash code?

@deltaforce
Copy link

PHPManagerForIIS_x64.msi - FB2D89986D6E467EBB10C2090AB7D475F9369268

@deltaforce
Copy link

nevermind, I rebooted and that fixed it.

@ghost
Copy link

ghost commented May 4, 2020

The cause of the exception is simple. The installer you built use .NET Framework 4.x to load the custom action, and on IIS 7.x machine such a way will lead to exceptions.
The only way to fix is to let the installer run the same custom action on .NET Framework 3.5, then the exception would disappear.
Update: Sounds like it is impossible to choose .NET Framework version in Custom Actions, https://blogs.msdn.microsoft.com/astebner/2005/03/10/dont-use-managed-code-to-write-your-custom-actions/ So other workarounds need to be used.


Update: Fixed in latest installers, https://ci.appveyor.com/project/lextm/phpmanager/build/artifacts .
Your (Microsoft) Link for the Fix worked - Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants