Publish to Azure web apps results in error Could not load file or assembly 'Telerik.Web.UI'

8 posts, 0 answers
  1. Theo
    Theo avatar
    19 posts
    Member since:
    Sep 2011

    Posted 05 Feb Link to this post

    Evening
    I have now spent 2 days trying all the logs I could find on the forum to resolve this.
    When I debug the site locally it all runs fine, but when I publish to my azure web apps location the default.aspx page gives me a  Could not load file or assembly 'Telerik.Web.UI'

    I have attached the website. It has no functionality, just a single default page with some controls.
    All I need is for it to open up when published to the web.

    Thank you
    Theo
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Feb Link to this post

    Hi,

    Thank you for contacting us.

    The error message points the assembly (Telerik.Web.UI.dll) cannot be found and loaded. Most probably it is searched in the server machine's GAC or it is not included in the Bin folder on deployment.

    Please test to publish in the local file system and verify the package includes all required assemblies in the Bin folder: http://docs.telerik.com/devtools/aspnet-ajax/deployment/deploying-a-telerik-enabled-webapplication Then test to host it in local IIS and run it. Finally deploy the files in Azure via copy/paste and let us if the error is still thrown.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Theo
    Theo avatar
    19 posts
    Member since:
    Sep 2011

    Posted 08 Feb Link to this post

    1. Your response did not satisfy my requirement.
    2. as per http://docs.telerik.com/devtools/aspnet-ajax/installation/included-assemblies all assemblies are included
    3. ensured through the property pages that the telerik libraries are are all BIN referenced and not GAC
    4. as per my original post, I already reported that it works locally
    5. screen shot attached to confirm all related dlls are in the bin folder uploaded via ftp in the site folder
    6. screen shot attached to confirm that the dlls are linked from the bin folder

    PLEASE REVIEW
    - web.config
    - Solution attached

    As I have stated, I have gone through the forums, google, online VS2013 help, Azure help, etc.
    The attached solution (web site) can be run as is, please assist in getting this running on the web as soon as possible. The client is supposed to register 450 users through this tool in the next couple of days and it is imperative that we get it working ASAP.

    Thank you
    Theo 
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 09 Feb Link to this post

    Hi,

    Thank you for the additional information provided.

    I checked the provided project and the web.config and they look correct, also the version is properly referenced. Therefore I would ask you test the following:

    1.On your dev machine remove all references to Telerik.We.UI;
    2.Copy Telerik.Web.UI assemblies in the Bin folder;
    3.Re-add references to Telerik.Web.UI by browsing the assemblies copied in the Bin folder;
    4.Test to deploy to Azure again following the respective article and let us know about the result: http://docs.telerik.com/devtools/aspnet-ajax/deployment/deploying-to-azure

    Meanwhile we will test the case locally deploying the project to Azure and will let you know about our findings.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Theo
    Theo avatar
    19 posts
    Member since:
    Sep 2011

    Posted 11 Feb Link to this post

    Morning
    So I got the site to show up using the azure web address.
    What I changed:
    1. Added all the assemblies that was in my solution Bin folder to the wwwroot\bin folder. So they are in my virtual directory\bin and wwwwroot\bin
    2. Created a Content folder in wwwroot and copied the css from my solution content folder. So theses are also in wwwroot\content and solution\content

    I am now trying to expand the site to use the webservice that is already in wwwroot that our distributed desktop app uses. The website now needs to access it as well to perform the same actions, but online.
    Can't figure out if I should use a new webservice reference or a normal reference that refers to the webservice dll within the solution and also where to place the webservice dll. Suspect I am going to replicate it as well into root\bin and sol\bin.
  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 12 Feb Link to this post

    Hello,

    Indeed it seems that replicating the webservice dll and adding a new reference would be the better approach in this case.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Theo
    Theo avatar
    19 posts
    Member since:
    Sep 2011

    Posted 15 Feb Link to this post

    Morning

    Finally got everything working. Couple of gotchas

    1. Install the Azure SDK for VS
    2. When using Azure WebApps, create a FTP user and password through the portal dashboard to enable you to publish from VS into Azure without issues.
    3. Create a virtual folder through the Azure Portal and make sure about Spelling and Case, should match your web site folder in wwwroot EXaCtLy
    4. Switch on compilation debug="true" in your web.config while debugging, remember to set to false when done
    5. Add <customErrors mode="Off"/> to the system.web element, remember to comment out when done debugging
    6. Not all libraries are included into the bin folder automatically when adding a new references. You will need to publish your bin folder to azure, run the site and then see which dll is missing (customerrors are off so you get .net error feedback). Add the library locally to your bin folder, you don't need to add it as reference in your project, just copy and paste the dll into the bin folder in windows explorer.
    7. Make sure you use the correct dll versions (i.e. 45 for .net 4.5 targeting)
    8. In the azure web portal, you can switch on verbose error logging (web apps - settings - diagnostic logs) and then trace errors through the supplied ftp folder

    At least I got the bin folder moved into my website folder and is not being shared in the wwwroot anymore as well as my content and images folders.

    Please make this last post publicly available so that the community can see it and hopefully assist someone. 

    Thank you for the assistance.
    Regards
    Theo
  9. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 15 Feb Link to this post

    Hello Theo,

    As per your request the ticket is now public, so other people who encounter similar problems can take advantage of it.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017