Welcome Guest Search | Active Topics | Sign In | Register

SharePoint eo_web.ashx provisioning. Options
Kenneth
Posted: Thursday, March 4, 2010 7:18:54 PM
Rank: Newbie
Groups: Member

Joined: 3/4/2010
Posts: 5
what I have done is provisioned the license and handler using the following code:

Code: C#
var setting = webApp.IisSettings.Where(x => x.Value.ServerComment == webApp.Name)
                    .Select(x => x.Value)
                    .FirstOrDefault();

                if(setting != null)
                {
                    try
                    {
                        if (!File.Exists(setting.Path.FullName + @"\eo_web.ashx"))
                        {
                            File.Copy(SPUtility.GetGenericSetupPath(@"TEMPLATE\Layouts\EDIS\eo_web.ashx"), setting.Path.FullName + @"\eo_web.ashx", true);
                        }

                        if (!File.Exists(setting.Path.FullName + @"\eo_web.licx"))
                        {
                            File.Copy(SPUtility.GetGenericSetupPath(@"TEMPLATE\Features\EDIS Core Components\eo_web.licx"), setting.Path.FullName + @"\eo_web.licx", true);
                        }
                    }
                    catch (Exception ex)
                    {
                        throw new SPException(ex.Message, ex);
                    }
                }


then using fire fox I browse to the page that hosts the eo treeview control and none of the eo scripts are loaded. I then perform a get on the file:
http://edis/eo_web.ashx?id=22664109-3e59-4919-88eb-1d1d8a94b67f

I then get the following error:

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'EO.Web.Runtime'.

Source Error:

Line 1: <%@ WebHandler Class="EO.Web.Runtime" %>


Source File: /eo_web.ashx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

what am i doing wrong?
Kenneth
Posted: Thursday, March 4, 2010 7:31:41 PM
Rank: Newbie
Groups: Member

Joined: 3/4/2010
Posts: 5
I worked on this some more and I have resolved the issue. the class needs to be a 5 part strong class name.

<%@ WebHandler Class="EO.Web.Runtime, EO.Web, Version=7.0.27.2, Culture=neutral, PublicKeyToken=e92353a6bf73fffc" %>


on another note I did not have to unblock ashx extension using this solution.

thank you for your time.
eo_support
Posted: Thursday, March 4, 2010 7:40:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. That will work. Thank you very much for sharing!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.