Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 251 posts 1169 karma points
    Oct 06, 2014 @ 11:38
    James
    0

    Error When Installing a Package

    Hi All,

    I recently tried to install Dialogue to my Umbraco site. I had to change the request length maximums in the web config file.

     

    I am now getting the following error afte rhitting install:

    Could not upload file
    System.Exception: Error unpacking extension... ---> System.IO.FileNotFoundException: Could not find file 'J:\7 Test Projects\Forum\Forum\App_Data\87935fc8-26a3-4140-96aa-ebf58940ce79\package.xml'. 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) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at umbraco.cms.businesslogic.packager.Installer.LoadConfig(String tempDir) at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) --- End of inner exception stack trace --- at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) at umbraco.presentation.developer.packages.Installer.uploadFile(Object sender, EventArgs e)

     

    Any ideas?

     

    Kind regards,

     

    James.

     

     

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 06, 2014 @ 18:01
    Dennis Aaen
    0

    Hi James,

    I have just tried to install the Dialogue on a fresh Umbraco 7.1.6, I have no problem at all. My setup is looking like this:

    Umbraco 7.1.6

    SQL Server Express, (I have tried to use a SQL CE database, but the package doesen´t sems to support this type of database yet, maybe it comes on later version)

    http://our.umbraco.org//projects/collaboration/dialogue

    One thing I did before the installation of the dialogue package was to set the maxRequestLength on the httpRuntime. Like this:

    <httpRuntime requestValidationMode="2.0" enableVersionHeader="false" maxRequestLength="52428800" targetFramework="4.5" />

    James, maybe you could try setup a similar setup like I have, and see if the installation of the package goes better this time.

    Hope this helps,

    /Dennis

  • James 251 posts 1169 karma points
    Oct 06, 2014 @ 19:49
    James
    0

    Hi Dennis,

     

    Thanks for your response. I will certainly give this a try now.

     

    No matter what I do i cant get it working whilst using SQL CE.

     

    Thanks I will post back the results.

  • James 251 posts 1169 karma points
    Oct 06, 2014 @ 20:29
    James
    0

    I installed on my laptop using VS Express 2013

     

    - Project is ASP.NET WEB APPLICATION

    - Project was Empty

    -Installed Umbraco from Nuget

    - Set up using SQL Server 2012 on remote host

    - Set Httpruntime = maxRequestLength="52428800"

    - Then added:

    <security>

          <requestFiltering>

            <requestLimits maxAllowedContentLength="1073741824" />

          </requestFiltering>

        </security>

    Inside System.webserver

     

    I then tried to install the package from developer section using local package:

     

    System.Exception: Error unpacking extension... ---> System.IO.FileNotFoundException: Could not find file 'D:\5 Test Projects\TestForum\TestForum\App_Data\24b68e42-0e6b-4021-93f9-ac65abf673fa\package.xml'. 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) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at umbraco.cms.businesslogic.packager.Installer.LoadConfig(String tempDir) at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) --- End of inner exception stack trace --- at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) at umbraco.presentation.developer.packages.Installer.uploadFile(Object sender, EventArgs e)

    This was the exception thrown.

     

    So frustrating looking forward to tinkering with Dialogue! 

     

    Any ideas?


  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 06, 2014 @ 21:39
    Dennis Aaen
    0

    Hi James,

    Sad to hear that.

    The way I do it is as follow.

    First I setup an SQL Server Express, and If you are using a SQL Server (not express) I think it should be the same.

    Then I install the Umbraco using NuGet, by following this installation guide. http://our.umbraco.org/documentation/installation/install-umbraco-with-nuget I didn't use the Package manager console option, but I have used the first part of the installation guide (click through the menus and search).

    After the installation is done, I add the maxRequestLength="52428800" to the httpRun, so it looks like this:

    <httpRuntime requestValidationMode="2.0" enableVersionHeader="false" maxRequestLength="52428800" targetFramework="4.5" />

    When is done and save then I run my installation i VS Express 2013, by Ctrl + F5, In the installation guide I choose customize, and chosee SQL Server and fill in the information, after its done, I install the Dialogue as a local pacakge.

    So the only thing I see that is differnt from my setup to your is that you are using a SQL Server and not an Express version of SQL Server, and you add this to your config file also, what if you try to setup a new installation where you dont add this to the webconfig.

    <security>
        <requestFiltering>
           <requestLimits maxAllowedContentLength="1073741824" />
        </requestFiltering>
    </security>

    Hope this helps,

    /Dennis

  • James 251 posts 1169 karma points
    Oct 07, 2014 @ 10:06
    James
    0

    Hello Dennis,

     

    After setting up my installation exactly as you did (but with SQL Server 2012).

     

    I now go to load the package and get the following error:

     

    The request filtering module is configured to deny a request that exceeds the request content length.

     

    I have modified the HttpRuntime Tag as you did. The Dialogue Beta file is 46.6MB for me.

     

    At least it isnt a could not be found file exception.

     

    Any last ideas?

     

  • James 251 posts 1169 karma points
    Oct 07, 2014 @ 10:11
    James
    0

    It says:

    Things you can try:

    • Verify the configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting in the applicationhost.config or web.config file.

    This is where I made the webserver tag change in the first post.

    But after this i got the error that was shown.

    I am not doing anythign fundamentaly different when installing.

     

    Strange.

     

  • James 251 posts 1169 karma points
    Oct 07, 2014 @ 10:19
    James
    0

    I can confirm that i am able to install packages from the repository.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 07, 2014 @ 10:37
    Dennis Aaen
    0

    Hi James,

    Sounds odd, I will try to help you as much as I can.

    How did you install the package. When I download the Dialogue package from here http://our.umbraco.org//projects/collaboration/dialogue it´s size is 3,04 MB.

    I just click the green download button on the top corner, on this page http://our.umbraco.org//projects/collaboration/dialogue

    And when I install the package I go to the developer section then the package folder, and choose install local package, Then I click browse, and choose the Dialogue_Beta.zip, so I load the zip file.

    Hope this helps,

    /Dennis

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 07, 2014 @ 11:00
    Dennis Aaen
    100

    Hi James,

    I think I found what goes wrong here it is correct if I assume that you are downloading the zip file from here: https://github.com/leen3o/Dialogue

    You need to download the package that you find here: http://our.umbraco.org//projects/collaboration/dialogue, and at the moment it is only the beta that is available.

    Hope this helps,

    /Dennis

  • James 251 posts 1169 karma points
    Oct 07, 2014 @ 11:09
    James
    0

    Brilliant thanks very much Dennis.

    That has worked perfectly. Always boils down to somethign simple.

     

    I am wondering though, why is one file 46MB and the actual package 3MB?

     

    Thanks again for your help much appreciated.

     

    James.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 07, 2014 @ 11:21
    Dennis Aaen
    0

    Hi James,

    The reason why the file that you can see at the https://github.com/leen3o/Dialogue. has a size on 46 mb, is becuase that is the source code for the package, so when Lee make something new to the package he working on the source code.

    The reason  you can download the package, at github, is so you can contribute to the package, with pull requests, so if you discover a bug, and you know how to solve it your self, then you can download the source code, make the change and make a pull request. Here a some documentation on pull request for the Umbraco core project. http://our.umbraco.org/contribute/working-with-the-umbraco-source

    So when Lee has done something new and want´s to release a new version he compiles the code, and then you will get the zip file on 3MB.

    Hope this makes sense.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft