Wednesday, July 14, 2010
ReportViewer not getting displayed on IIS7
Tuesday, July 13, 2010
ASP.Net Menu control not working in IE 8. Hot fix.
A simple Web Service for the beginners; ASP.Net C#
[WebMethod]
public static Int64 VerifyDuplicateActivation(Int64 DetailsId)
{
Int64 RecordsCount = 0;
string connString = ConfigurationManager.AppSettings["DatabaseAnalyzeUAT1"].ToString();
SqlConnection oConn = new SqlConnection(connString);
SqlCommand oCommand = new SqlCommand();
oCommand.Connection = oConn;
oCommand.CommandText = "VerifyTeamActivation";
oCommand.CommandType = CommandType.StoredProcedure;
oCommand.Parameters.AddWithValue("@DetailsID", DetailsId);
oCommand.Parameters.Add("@RecordCount", SqlDbType.BigInt);
oCommand.Parameters["@RecordCount"].Direction = ParameterDirection.Output;
oConn.Open();
oCommand.ExecuteScalar();
RecordsCount = (Int64)oCommand.Parameters["@RecordCount"].Value;
return RecordsCount;
}
Consuming WebService is just a method call if it is from Server Side.
Wednesday, July 7, 2010
Patterns & Practices: Repository Factory for Data Access Creation
The Repository Factory is not intended to be a be-all-does-everything ORM solution. Instead, it's a lightweight code generator that automates most of the hand-coding needed to build domain model object and persist them to a database
Download it Here
How to Create Data Access Layer in ASP.Net with Repository Factory
Never run ASP.NET Applications with debug=”true” enabled in Live Server
When debug is set to true, the following happens in the application scope.
When
Sunday, May 30, 2010
Developing Custom Content Types for SharePoint
A content type is an object that is stored within MOSS that defines several elements of a piece of content, including:
- Document Template that the content will be based on
- Columns that the content will have associated with it (metadata)
- Workflows that the content will use
- Information Management policies that apply to the content
- Conversion types for the content
Monday, May 17, 2010
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID - MOSS
You may see this error in the EVENT VIEWER - more than once - when working with your Microsoft Office SharePoint Server (MOSS) 2007 deployment. This animal / error generally shows itself after you have applied an upgrade to an existing deployment. For example, when upgrading from B2 MOSS to B2TR MOSS - or when applying a special service pack from MSFT - you may begin to see a lot of these errors pop up in the SYSTEM event log.
The error CLSID is followed by a class ID for the DCOM+ application that the service account trying to activate that application - does NOT have permission to activate.
For example, let's say I installed MOSS on a server, and used the account mossService as the service account (a least privileged, user account you created to run the MOSS service(s))., when I get this error, I could very well see an error like the following:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user
Copy the GUID following the CLSID above, and go to REGEDIT
Start-->Run-->regedit
With the registry editor open, ensure that your cursor is on the computer at the beginning of the tree (make sure you are not in the middle of some previous edit session in the registry editor).
Edit-->Find and paste in the GUID. It'll stop at the application entry - and you will want to note the application name on the right side pane. In this example, it was the IIS WAMREG admin service that popped up.
Now, open Component Services from the server :-
Start-->Administrative Tools-->Component Services,
Expand Component Services, Computers, My Computer, DCOM Config. Scroll down and find the application (IIS WAMREG in this case).
Right-Click-->Properties and select the Security tab.
You'll have some options here - the first block Launch and Activation Permissions - ensure that the Customize radio button is selected, and click Edit. Now,
Add your service account - giving it launch and activate - and in some requirements - remote launch / activate permission.
Restart IIS and continue on.