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

[Solved] Can not publish website with new controls

1 Answer 177 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ell
Top achievements
Rank 1
ell asked on 05 Jun 2008, 08:55 AM
I have a highly frustrating problem that I am sure other developers must be experiencing as well.

I changed to the new RadControls for ASP.NET Ajax and tried publishing a website yesterday. To my amazement the site would not publish.

(At this point I should add that I have successfully published dozens of sites containing the old RadControls with no problem).

Back to the drawing board. Test simple Hello World website written in VS 2005. It publishes to the internet fine. Add some microsoft buttons, drop down boxes etc and it still publishes fine.

Add a splitter, 2 panes and a split bar and it runs fine in VS 2005 but will not publish. (The correct items were added to the bin when I put the splitter on the page and the correct reference is on the aspx page. Hence it runs fine in VS2005).

Why will the site not publish to the web? I added a RadScript manager to the page and hit the button on the smart tag that registers the new line in the web config, as Telerik advises when using the new controls. Still won't publish!

Any help?

Elliot

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 06 Jun 2008, 03:01 PM
Hi Elliot,

I'm just posting a resume here so that it helps the other guys who could have the same trouble (please, give John my best regards about the idea).

In essence, the problem comes, because basically the server GAC does not have the Telerik.Charting installed (the assembly is added to the GAC by the RadControls installer, but often the installer is not run on the server).

When a developer creates a new website and drags a RadControl to the page, a reference gets added to the two assemblies - a BIN reference to the Telerik.Web.UI assembly and a GAC reference to the Telerik.Charting assembly (adding the <add assembly="Telerik.Charting..." /> line to the web.config file).

When publishing to the server, the Telerik.Charting reference cannot be resolved and throws an error.

There are two solutions for the problem:
  1. BIN-deployment:
    Remove the GAC reference to the Telerik.Charting assembly and instead add a BIN-one (by either using the Browse tab of the Add Reference dialog, or directly copying the assembly to the application Bin folder);
  2. GAC-deployment:
    Install the Telerik.Charting assembly to the live server GAC (note that this should be done each time the RadControls which the application uses are updated) and use the GAC reference.
The references are determined from the WebSite Property Pages.

Cheers,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
ell
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or