Error when saving a new record and uploading file in WSS 2003

Topics: User Forum
Mar 20, 2008 at 9:01 AM
Hi,

Recently I have migrated WSS 2003 to new server. I'm using SQL server 2000.

1.Now i'm getting the below error whenever I save a new record in any list page (Discussion boards,links etc).

The list item could not be added because the length of the fields was too long. Please shorten the new entries or remove some fields from this list.

I could not able to save any record in the list page.

2.I'm also getting one more error when i upload a file in a document library.

Form Validation Error
Please correct the information you provided by following these steps, then submit the information again:

The URL 'URL goes here' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

Can anyone help me on this.....


Mar 25, 2008 at 1:05 PM
Here are the instructions to install this in a MOSS 2007 environment.

1. Extract the 1.2 code from the msi package.
2. Import the .dwp file into Sharepoint under a root site:
a. Site Actions -> Site Settings -> Galleries -> Web Parts -> Upload Document
b. Choose the Default Webpart Group
3. Add the SafeControl’s included in text file to the web.config of the Sharepoint site.
4. Use gacutil –I to install the .dll’s into the assembly.
a. BilSimser.SharePoint.Common.dll
b. BilSimser.SharePoint.WebParts.Forums.dll
5. Add on the directories:
a. In Program Files\common files\Microsoft Shared\web server extensions\wpresources\
b. Create the directory: BilSimser.SharePoint.WebParts.Forums\1.2.0.0__e516dadc23877c32
c. Add these files: 1033.lng.xml, manifest.xml
6. Update default.master to include the script included in the text file. Place it right before the “/BODY” tag (at the bottom of the page).
7. Go to the site you want to place the Webpart and then create a new subsite.
a. Site Actions -> Site Administration -> Sites and Workspaces -> Create
b. Enter the name / url name and Yes for Top Launch and Quick Link
8. Setup the security for the Webpart.
a. Site Actions –> Actions -> Edit Permissions -> Ok to Unique Permissions
b. Settings -> Permission Levels -> Edit Permission Levels -> Ok
c. Add a Permission Level -> Name = List Permission -> Under List Permissions check “Manage Lists” -> Create
d. Click on Permissions (in location url) -> Guideworks\Domain Users ->List Permission -> Ok
e. NOTE: This permission is on top of the “default” contribute permissions.
9. Verify the install
10. Have business users verify the install.

************************************************web.config file changes*************
<SafeControl Assembly="BilSimser.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24713753211b034a" Namespace="BilSimser.SharePoint.Common" TypeName="*" Safe="True" />
<SafeControl Assembly="BilSimser.SharePoint.WebParts.Forums, Version=1.2.0.0, Culture=neutral, PublicKeyToken=e516dadc23877c32" Namespace="BilSimser.SharePoint.WebParts.Forums" TypeName="*" Safe="True" />


***********
--in master.default --
--Right before </BODY> tag --
--Located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL
************
<script>
function ProcessOwsForm(ctl, argument)
{
if (frm.fPreviewMode)
{
var LcantSaveText = "This form cannot be saved when previewing this page.";
window.alert(LcantSaveText);
return;
}
if (frm.FValidate(true))
{
frm.FPostProcess();
var theForm = document.forms'aspnetForm';
__doPostBack2(ctl, argument);
}
}
function __doPostBack2(eventTarget, eventArgument)
{
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
</script>
Mar 25, 2008 at 5:14 PM
Edited Mar 25, 2008 at 5:14 PM
Hi Tequila,

I've done exactly what you wrote and I get this error message :
An error occurred during the compilation of the requested file, or one of its dependencies. Cannot convert type 'Microsoft.SharePoint.WebControls.EncodedLiteral' to 'System.Web.UI.IAttributeAccessor'
Any idea ?
Thanks a lot.

Lab




tequila00shots wrote:
Here are the instructions to install this in a MOSS 2007 environment.

1. Extract the 1.2 code from the msi package.
2. Import the .dwp file into Sharepoint under a root site:
a. Site Actions -> Site Settings -> Galleries -> Web Parts -> Upload Document
b. Choose the Default Webpart Group
3. Add the SafeControl’s included in text file to the web.config of the Sharepoint site.
4. Use gacutil –I to install the .dll’s into the assembly.
a. BilSimser.SharePoint.Common.dll
b. BilSimser.SharePoint.WebParts.Forums.dll
5. Add on the directories:
a. In Program Files\common files\Microsoft Shared\web server extensions\wpresources\
b. Create the directory: BilSimser.SharePoint.WebParts.Forums\1.2.0.0__e516dadc23877c32
c. Add these files: 1033.lng.xml, manifest.xml
6. Update default.master to include the script included in the text file. Place it right before the “/BODY” tag (at the bottom of the page).
7. Go to the site you want to place the Webpart and then create a new subsite.
a. Site Actions -> Site Administration -> Sites and Workspaces -> Create
b. Enter the name / url name and Yes for Top Launch and Quick Link
8. Setup the security for the Webpart.
a. Site Actions –> Actions -> Edit Permissions -> Ok to Unique Permissions
b. Settings -> Permission Levels -> Edit Permission Levels -> Ok
c. Add a Permission Level -> Name = List Permission -> Under List Permissions check “Manage Lists” -> Create
d. Click on Permissions (in location url) -> Guideworks\Domain Users ->List Permission -> Ok
e. NOTE: This permission is on top of the “default” contribute permissions.
9. Verify the install
10. Have business users verify the install.

************************************************web.config file changes*************
<SafeControl Assembly="BilSimser.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24713753211b034a" Namespace="BilSimser.SharePoint.Common" TypeName="*" Safe="True" />
<SafeControl Assembly="BilSimser.SharePoint.WebParts.Forums, Version=1.2.0.0, Culture=neutral, PublicKeyToken=e516dadc23877c32" Namespace="BilSimser.SharePoint.WebParts.Forums" TypeName="*" Safe="True" />


***********
--in master.default --
--Right before </BODY> tag --
--Located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL
************
<script>
function ProcessOwsForm(ctl, argument)
{
if (frm.fPreviewMode)
{
var LcantSaveText = "This form cannot be saved when previewing this page.";
window.alert(LcantSaveText);
return;
}
if (frm.FValidate(true))
{
frm.FPostProcess();
var theForm = document.forms'aspnetForm';
__doPostBack2(ctl, argument);
}
}
function __doPostBack2(eventTarget, eventArgument)
{
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
</script>

Mar 25, 2008 at 5:42 PM
Hum... Forget this one I had a problem with my master page... However I'm getting the error "Cannot import webpart" when I try to add the Forum webpart onto the page.
thanks for your help.



Labarik wrote:
Hi Tequila,

I've done exactly what you wrote and I get this error message :
An error occurred during the compilation of the requested file, or one of its dependencies. Cannot convert type 'Microsoft.SharePoint.WebControls.EncodedLiteral' to 'System.Web.UI.IAttributeAccessor'
Any idea ?
Thanks a lot.

Lab




tequila00shots wrote:
Here are the instructions to install this in a MOSS 2007 environment.

1. Extract the 1.2 code from the msi package.
2. Import the .dwp file into Sharepoint under a root site:
a. Site Actions -> Site Settings -> Galleries -> Web Parts -> Upload Document
b. Choose the Default Webpart Group
3. Add the SafeControl’s included in text file to the web.config of the Sharepoint site.
4. Use gacutil –I to install the .dll’s into the assembly.
a. BilSimser.SharePoint.Common.dll
b. BilSimser.SharePoint.WebParts.Forums.dll
5. Add on the directories:
a. In Program Files\common files\Microsoft Shared\web server extensions\wpresources\
b. Create the directory: BilSimser.SharePoint.WebParts.Forums\1.2.0.0__e516dadc23877c32
c. Add these files: 1033.lng.xml, manifest.xml
6. Update default.master to include the script included in the text file. Place it right before the “/BODY” tag (at the bottom of the page).
7. Go to the site you want to place the Webpart and then create a new subsite.
a. Site Actions -> Site Administration -> Sites and Workspaces -> Create
b. Enter the name / url name and Yes for Top Launch and Quick Link
8. Setup the security for the Webpart.
a. Site Actions –> Actions -> Edit Permissions -> Ok to Unique Permissions
b. Settings -> Permission Levels -> Edit Permission Levels -> Ok
c. Add a Permission Level -> Name = List Permission -> Under List Permissions check “Manage Lists” -> Create
d. Click on Permissions (in location url) -> Guideworks\Domain Users ->List Permission -> Ok
e. NOTE: This permission is on top of the “default” contribute permissions.
9. Verify the install
10. Have business users verify the install.

************************************************web.config file changes*************
<SafeControl Assembly="BilSimser.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24713753211b034a" Namespace="BilSimser.SharePoint.Common" TypeName="*" Safe="True" />
<SafeControl Assembly="BilSimser.SharePoint.WebParts.Forums, Version=1.2.0.0, Culture=neutral, PublicKeyToken=e516dadc23877c32" Namespace="BilSimser.SharePoint.WebParts.Forums" TypeName="*" Safe="True" />


***********
--in master.default --
--Right before </BODY> tag --
--Located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL
************
<script>
function ProcessOwsForm(ctl, argument)
{
if (frm.fPreviewMode)
{
var LcantSaveText = "This form cannot be saved when previewing this page.";
window.alert(LcantSaveText);
return;
}
if (frm.FValidate(true))
{
frm.FPostProcess();
var theForm = document.forms'aspnetForm';
__doPostBack2(ctl, argument);
}
}
function __doPostBack2(eventTarget, eventArgument)
{
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
</script>