Home › Forums › QuickApps Forum › qDiscussionView ezEdit error.
- This topic is empty.
- AuthorPosts
-
- 04/27/2010 at 3:42 am #7252
AnonymousParticipantHi Sean,
Thanks for the reply. I didn't pay for the web parts so I guess I'm running the shareware (free) version that I downloaded from your site. The version that I'm running is:
Product Version: 5.2 (Build 2010.03.05)
I modified the web.config per your instruction except that I don't have the <SharePoint> tag. But not sure where to get the debug information. Please advice.
-Jackson -
04/27/2010 at 12:19 pm #4865
AnonymousParticipantHi
Were you trying the qDiscussionView as shareware or using it as part of licensed web parts? What is the version and build number (accessible from web part context menu About dialog)? This can help identify the issue as different installers for shareware and licensed install were provided.
You will have to change the web.config settings to bring more debug info for this problem. Please check the followings:
- Locate the 12 hive under %Program Files%/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/Layouts/
- Modify the web.config (make a backup first) and locate <system.web> tag and <compilation> tag underneath it (if not exists, please add) make sure you have <compilation debug=”true”…> where “debug” attribute is set to “true”.
- Locate <customErrors> tag underneath <system.web> tag and set mode to “Off”.
- Locate <SharePoint> tag underneath <configuration> if exists and make sure CallStack attribute is set to “true”.
Sean
- 04/28/2010 at 6:47 am #7253
AnonymousParticipantI'm having the exact same problem. Any help would be greatly appreciated.
- 04/29/2010 at 7:43 am #7254
AnonymousParticipantA bug seemed to have been introduced where the session value is checked and if the site web configuration file does not have session enabled, it throws an exception. We will update the code and provide an updated download bits. In the meantime, try enabling the session to see if it helps (web.config <pages> tag with enableSessionState="true"). Note this is optional, it does not require you to enable the session when this bug is fixed.
I will update this thread once we have updated the download link. - 04/30/2010 at 1:33 am #7256
AnonymousParticipantTo enable session for ASP.NET application, you would set the attribute “enableSession” of element configuration/system.web/pages, an example is given below from a default SharePoint web application configuration file.
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
<tagMapping>
<add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</tagMapping>
</pages>
Also you need to add http module entry into element configuration/system.web/httpModules, an example is given below.
<httpModules>
<clear />
...
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
- 04/30/2010 at 11:22 am #7255
AnonymousParticipantHi there,
I can't seemed to find <pages> tag in web.config. Should I created it? If so is this the synthax? Thanks.
<pages>
enableSessionState="true"
</pages? - 07/08/2010 at 1:03 am #7261
AnonymousParticipantediting the web.config as per your instructions above fixed the issue for me; many thanks 4 that! Looking forward to the bug fix, though, since I don't wish to have the session state enabled. cheers
- 07/08/2010 at 11:13 am #7262
AnonymousParticipantHere is the code from my web.config file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<system.web>
<compilation batch="false" batchTimeout="600" maxBatchSize="10000" maxBatchGeneratedFileSize="10000" />
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<customErrors mode="On" />
<httpRuntime executionTimeout="3600" />
<globalization fileEncoding="utf-8" />
</system.web>
<location path="upload.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
<location path="ctdmsettings.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
<location path="ChangeContentTypeOptionalSettings.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
</system.web>
</location>
<location path="MngField.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<location path="fldpick.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<location path="ManageContentTypeField.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<system.web>
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
<tagMapping>
<add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</tagMapping>
</pages>
<httpModules>
<clear />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
</system.web>
</configuration>
- 07/08/2010 at 11:26 am #7258
AnonymousParticipantThe fix is on the way but for now you would have to manually change web.config to enable session by following the previous responses. Were you having issues after you enabled the session?
- 07/08/2010 at 12:03 pm #7259
AnonymousParticipantI copied and pasted the above and reset IIS but it did not seem to have any effect.
- 07/08/2010 at 12:49 pm #7257
AnonymousParticipantHas there been any luck fixing the bug? I too have had the same problem and have been unable to get the enableSession workaround to resolve it. Thanks in advance!
- 07/08/2010 at 12:52 pm #7260
AnonymousParticipantCan you attach your web.config here for us to look at?
- 07/09/2010 at 2:17 am #7265
AnonymousParticipantSo since I do not have SQL Server, I used InProc but that did not work. I just get a runtime error.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<system.web>
<compilation batch="false" batchTimeout="600" maxBatchSize="10000"
maxBatchGeneratedFileSize="10000" />
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<customErrors mode="On" />
<httpRuntime executionTimeout="3600" />
<globalization fileEncoding="utf-8" />
</system.web>
<location path="upload.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
<location path="ctdmsettings.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
<location path="ChangeContentTypeOptionalSettings.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
</system.web>
</location>
<location path="MngField.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<location path="fldpick.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<location path="ManageContentTypeField.aspx">
<system.web>
<httpRuntime executionTimeout="3600" />
</system.web>
</location>
<system.web>
<sessionState mode="Inproc" cookieless="false" timeout="20"/>
</sessionState>
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true"
validateRequest="false"
pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter,
Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
asyncTimeout="7">
<namespaces>
<remove namespace="System.Web.UI.WebControls.WebParts" />
</namespaces>
<tagMapping>
<add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</tagMapping>
</pages>
<httpModules>
<clear />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
</system.web>
</configuration>
- 07/09/2010 at 12:49 pm #7263
AnonymousParticipantIn your web.config, check under <system.web> and you should have an entry like following exists to make sure we can enable ASP.NET Session State. I did not seem to find in your post but I am not sure if you have included everything. You will need to specify how session state is implemented and below is using SQLServer to store session state and you could have in-state session service as well.
<sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
- 07/09/2010 at 12:58 pm #7264
AnonymousParticipantHi, I included everything. I am running WSS 3.0 on Windows 2003 using the Windows Internal Database option.
- 07/11/2010 at 11:25 am #7266
AnonymousParticipantOk, I got it working. I had been trying to add the code in web.confg under the path: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
I changed this back to what it originally was.
Then I went to IIS and went to the Home DIrectory tab for the Web Site of my site and found the path to my site. I opened up the web.config file at that location and it already contained all of the code you had said I need to add. So I uncommented out : <!–<add name="Session" type="System.Web.SessionState.SessionStateModule"/> –>
Then I changed <pages enableSessionState to True.
I did not see any entry for sessionstate mode= so I just left it alone and did not enter one. I then went back to my site and added the web part. It worked!
Thank you for all of your help!!! Now the fun begins to see what this baby can do 🙂 - 08/26/2010 at 6:12 am #7267
AnonymousParticipantI’m sorry – I’m a complete noob
How do you get this to work? What was the final determination of what the issue is?
The solution?I can at least ‘fix’ the problem by doing this:
http://sharepointservices.wordpress.com/2008/09/30/failure_adding_web_part_in_sharepoint/
- 08/26/2010 at 9:47 am #7268
AnonymousParticipantThe main thing is to make sure you are editing the correct web.config file. I wasted so much time because I was editing the wrong file.
1. Find the right file by going to IIS and go to the web site SP is installed on. Right click on do properties. Go to the Home DIrectory Tab. You will find the Local Path. This shows you where the correct web.confog file is.
2. Find and uncommented out : <!–<add name="Session" type="System.Web.SessionState.SessionStateModule"/> –>
3. Find the line that starts with: <pages enableSessionState="false"
4. Change it to: <pages enableSessionState="true"
5. Note that the rest of the line in step 3&4 stays the same, just change the one parameter from false to true!
6. Restart IIS just to be sure.
7. Add the webpart.
That is what worked for me. - 08/27/2010 at 10:20 am #7269
AnonymousParticipantThank you.
I have IIS Manager open and can see the web.config for the site parent. Is that ok?
How do I make a copy before I edit? - 08/27/2010 at 10:39 am #7270
AnonymousParticipantok – I see the properites of the file in IIS.
I have made a copy by going to that directory via Explorer and copying the file to a backup directory I have created.
So I don't edit the doc from IIS, I just double click from the directory I have naviaged to, correct?
Also, this is the parent of all my team sites (My Sites is on a different port). Should I edit this web.config file? Will this then fix the problem for all sub sites of the parent?
Thanks for your help! - 08/27/2010 at 11:03 am #7271
AnonymousParticipantI had to restart IIS 2x.
When I make too many or certain customizations (ezedit), I still get the error. It looks like it's working but then I get the error.
Out of curiousity, why are these items in the web.config commented out and/or set to false?
What do you suggest I do next? - 08/27/2010 at 11:47 am #3858
AnonymousParticipantI’ve got qDiscussionView installed and activated. When I tried to configure it using ezEdit I got the following error: “An unexpected error has occurred.
http://sharepointforall.com/forumbar/_layouts/spcontnt.aspx?PageView=Shared&url=%2fforumbar%2fdefault.aspx%3fPageView%3dShared
Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.” Checked the event log and it seemed the install went fine. Any ideas? I have WSS 3.0 on W3K 32bit. Thanks. - 08/27/2010 at 11:47 am #7272
AnonymousParticipantok – I uninstalled and reinstalled the web part.
I think I get errors when I make changes to the search settings/options in the web part.
If I make all other changes (I think) the web part works. I think this may be an issue I have with my dev environment.
One more question: How do I switch views now? No longer an option?Thanks again for your help!
-
- AuthorPosts
You must be logged in to reply to this topic.