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

Top 5 Contributors of the Month
Post New Web Links

Problems with creating webs (some pages and lists doesnt exists)

Posted By:      Posted Date: October 02, 2010    Points: 0   Category :SharePoint


I am trying SP2010 and I have main web collection. In collection anything seems allrigt. But if I create a new site (for example team site), I can't reach site settings and some other problems. When I try site settings, sharepoint returns me his 404 Error. File cannot be found. If I use directive ServerRelativeUrl in some webpart via Visual Studio, webpart returns only root "/". If I want to show and manage lists, all lists are linked to the root site in collection. For example I have collection http://share2010/ . In this site I have Lists Pages and Images. In this collection I create new site Subpage with address http://share2010/subpage . In http://share2010/ site settings works fine. In http://share2010/subpage dont. And in http://share2010/subpage "list of lists" linking http://share2010/Lists/Pages and http://share2010/Lists/Images. But I need http://share2010/subpage/Lists/Pages. Can anyone help me?

View Complete Post

More Related Resource Links

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Problems creating a BDC file that use a unique select statment


I'm trying to build an BDC file that will pull information back from two tables in an Oracle database, I can import it without any errors, but then it tells me I do not have a filter when I try and select an item.  When I add a filter I get an error when I import the file.  The error I get is the following.
"Application definition import failed. The following error occurred: The IdentifierName Attribute of the TypeDescriptor named 'TestDate' of the Parameter named ':TestDate' of the Method named 'Get_TestTwelve_List' of the Entity named 'TestTwelve' does not match any of the defined Identifiers for the Entity. Error was encountered at or just before Line: '133' and Position: '16'."

Here is the section of

      <Property Name="RdbCommandText" Type="System.String"><![CDATA[

Creating Lists On Share-point 2010 Server from .stp list template files using Features

Plz, let me know, how to create list on share-point 2010 server from .stp list template files using features in C#

MS.IT.SiteDeleteCapture Error When Creating Webs

When I try to create a web in any of my site collections I get the error below.  I have tried deactivating the Feature but it still shows this error.  I tried uninstalling after first seeing this error and it still gave this error. Does anyone know how to fix? and get rid of this tool completely?   Feature '78b94e15-23ce-43f9-8036-babd847497d1' could not be installed because the loading of event receiver assembly "MS.IT.SiteDeleteCapture, Version=, Culture=neutral, PublicKeyToken=98e95e81f8e48206" failed: System.IO.FileNotFoundException: Could not load file or assembly 'MS.IT.SiteDeleteCapture, Version=, Culture=neutral, PublicKeyToken=98e95e81f8e48206' or one of its dependencies. The system cannot find the file specified. File name: 'MS.IT.SiteDeleteCapture, Version=, Culture=neutral, PublicKeyToken=98e95e81f8e48206' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assembly

Problems with access to external lists in SharePoint 2010

Our environment is SharePoint 2010 Enterprise, Windows Server 2008 R2 Standard and SQL server 2008 R2.   We have External lists that access a local database in SharePoint SQL Server. When new lists are added and permissions are given in the SharePoint Central Administration the domain users had to be in the Windows administration group to access the lists.   Recently in the same environment the domain users were removed from Windows Administration user group and could access the external lists.   In another similar test server we found adding the domain users to Windows Administration does not give the new domain users access to External lists.   The inconsistency is the issue. Has anyone seen this issue or provide a possible solution?

Problems while creating the Stored Procedures with Concatination

Hi I am creating one Stored Procedure where want to use concatination in that. For that I had written the query but I am unable to do it, so I need help for this. My SQL query is: SET QUOTED_IDENTIFIER ON CREATE PROCEDURE Team @Int VARCHAR(5), @str VARCHAR(150), AS SELECT * FROM Emp WHERE ID = @Int + '@str' Go In @str is we are passing the value at run time (like @str =AND NAME = 'Test') Actuall quey is: SELECT * FROM Emp WHERE ID = 1 AND NAME = 'Test' Thanks in advance Amit

Sharepoint 2010: Get error: You do not have permissions to have lists and pages within My Site.

I am using the administrator login for the sharepoint 2010 farm.  I'm able to access My Site.  However, when I click on My content, I'm getting You do not have permissions to have lists and pages within My Site.   Any ideas?   Thanks.

FullTextQuery doesnt find pages -Sharepoitn 2010 BUG?

Hi, I have strange problem, I created some pages with Farm Administrator user and my fullTextQuery finds them Unfortunatelly if a user is not farm admin, publishes the pages, they are not found.. Is there any correlation between this ?

Creating a generic template writer that can handle drop downs and option lists


If I have a the following model

public class User
		public List<Company> Companies;
		public string Login { get; set; }

		[DisplayName("First Name")]
		public string FirstName { get; set; }

		[DisplayName("Last Name")]
		public string LastName { get; set; }

		public string Password { get; set; }

		private int Company { get; set; }

And the following generic control template writer (which would have to be extended appropriately)

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% foreach (var prop in ViewData.ModelMetadata.Properties .Where(pm => pm.ShowForEdit && !ViewData.TemplateInfo.Visited(pm))) 
{ %>
	<div class="SD_FieldItem">
		<% if (!String.IsNullOrEmpty(Html.Label(prop.PropertyName).ToHtmlString()))
			switch (prop.ModelType.Name)
				case "Boolean":

						<div class="SD_BoolField">
							<%= Html.CheckBox(prop.PropertyName) %>
							<%= Html.Label(prop.PropertyName) %>
							<%= Html.ValidationMessage(prop.PropertyName, 

Creating Content Type in a Hub and creating lists based on this content type



I am building a prototype of a Sharepoint app and I am new to this technology. We have a need for a piece with News items. Someone comes to a sharepoint site and adds a news piece there. This news content piece needs to be approved and to do that approver goes to a staging environment where they can see this news post in proper context (of how it would look in production) and can approve it. If they reject it, news piece never gets propagated to pro environment which also subscribes to this content type.  What I did was I created content type hub with a "News" content type in a Content Type hub and subscribed other sites to this hub. I can see this content type in subscribing sites.

I have following questions regarding this problem:

- Is it the right architecture for such a task?

- I am trying to create a list which would manage adding and editing of news items but I can't find any option to bind a custom list with content type, I can add site columns to a list but I am not able to base a list on a content type.

Thanks for your input.

Problems loading pages that require to be logged in.


So the problem is that when a user logs on the website and he tries to load a pages that requires someone to be logged in. For example to edit his profile or add a record to the database. So when I log in and try to load profile.aspx he gives me the following error.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

Line 58:     Public Overridable Property Voornaam() As String
Line 59:         Get
Line 60:             Return CType(Me.GetPropertyValue("Voornaam"),String)
Line 61:         End Get
Line 62:         Set

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\flanders_website\925da723\20319e75\App_Code.45wzfix6.19.vb    Line: 60

However if I try to do this on my local machine for testing everything works fine. (on the same da

Creating an excel object but server doesnt have Excel installed



The objective of my applications sounds quite simple, but with the old technologies, I am getting stuck everytime. I have a ASP web application which has a page to upload a spreadsheet from the client machine and save it on the server. This ASP application then calls a method in a DLL, which is developed in VB6 (not VB.Net). This VB DLL would create a excel object to open this spreadsheet (that has been saved on the server) and saves it as a csv file in the same path. This csv format data is then inserted into the database.

The problem that I am facing is, the VB6 program fails to create the excel object as the server doesnt have Office Excel installed. below is the VB code that I am trying to execute. It fails on thhe second line, where I am trying to create a Excel Application object and I get an error: "run-time error '429' activex component can't create object". I had tried to run the below VB code by adding reference to "Microsoft Excel 12.0 Object Library" (refers to C:\Program Files\Microsoft Office\Office12\Excel.exe) and "Microsoft Office 12.0 Object Library" (refers to C:\Program Files\Common Files\Microsoft Shared\Office12\MSO.DLL), creating a package out of it so that the required

Problems with creating a set or filter



I have a cube with several measures in it. I also have 2 time dimensions called Repoting Date (RD) and Business date (BD). The reporting date dimension is pretty small only containing the dates as the end of the month. The business date dimension is a normal time dimension on day basis.

Now I want to create a set  or filter where the reporting date is the same as the business date. And that should apply to all measures.

So I should get (BD.Date.2010-01-31, RD.Date.2010-01-31), (BD.Date.2010-02-28,RD.Date.2010-02-28)

Any thoughts on this one ?



Problems Creating a new site collection


Hi all,

I am attemping to create a new site collection in code. This works fine on my test box, but when I moved it to production I keep getting access denied. Here is some of the code I am using:

Protected Sub btnCreate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnCreate.Click

        'Create the new site collection
        Dim elevatedCode As New SPSecurity.CodeToRunElevated(AddressOf CreateSite)

  End Sub ' End btnCreate_Click
''' <summary>
  ''' Create the new site collection
  ''' </summar

I have some problems creating a wizard in MVC


Hello! This is my first post here but i have read a lot of helpful threads before, so, thank you for all your answers :)
Now, I have a problem with an application. I want to create a Wizard using MVC. In this picture you can see the main structure:

Having Problems creating a development copy of a fairly complex live site, sharepoint 2007


Hi All,

I have inherited a sharepoint distribution from a previous set of contractors, which I am now trying to set up for a developer hired to fix a few bugs in custom code.
This sharepoint installation consists of a farm that includes the following: - Not Configured - Windows Sharepoint Services Incoming E-Mail, Windows Sharepoint  Services Web Application - Central Administration / Excel Calculation Services / Office Sharepoint Server Search / WSS Incoming email / WSS Web App - Office Sharepoint Server Search / WSS Incoming email / WSS web app

SQLCluster - WSS Database

I have a development machine with a single install of sharepoint / mssql 2005 that I would like to set up as a test server for code/database changes

I set out thus to export (stsadm -o export etc.) a copy of the live site, and import it into my test server. This gave me a lot of errors regarding features, which I looked up to be custom solutions that were not installed, so I installed those, and attempted the import again, this time another error regarding features missing. I checked the features/template directory and noticed on live there are a few features that are not listed in the solutions panel, these look to be mostly custom webparts

Creating Report in Report Builder Based on the Two or more Lists ?


Hi Friends,

I need to prepare the report based on the two lists.

For that

 1. Created DataSource and i added two Data Sets

DataSet1(Coloumns) - Admission_Number, Student_Name, Date_Of_Birth, Class

DataSet2(Coloumns) - Admission_Number, Uniform, Class

2. Applied Filter in two Data Sets as "Admission Number"

  My Concept is Based on that "Admission Number" i want to retrive the two lists data into one report.

After Creating Table

When i Click on Run Getting This Error

( System.Web.Services.Protocols.SoapException: The Value expression for the text box ‘Uniform’ refers to the field ‘Uniform’.  Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
   at Microsoft.ReportingServices.WebServer.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
   at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings) )

Please help me


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