Friday 11 July 2014

Dell SharePoint Dell Interview question

Site Defination and site template?
Ans:
Site Definitions are the foundations on which all sites and user templates are built.
Site Definition is collection ox XML and .aspx file.
Site Definitions are predefined components needs to be included when a site was created in SharePoint server.
Site Definition contains information of Web Part , Lists, Features and navigation bars to be included in the site.
Customizing Portal Sites and other SharePoint sites using Site Definition is most appropriate for third party developer and SharePoint Administrator.
Site Definitions requires access to a file system of the Web Server.
Server administrator must be also involved in deployment of Site Definitions.
Custom Site Definitions are Version and Upgrade independent.
Subsequent upgrades to SharePoint products and technologies may overwrite existing Site Definitions. Using Custom Site definition exclude site from potential upgrade issues.
To avoid Unghosting , Custom Site Definition is to be create.
There are two options to create it
Create New Site Definition File : Either Start from Scratch and create files one by one or Copy an existing Site Definition and modify it.
Copy a Site Definition and change it in Visual Studio: We can make copy an existing site definition and modify it in visual studio to create new site definition.
The configuration of this site definitions are defined in XML file which is available in
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML folder.
In the file system these definitions are available in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\Site Templates.
Each of these site definitions consists a XML folder and a Home page (default.aspx).
Ref:http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/sitedefinition01062009214413PM/sitedefinition.aspx
--------------------------------------------------------
Delay Signing an Assembly?
Ans:

When we talk about the Assembly then the first thing comes into our mind is the security for high level development. Delayed signing is the terminology when we are certifying the assembly which will prevent hi-jacking of that assembly.
Delayed signing refers to a technique of partially signing assemblies while they are in development phase. So, signing an assembly basically certifies that assembly by the manufacturer and prevents tampering and hi-jacking of that assembly. This is achievable by using public key/private key encoding of parts of the assembly. The public key is embedded in the assembly and will be used by third-parties who want to reference the assembly. There are many more benefits to signing an assembly, but the main purpose of delayed signing is to allow a company to protect and control its private key and only use it during the packaging process. A delayed signed assembly can still be used like a signed assembly, you just can't package and ship it.
Steps to certify the Assembly:-
Delays sign a .NET app:
sn -k keypair.snk
1. sn -p keypair.snk public.snk
2. Build assembly with:
[assembly: AssemblyDelaySign("false")]
[assembly: AssemblyKeyFile("..\\..\\keypair.snk")]
3. sn -Vr AssemblyName.dll
4. This step is critical and is not mentioned anywhere. Exit and restart every instance of VisualStudio running. Until you do this Visual Studio will not know of the sn -Vr from step 4 and you will get
"COM Interop registration failed. The check of the signature failed for assembly AssemblyName.dll"
When to Delay Sign Assemblies
In a workplace where many developers are working on a project, there is every possibility of private key of assembly being mishandled. Hence in a development environment, it becomes mandatory to maintain the integrity of the system during tests and build. This is where delay signing proves significant.
What is Delay Signing?
Delay signing is a process of generating partial signature during development with access only to the public key. The private key can be stored securely and used to apply the final strong name signature just before shipping the project.
---------------------------------------------------------------------------------------------------
Custom Web part with out sn key if you deploy in MOSS what will happen?.
How to deploy ascx in moss?

Sharepoint Webpart Using Web User Control
http://www.a2zdotnet.com/View.aspx?Id=95
Diff b/w ascx and web part?
What is override method..what it will do?
what r the methods we 'll use in custom web part?
page prerender event asp.net?
which one is first page load or page prerender?
what is .stp and use of it?
look up field?

I 'v x and y lists. X having a lookup filed from y. I took back of X and restore in another site? Shall i get any error? or how can i get
Look up from Y?

Ans: Error will not come. Lookup filed come in the new list but data will not be available.
Ans) We will get column name but data willnot available
How to create a instance for list item in MOSS Object model code.
How to hide a webpart depends on user roles in moss?