Tuesday, October 12, 2010

How to add aspx page in Sharepoint site

In this article,we gonna discuss about "How to add aspx page in Sharepoint site?".In Sharepoint, we can create our own site or webpart page using Sites and Workspace which is available in Site Settings.

In some scenario ,If you want to add custom aspx page.The following steps are required.Lemme explain in detail

  • -Create aspx page (sample.aspx) using Visual Studio 
  • -Give strong name assembly
  • -Publish the Site
  • -Copy  the dll (Website dll) 
  • -Put the dll in GAC.
  • -Also put the dll in BIN folder (Location :C:\Inetpub\....\<port no>\bin )
  • -Create the folder in C:\Inetpub\....\<port no>\suresh (New folder) 
  • -Place the aspx page in this folder
  • -Create Virtual directory in IIS under the Websites\port no\IIS_Suresh(Newly created folder)
  • - Map the virtual directory folder (IIS_Suresh) with suresh folder.Now the virtual directory points to the suresh folder.

Pls do the below changes in WEB.CONFIG

  • -Add the safe controls 
  • -Change the trust level to WSS_minimal to WSS_Medium

Now try to  access the page http://servername:portno/Suresh/sample.aspx.

Success..You can the access the page.


Tuesday, October 5, 2010

"Not enough memory available on this host" - VPC 2007 Error message

The following are the fix for this error:

1.Uninstall the Nero software or InCD services.Bcoz always it consumes the lot of memory.

2.Right Click My Computer ->Properties->Advanced Tab->Performance->Advanced Tab->Virtual Memory (Click the Change button)->Modify the Min & Max memory for C:\.
Note : By doing these,will increase your virtual memory paging file size.

3.If you have  stopped Nero & InCD services and still you are getting the error .Pls try to reduce the allocated memory in VPC.

Just try the above 3 steps .It should work for any one of these options.

Wednesday, September 1, 2010

Suresh Sharepoint: Paging Content Query Webpart

Suresh Sharepoint: Paging Content Query Webpart: "Hi Guys, If you want to add the Paging option in Content Query webpart. Pls have a look(http://blog.mastykarz.nl/paging-content-query-web-p..."

Monday, August 30, 2010

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level , the name does not exist"

Error Description:


Suppose you have created folder under C:\inetpub\..\80 .It's having user control files & images .If you try to access the user control or images in sharepoint site ,then you will get the above error. bcoz the folder is not mapped to IIS.

To fix the issue .Pls do the following steps

2.Under websites folder->Your website->Select the folder->Right click ->Properties->Directory Tab
3.Click the Create button (It is visible if application is not created,otherwise you can see the "Remove" button - It means Application already created for this folder)
4.Select the URL name (where the application is used).
5.Reset the IIS


Sunday, August 29, 2010

Paging Content Query Webpart

Hi Guys,

If you want to add the Paging option in Content Query webpart. Pls have a look(http://blog.mastykarz.nl/paging-content-query-web-part/).

The following steps you need to do:

1.Download the .wsp file
2.Put the file in ..12/bin/
3.Run this command "stsadm -o addsolution -filename ExtendedCQWP.wsp
4.Goto Central Admin->Operations->Solution Management
5.Deploy the ExtendedCQWP.wsp file(Specify the Web application)
6.Goto your sharepoint Site Settigs->Site Collection Feature->Actiavate the Extended Content Query webpart.
7.Now the ExtendedCQWP & ExtendedCQWP Pager webpart is added in webart gallery.
8.Just add the webparts(Both ECQWP & Pager) in your page where you need.
9.Connect the webparts (Click the connections(next to modify shared webpart)).
10 .In Extended CQWP ->Modify shared webpart -> Data view->Query string variable (Type "page")
11. In "items per page" give the value more than 0(zero).
12.Publish the page.
13.At first time just append "?page=1" in url then only it will work.

Ask me , if you have any queries.