This is a migrated thread and some comments may be shown as answers.

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

8 Answers 911 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Theo
Top achievements
Rank 2
Theo asked on 05 Feb 2016, 07:48 PM
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

8 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Feb 2016, 08:55 AM
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
0
Theo
Top achievements
Rank 2
answered on 08 Feb 2016, 09:45 AM
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 
0
Pavlina
Telerik team
answered on 09 Feb 2016, 02:46 PM
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
0
Theo
Top achievements
Rank 2
answered on 12 Feb 2016, 05:09 AM
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.
0
Pavlina
Telerik team
answered on 12 Feb 2016, 05:37 PM
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
0
Theo
Top achievements
Rank 2
answered on 15 Feb 2016, 06:06 AM
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
0
Pavlina
Telerik team
answered on 15 Feb 2016, 11:45 AM
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
0
Vinod
Top achievements
Rank 1
answered on 21 Jul 2017, 06:09 AM
can we publish in azure webapps using kendoui trail in my project for my POC(internal)
Tags
General Discussions
Asked by
Theo
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Theo
Top achievements
Rank 2
Vinod
Top achievements
Rank 1
Share this question
or