Ajax toolKit? script manager? problems with web.conf and refrences...

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/8/2010 3:33:00 AM
Gravatar
Total Posts 6

Ajax toolKit? script manager? problems with web.conf and refrences...

Hi,

I installed Ver 2-3-5-1-mssql-net35 and I think I'm a bit lost with web.config file.

I installed the portal @ IXWebHosting on a new sub-domain.

I can run AJAX from another sub domain with no problems, but I'm getting all kinds of error with mojo.

So far I've been running between two error messages. (custom error is off)

1)  Could not load type 'AjaxControlToolkit.ToolkitScriptManager'. and the line in red is: <add tagType="System.Web.UI.ScriptManager" mappedTagType="AjaxControlToolkit.ToolkitScriptManager" />

2) Could not load file or assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The module was expected to contain an assembly manifest.

I have no problem running Ajax on any other site that I have, So my guess is that it is not related to the hosting company.

Now, I know I'm doing something wrong but I have no idea what..... :)

Can someone please guide me on how to solve this?

 

Thanks,

Gil

9/8/2010 6:46:26 AM
Gravatar
Total Posts 18439

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Hi Gil,

Things I would look at:

  1. verify that the AjaxControlToolkit.dll is in the /bin folder and is version 3.5.4012.0 (it is in the package but maybe it failed to upload)
  2. possibly if you have mojoportal running in a sub folder beneath another .NET app running in the root, then the Web.config in the root can conflict with the mojoPortal Web.cnfig. There are ways of mitigating that by wrapping <location element around the <system.web and <system.webserver elements in the Web.config file of the root site. Related links: http://www.kowitz.net/archive/2007/05/16/stopping-asp.net-web.config-inheritance.aspx
    and
    http://www.west-wind.com/Weblog/posts/133041.aspx

Hope it helps,

Joe

9/9/2010 2:14:34 AM
Gravatar
Total Posts 6

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Hi Joe,

Thanks for the fast reply, however the options you suggested are not the case here.

1) The Ajaxcontroltoolkit is in the Bin folder and the version is the right one. 

2) The site is in it's own folder, own bin and not nested within another site. There for there is only one web.config.

I'm kind of lost in the dark here, so if you have any other ideas I'll be gratefull.

 

Thanks again,

Gil

9/10/2010 7:50:03 AM
Gravatar
Total Posts 18439

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

If there is another Web.config file in the folder above the site it may be conflicting.

It is possible that your host has a different version installed in the GAC (Global Assembly Cache) on the server and is not allowing the use of the bin deployed version. You may need to check with your host. 

9/11/2010 11:29:46 AM
Gravatar
Total Posts 6

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Hi Joe,

There isn't any other web.config in the folder above Which is actually my root folder that holds only the directories for all the sites I'm running.

The hosting company says that the GAC doesn't prevent local (bin folder) to run.

What's the framework needed? maybe it's an issue of configuration of the entire web site...?

If I upload the portal AS IS, should it run without any configuration to the web.config?

 

Still lost....

Gil

9/11/2010 11:39:25 AM
Gravatar
Total Posts 18439

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Yes, it should work as is, other than setting the connection string.

Are you sure you are hosted in .NET 3.5 and not .NET 4?

If you are hosted under .NET 4 you should use the mojoPortal package for .NET 4. There are different versions of AjaxControlToolkit for 3.5 and 4.0.

Hope it helps,

Joe

9/11/2010 12:37:25 PM
Gravatar
Total Posts 6

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

The hosting company claims that they support V3.5 (4 is not supported for sure)

Should I change something in one of the config files or change the DLL?

Thanks again,

Gil

9/11/2010 2:48:24 PM
Gravatar
Total Posts 6

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Ok, 3.5 is supported for sure. 4 not in their road map.

Can you advice on the changes I need to perform?

Gil

9/11/2010 10:40:31 PM
Gravatar
Total Posts 6

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

Here's an update...

I replaced the ajax dll that came with the package with the same DLL (version, filesize etc.) that was sent to me by the hosting company.

The DLLs looks the same, but now I'm getting the welcome page to mojo.

However the top section, the one that is colored in blue displays the following message: Could not load file or assembly 'ajaxControlToolKit'

hope that it gives you a direction on what should I do next, because I can't think of anything else.

The Machine is running server 2008 with framework 3.5.

Thanks,

Gil

9/12/2010 6:34:06 AM
Gravatar
Total Posts 18439

Re: Ajax toolKit? script manager? problems with web.conf and refrences...

I would try re-upload the one that shipped with mojoPortal. Possibly the file was corrupted when uploaded previously and re-uploading it might fix it. Or file permissions may not be correct. Whatever user is the identity on the application pool must have read access to the entire web including all files in the /bin and write access to  /Data and /App_Data. If permissions are not correct on the file it can fail to load it.

I have no other ideas, no-one else has reported any problem such as this and I don't believe it is a problem with mojoPortal, it something strange about your environment or configuration.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.