Thank you for the reply. Actually, the safeControl entry is added to the web.config when I add the solution the webpart is contained in to SharePoint. This is a custom developed webpart and the entire solution contains Lists, Event Receivers and the webpart itself. When I add the solution to the SharePoint site and activate the Feature the SafeControl is loaded to the web.config automatically.
Ok, so I feel kind of stupid here since I didn't think about it myself, but here's the cause and I hope it helps someone else who comes along with the same issue as I did.
When adding a solution and activating said solution in Sharepoint, before you can access this solution in say adding a webpart to a page, you must first RESET IIS. So during my testing I did not add any code to reset the IIS on the application Sharepoint servers. The only reason I can think of that explains why it worked in the code block was that perhaps I had reset IIS inadvertently during my testing. I can't explain it otherwise. Stupid mistake and I have hung my head in shame, but there you go.
I was wanting to build a web control that did a few things for admins of a site. One of the processes was to add a user to the default members group of the site along with some other security settings. This was to help admins do all of this on one page instead of going to each group individually to add a user.
Here is the code I am currently using to accomplish this:
web.Groups("AR Test Site Members").AddUser(newStaff.User)
This work fine on my test site, but when I move it over to production that group name will change to the [Site Name] Site Members. I noticed that you could also used an index of the group instead of the name, so I used '5' because I noticed that was in the query strings for the address to look at the group members. When I used '5', I get an argument out of range error. How can I find the index number of this default group so that when I build the code I don't have to worry about finding out which site I'm on?
We are currently using SharePoint 2007 for our Intranet and would like to ‘Convert’ to SharePoint 2007 Enterprise. I know once this is done, we cannot revert back to standard. Here is my question(s):
1. Do/should I take SharePoint offline?
2. Should I do this in a ‘Test’ environment first?
3. Is this ‘really’ a simple process?
Hope someone can help
I am running a SharePoint site. It was working perfectly from months, i recently made some changes in solution and deployed the new WSP on server using the Timer job. I am not been able to log in to site after that deployment, i have deployed the solution again and again but not gain It opens the login page but when i enter the login credentials it does nothing but just refreshed the page and empty the password field.
Are you getting any errors on the page?
What kind of tasks are you doing with the custom timer job?
Have you deployed the solution using Visual Studio 2010?
Is it a web or site or web application scoped feature?
I have created one sharedocument called "TeamRoom" by using sharepoint foundation2010.In that sharedocument multiple users can upload multiple documents and can edit the documents too. But the document should be deleted by only who uploaded it.
What will I need to do, If I want to get the document deleted only by the user who uploaded the document, and other will need to get Read and Edit access ( not Deletion access) to that document?
But i am not able to access the document by user whos have access Add& Edit Items.
Well, that can't be. There must be something wrong.
Has the document own right or does it inherit the list rights? If so, you have to add permissions to the document, too.
Some question, to get a brief look at your problem:
- To which group does the user who added the item belongs?
- To which group does the user who want to edit the item belongs?
- What are the group rights of both groups for the list?
- Can both users see the list?
- Can both user add items?
- Is the side-admin able to edit items?
- Are there special list features enabled like versioning, approval, are the documents checked in?
I created one site(Site actions-->New Site) called TeamRoom by using sharepoint foundation2010.And I created 4 pages in that site.But how to host that site in IIS.Can you please let me know in a step by step manner.
But how to host that site in IIS.Can you please let me know in a step by step manner.
You don't have to hosts new sites, it's automatically done. You just have to do that, if you want that side to reached by another domain-name.
You find your first wcs under "http://yourdomain/" and by standard alls subsites with "http://yourdomain/websites/subsitetitle"
I'm using the following code to create an SPFieldUserValue object from an entry in a SharePoint People Editor control on an app page:
Dim requestorCol AsNew SPFieldUserValue
ForEach entity As PickerEntity In sppeModifyAccount.ResolvedEntities
requestorCol = New SPFieldUserValue(web, Convert.ToInt32(entity.EntityData("SPUserID")), entity.Key)
This is working 99% of the time, where it is able to search our AD and resolve to the person's name typed in the control. That is, until today when we were doing one final bit of beta testing and the form wouldn't submit.
After debugging I noticed that the user who's name was put into the control didn't have an ID listed in the entity. My initial thought is that the user we are placing in the form hasn't been to the site yet, and thus doesn't have an SPUserID associated in Sharepoint for her user account. I am having her test that out now, but is there another way around this? We are using Foundation and don't have user's log into the site.
Found the issue. This is because the user had never signed into the SharePoint site, and thus was not in the User Information List. We're using Foundation, so I don't have the option to use User Profile Sync. Is there anything out there (preferably free) that I could use to get all my users into the User Information List?
I am trying to put an on-page anchor point on a SharePoint (.aspx) page and get a syntax error. I have done this many times on html pages and even copied from an example on W3C to be sure I was doing it correctly. It worked in the "try it yourself" page on W3C but not on the .aspx page.
I am doing this:
I think only id is necessary but put in the name attribute to see if that would work.
<ahref="#jump_here">Jump to section of page.</a>
I am getting a syntax error but do not see where I have coded it wrong.
Does anyone use on page links on a SharePoint page? What can I do to make this work without generating an error?
Turns out it was a problem with my browser. I noticed I was getting a syntax error on web pages from other sites. A reset of my group policy fixed the problem and all works well using the code shown above.
The report of my death was an exaggeration - Mark Twain