Thursday, March 29, 2012

Command To Convert dbf file into SharePoint 2010 Lit

Recently I have received the dbf data I need to get data into SP-list ,I worked hard to convert this I got a command i.e converts dbf file into sql and from sql using external data I brought into SP list below is the Command .Open the command prompt and run the below syntax

dbfcommander.exe -e
example:
dbfcommander.exe -e "D:\Data\customer.dbf" "D:\customer.sql"

Convert Windows Authentication Web Application Into FBA

The is a lot of dereference between windows Authentication and FBA Authentication .If you have done the project in classic Authentication and want to convert it into Claims in the middle of the project then you open the SharePoint 2010 powershell command as administratior and run the below command

$ConvertApp=get-spwebapplication "URl"
$ConvertApp.useclaimsauthentication="True"
$ConvertApp.Update()

Best way to Upload Images in asp.net

Hi all,
Some of our blog members are working on asp.net ,I am receiving the information most of the times about uploading the Images in asp.net as far as I am concern below code is the best way to upload the image which accepts any extension.

string imgname = FileUpload1.FileName;
string path =Server.MapPath ("~/Images")+"//"+imgname;
FileUpload1.SaveAs(path);
Image1.ImageUrl = "Images/" + FileUpload1.PostedFile.FileName;

Saturday, March 24, 2012

Adding DLL files into Global Cache in Windows 7

1. You must be a member of the Administrator Group.

2. Navigate to "C:\Windows\assembly" in the explorer and right click on it and select "Open in new window".

3. Type 'cmd' in run and as it appears in the top, right click on it and select "Run as administrator".

4. In the command prompt navigate to "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64"

5. Now use the following command: gacutil -i "full path of the file system\XYZ.dll"

6. You will get a message "Assembly successfully added to the cache"

7. Refresh the assembly folder that you have opened in step 2 and you will find your applications assembly there.

Unhandled exception occurred in Silverlight Applications in SharePoint 2010

"unhandled exception occurred in Silverlight Applications".This is error where we frequently get when we try to create any template selecting "more options" from site settings.This solution can be solved easily by going to Central Admin->Web Applications ->General Settings.Then your general settings web page security validation will be in on as below image,You just turn it to "off" else if it is "Off" turn it to "On"

Friday, March 9, 2012

sharepoint 2010 an unexpected error has occurred

When We come across this kind of errors ,To know the reason for this error we need to follow the steps.

->Open IIS as Administrator and select web application in which your site is existed
->Right click the web application and select explore
->Now open the web-config file in notepad and type callstack .Set callstack to false if is true else if callstack is true set it as false
->And search for customerror mode and set it to off if it is off else if customerror is off set it as on

"New" Web Application Icon in Disabled Mode

Reason
Not opening the IE in Central admin.

Solution:
Right Click the I.E on below Task bar ->And Right click on Internet Explorer option->Run As Administrator

Getting Blank page instead of Central Admin after installing SharePoint 2010 in Windows 7

Reason:
By default, some of the authentication providers may not be installed in Windows 7 machine (inside IIS). You can check the list of authentication providers by double click on the central administration site in IIS. See the sample screenshot below.

If you double click in the "Authentication" open for central admin when you opened IIS you cannot see the below authentication mechanisms:

1. Windows Authentication
2. Basic Authentication
3. Digest Authentication

Solution:
To add these authentication mechanisms in IIS, open the Command Prompt and type the below command. Then, wait for 2 minutes.

Command

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;WCF-NonHTTP-Activation