Community
Showing results for 
Search instead for 
Do you mean 
Reply

act Web.Config error

Bronze Super Contributor
Posts: 1,231
Country: USA

act Web.Config error

[ Edited ]

OK, I am working on installer for Impact for WEB  and I am having an issue with the Web.Config file. The <httpHandlers> section reads like so

 

 

    <httpHandlers>
      <add verb="*" path="*_ASCService.axd" validate="false" type="Act.Web.ServerControls.ServiceHandlerFactory, Act.Web.ServerControls, Culture=neutral, PublicKeyToken=ebf6b2ff4d0a08aa"/>
      <add name="ChartImageHandler" path="ChartImg.axd" preCondition="intergratedMode" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
    </httpHandlers>

 

The second line holds two attributes which are not allowed; name and preCondition.

If I use the .net System.Configuration.Configuration class it throws the error below.

 

So my queston is two parts:

1. Why is here non-valid attibutes in the <httpHandlers> section?

2. Can I remove them with no issues to APFW?

 

Thanks

-- Jim Durkin

 

BTW- We have a pool on when and if SP responds to this email. There are still open slots but forgetabout getting  'Never.'  It was the first slot taken.

 

----------------------------------------------------------

 

- DirectCast(config.GetSection("system.web/httpHandlers"), System.Web.Configuration.HttpHandlersSection) {"Unrecognized attribute 'name'. Note that attribute names are case-sensitive. (C:\Program Files (x86)\ACT\Act for Web\APFW\Web.config line 168)"} System.Configuration.ConfigurationErrorsException
_HResult -2146232062 Integer
_message "Unrecognized attribute 'name'. Note that attribute names are case-sensitive." String
BareMessage "Unrecognized attribute 'name'. Note that attribute names are case-sensitive." String
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary
+ Errors {System.Configuration.ConfigurationException()} System.Collections.ICollection
+ ErrorsGeneric {System.Configuration.ConfigurationException()} System.Collections.Generic.ICollection(Of System.Configuration.ConfigurationException)
Filename "C:\Program Files (x86)\ACT\Act for Web\APFW\Web.config" String
HelpLink Nothing String
HResult -2146232062 Integer
InnerException Nothing System.Exception
IPForWatsonBuckets 1911192164 System.UIntPtr
IsTransient False Boolean
Line 168 Integer
Message "Unrecognized attribute 'name'. Note that attribute names are case-sensitive. (C:\Program Files (x86)\ACT\Act for Web\APFW\Web.config line 168)" String
RemoteStackTrace Nothing String
Source "System.Configuration" String
StackTrace " at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.Configuration.GetSection(String sectionName)" String
+ TargetSite {System.Object EvaluateOne(System.String[], System.Configuration.SectionInput, Boolean, System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object)} System.Reflection.MethodBase
WatsonBuckets Nothing Object

Nickel Contributor
Posts: 175
Country: USA

Re: act Web.Config error

[ Edited ]

Jim,

 

You can probably remove them with no issues. Below I have the httpHandler for the .NET Chart Control that Visual Studio (2010) tosses in on a .NET 4.0 ASP.NET site. It works for my site, so I'd assume it works for ACT's. Those attributes are probably left over stuff from earlier versions of VS/.NET that the new(er) ones don't use.

 

<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

 

Not that I'd join the pool, but I'm curious if it is an internal office thing, or a ACT dev community thing?

 

EDIT:

I just looked a little bit more at my web.config file and noticed almost an exact copy of your Chart httpHandler line. However, it was under a different XML branch.

 <system.webServer>
   ...   
   <handlers>
      ...
      <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
    ...
 </system.webServer>
Copper Super Contributor
Posts: 86
Country: United_Kingdom

Re: act Web.Config error

Hi Jim,

 

I don't know the technical reason behind those particular attributes being invalid.

However you can safely comment out the line for ChartImageHandler without causing issues with Act! for Web. It's a component that was used by the dashboards which I believe has since been replaced.

I know that the developers are aware of this one so I would expect a fix in a future release.

 

Out of interest, what version of IIS are you using? I only remember this occuring on IIS 6.0, but I could be mistaken, it's been a while since I've seen this error.

 

Kindest regards,

 

Sam.

____________________________________________________________

Unfortunately I no longer work for Swiftpage International. Please do not send any queries to this account.
New Member
Posts: 1
Country: United_Arab_Emirates

Re: act Web.Config error

Administrator
Posts: 221
Country: United States

Re: act Web.Config error

ok, this is a good find here, definately historic from prior versions of .net - I'm looking into if we need to update appropriately or if it's simply no longer needed.

 

BTW: Who wins pool?

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: act Web.Config error

 

 

// 1.
// Parse the date and put in DateTime object.
DateTime postedDate = DateTime.Parse("06-11-2015");

// 2.
// Get the current DateTime.
DateTime now = DateTime.Parse("09-15-2015")

// 3.
// Get the TimeSpan of the difference.
TimeSpan elapsed = now.Subtract(startDate);

// 4.
// Get number of days ago.
double daysAgo = elapsed.TotalDays;
Console.WriteLine("{0} was {1} days ago",
	    someDate,
	    daysAgo.ToString("0"));
Administrator
Posts: 221
Country: United States

Re: act Web.Config error

Actually, that just states the time, not who won ;-)

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: act Web.Config error

I could also state it this way.

 

https://cloud.localhost.com/contacts/postings?close=true&since=06-11-2015&until=09-15-2015&access_token=MYACCESSTOKEN

-- Jim 

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: act Web.Config error

And sometime I feel like being outside the MS world.

 

from='2015-06-11 00:00:00.0000000000' 
to='2015-09-15 23:59:59.9999999999'   
echo date -u -d "0 $to days- $from days+"%D:%H:%M:%S"
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: act Web.Config error

BTW - We all lost Smiley Sad

 

Nobody bet on anybody from SP replying.

 

-- Jim Durkin