.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Script error in adding users in sharepooint Site

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
I seem to have a problem when trying to enter new users on a newly built site (SharepointSite). I cannot select the new user option the grant permissions dialog doesn't appear. I'm running MS office 2003 sp3 and ie 7 regards Alan Bateman.

View Complete Post

More Related Resource Links

Create My Site for FBA Users Error


Hi Guys,

I am trying to create mysite for FBA Users programatically (FYIP: I have done all the configurations for FBA in SSP and mysite host and I am able to create mysite from UI for FBA Users). The problem exists only when I am creating MySite programatically!!!










Error adding a document library to a site



I am receiving the error "Cannot complete this action.  Please try again"  when trying to add a document library to one of the sites.  This is Sharepoint 2007 SP1.  I seem to be able to do it thru designer but not the web interface.

Does anyone know how to fix this?

EXPERT: Method error 500 in dropdown (solution is NOT adding System.Web.Script.Services.ScriptServic


Please only answer if you have read the full question!!

Ok...this thing is driving me crazy!!!!

I keep getting a method error 500 in my dropdown box.

All the posts on the web come with the same solution, but it doesnt work for me!
The code seems SO simple and consists of so few lines....but it just doesnt work!



<asp:DropDownList ID="ddlCountries" runat="server">

<cc1:cascadingdropdown ID="cddCountries" runat="server" Category="Country" Enabled="True" LoadingText="Loading...please wait." PromptText="Choose a country" ServiceMethod="GetCountries" ServicePath="geolocation.asmx"     TargetControlID="ddlCountries"></cc1:cascadingdropdown>

<%@ WebService Language="VB" CodeBehind="~/App_Code/geolocation.vb" %>

<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
 Public Class geoloc

Error adding/updating Indexed Column to Upgraded Site


We get the following error when adding or updating an indexed column on an upgraded Discussion Board list (from 2007):

System.ArgumentException: Value does not fall within the expected range.


10/18/2010 11:26:22.56 	w3wp.exe (0x1F10)            	0x13EC	SharePoint Foundation     	Monitoring          	nasq	Medium 	Entering monitored scope (Request (POST:http://SERVER:80/SUBSITE/_layouts/EditIndex.aspx?List=544ad227-32bf-4d68-88e6-1a84eb761e8b))	 
10/18/2010 11:26:22.56 	w3wp.exe (0x1F10)            	0x13EC	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Name=Request (POST:http://SERVER:80/SUBSITE/_layouts/EditIndex.aspx?List=544ad227-32bf-4d68-88e6-1a84eb761e8b)	66aa366d-ac57-4d3f-85b7-9ed0da55f878
10/18/2010 11:26:22.56 	w3wp.exe (0x1F10)            	0x13EC	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Site=/	66aa366d-ac57-4d3f-85b7-9ed0da55f878
10/18/2010 11:26:22.90 	w3wp.exe (0x1F10)            	0x13EC	SharePoint Foundation     	Runtime            	tkau	Unexpected	System.ArgumentException: Value does not fall within the expected range.  at Microsoft.SharePoint.SPFieldIndexCollection.Add(ArrayList fields)   at Microsoft.SharePoint.SPFieldIndexCollection.Add(SPField primaryField, SPField secondaryField)   at Microsoft.SharePoint.ApplicationPages.EditIndexPage.CreateIn

Site Actions -> Users Permissions throws and unexpected error




I found an unusual issue.  I am running a dev installation of SharePoint 2010 Foundartion under win7 64-bit which generally works ok.  I am logged in as local administrator. When I navigate to the standard team site and click Site Actions -> User Permissions..  I get a lovely:



An unexpected error has occurred.


Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 94aad20d-207e-4d72-b615-49ad9127ef1a


UlSViewer shows me

System.NullReferenceException: Object reference not set to an instance of an object.  
 at Microsoft.SharePoint.SPSite.get_IISAllowsAnonymous()   
 at Microsoft.SharePoint.ApplicationPages.UserRoles.ListAnonymousUser(String sortExpression)

and the request is http://localhost:8081/_layouts/users.aspx

Adding users to a site collection with onlysearchwithinsitecollection enabled


We recently enabled  peoplepicker-onlysearchwithinsitecollection  and peoplepicker-Peopleeditoronlyresolvewithinsitecollection for one of our site collections.  Unfortunately it seems that once these properties are enabled no users from outside of the site collection can be added to the site collection, even by the site collection administrator. 

We did find that users can still be added to the site via power shell and other means but this is a less desirable solution for us.  Does anyone know if it is possible to only enable the resolve within site collection functionality for users other than SCAs or is it pretty much all or nothing?




Throws an error message while adding users to the Active Directory


Hello guys,

I am trying to add a user to active directory but for some reason its failing


Here is the error message

Message: HandlingInstanceID: dde791c2-7df4-4214-85c4-72b045510def

An exception of type 'System.Runtime.InteropServices.COMException' occurred and was caught.


05/04/2011 15:18:30

Type : System.Runtime.InteropServices.COMException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : The server is not operational.

Source : System.DirectoryServices

Help link :

ErrorCode : -2147016646

Data : System.Collections.ListDictionaryInternal

TargetSite : Void Bind(Boolean)

Stack Trace : at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)

at System.DirectoryServices.DirectoryEntry.Bind()

at System.DirectoryServices.DirectoryEntry.get_IsContainer()

at System.DirectoryServices.DirectoryEntries.CheckIsContainer()

at System.DirectoryServices.DirectoryEntries.Add(String name, String schemaClassName)



Error: "The search service is currently offline." when adding a rule to a site search scope


We have a portal on our SharePoint farm in which the users want to create a new search scope for that portal only (rather than me creating a global search scope). We are able to create the scope without problem, however when we click "add rules" I get the error message: "The search service is currently offline."

This isn't true though as the search server/indexer is fine and online. We are having problems with our logs so theres no way to troubleshoot this, but I'm wondering if anyone has any insight into the issue.



Error while adding pollingduplex binding


I am making samle of polling duplex in .net 4.0

when ever i put binding this tag in web.config it shows error.


Warning    1    The element 'bindings' has invalid child element 'pollingDuplexHttpBinding'. List of possible elements expected: 'basicHttpBinding, customBinding, msmqIntegrationBinding, netPeerTcpBinding, netMsmqBinding, netNamedPipeBinding, netTcpBinding, wsFederationHttpBinding, ws2007FederationHttpBinding, wsHttpBinding, ws2007HttpBinding, wsDualHttpBinding, netTcpContextBinding, wsHttpContextBinding, basicHttpContextBinding, mexHttpBinding, mexHttpsBinding, mexNamedPipeBinding, mexTcpBinding, webHttpBinding'.    D:\DuplexTest\TestPollingDuplexWcf\TestPollingDuplexWcf\TestPollingDuplexWcf\Web.config    9    8    TestPollingDuplexWcf

var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type =

Site Skinning: Rich XML Classes Let Users Personalize Their Visual Experience on Your ASP.NET Site


One way that Web sites and applications become better able to meet the needs of customers is by allowing them to personalize their experience. For Web sites, this means displaying the content as the user wants to see it. For rich-client applications, this often means allowing the user to choose the user interface through a technique known as skinning, which is similar to themes in Windows XP. This article shows how you can apply skinning to Web sites, wrapping their functionality in a new user interface. The technique uses the rich XML classes in the .NET Framework and the built-in extensibility of ASP.NET.

Harry Pierson

MSDN Magazine March 2003

how protect my web site from this error


hi ,

I have question in security asp.net

for exemple I have page name


when I go to this url


there aren't problém but the problém when I add ' to id=9

localhost/users.aspx?id=9' , I have so an error that may help hacker

my question how I can protect my script from thix error like this forum

when you add ' you will redirect to another page error.aspx

and thanks for all

Error in / Application after adding employee search in webpart


Hello everyone,

I am working on sharepoint 2007 and I was editing the webpart of the software and after adding the predefined employee search table, the server has crashed while trying to access the server remotely with the following error message:

Error in / Application

However, while trying to login locally I have no problem and can easily login.

What will be the course of action in fixing this error.

Also the site is complaining of an invalid certificate even after adding an exception.

Any help would be greatly appreciated.

Thank You,

Chris Stanko

How to stop unauthorized users from sending documents to a Records Center site?


I can't find a way to stop unauthorized users from sending documents to a Records Center site. Can someone please help me? Do i need to configure anything to restrict it to the members of the web submitters group?

I'm still using MOSS2007


The impossibility of doing things depends on your will to do it.

Code to get how many users are logged in to the sharepoint site

How to get the users of my sharepoint who are online.....

Thanx in advance,


Adding a custom ASP page to a sharepoint 3.0 site


I have a custom ASP page that I need to add to my sharepoint 3.0 web site.  I created a virtual directory under my website and placed the ASP file.  When I link to the ASP file, I get a 404 page not found.  To make sure I had the correct URL path, I created a test html file and placed in the same virtual directory and linked to it just fine.  I think it has something to do with managed paths and sharepoint trying to control this new ASP content.  I cannot figure out how to exclude this content from managed paths.

Any suggestions on how to resolve this issue so I can run this custom ASP file under sharepoint 3.0?


Incorrect syntax near 'GO' error while running a sql script ?


I am using Visual Studio 2008

I have one Database A

now i want to create Database B just like Database A

I generated a script of Database A

and created fresh Database B

Now, when i try to run the generated script against Database B, i get this error, why ? how to fix it ?

sql error

For your information:

I have checked in my script it is:


and i have also tried to save the sql script in notepad as: ANSI, UTF-8 and UNICODE

and then i copied from txt file to query but still doesn't work and getting the same error

and these are the option that i selected/used while creating my script:


ssrs 2008 R2 - report parameter with no default set throws java script error

We have recently upgraded from SQL Server 2008 to SQL Server 2008 R2....I am experiencing a problem with my report parameters on my SSRS reports. It seems that my report parameters that I do not have a specified 'default' value throws a java script error when I try and run/render the report under R2.  As soon as I put a 'default' value on the report param, everything is fine.  However, that is not the behavior we need for our reports...the user needs to pick their selection. Can anyone shed some light on this, it seems to be an AJAX problem...I need to be able to have report parameters with a list of values, but no 'default' value on the parameter.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend