Sunday, December 12, 2010

How to install ASP.NET windows services using installutil command

1. To install ASP.NET windows services require framework to installed on same server
2. once you complete framework installation, then take service.exe(which was builed) and open command prompt from run by typing cmd
3. go to followng location  c:\Windows\Microsoft.NET\Framework\v2.0.50727\
4. then type following command with service .exe file path as show below
eg:  installutil /i c:/<folderpath>/service.exe   
       or
      c:\Windows\Microsoft.NET\Framework\v2.0.50727>nstallutil /i c:/<folderpath>/service.exe  
     click on enter to execute
5. once installation will complete, then go run and type services.msc to open services window
6. select installed service then aright click and start the serviice.

Friday, December 10, 2010

Outlook setup for Gmail Account

If you're setting up Outlook  to work with Gmail for the first time, you'll need to:

Enable POP in Gmail.
Configure your Outlook  client.

To enable POP in Gmail:

Sign in to Gmail.
Click Settings at the top of any Gmail page.
Click Forwarding and POP/IMAP.
Select Enable POP for all mail or Enable POP for mail that arrives from now on.
Choose what to do with your messages after they're accessed with your POP client or device.
Configure your POP client* and click Save Changes.
######
######
To configure Outlook 2007 for your Gmail address:

Enable POP in your email account. Don't forget to click Save Changes when you're done.
Open Outlook.
Click the Tools menu, and select Account Settings...
On the E-mail tab, click New...
If you are prompted to Choose E-mail Service, select Microsoft Exchange, POP3, IMAP, or HTTP, and click Next.
Fill in all necessary fields to include the following information:
Your Name: Enter your name as you would like it to appear in the From: field of outgoing messages.
Email Address: Enter your full Gmail email address (username@gmail.com). Google Apps users, enter your full address in the format username@your_domain.com.
Password: Enter your email password.

Manually configure server settings or additional server types: Leave this option unchecked if you want to automatically configure Outlook 2007. If you want to manually configure Outlook 2007, check this box now. Google Apps users should configure manually as follows.

########

########
Click Next. If you are configuring Outlook 2007 automatically, you're done! Just click Finish.
######

######
If you are configuring Outlook 2007 manually, select Internet E-mail and click Next.
Verify your User Information, and enter the following additional information:

Server Information

Account Type: POP3

Incoming mail server: pop.gmail.com (Google Apps users, enter the server names provided, don't add your domain name in these steps)

Outgoing mail server (SMTP): smtp.gmail.com

Logon Information

User Name: Enter your Gmail username (including @gmail.com). Google Apps users, enter your full address in the format username@your_domain.com

Password: Enter your email password.

Require logon using Secure Password Authentication (SPA): Leave this option unchecked.

######

######
Click the More Settings... button, and select the Outgoing Server tab.
Check the box next to My outgoing server (SMTP) requires authentication and select Use same settings as my incoming mail server.
####

####
Click the Advanced tab, and check the box next to This server requires an encrypted connection (SSL) under Incoming Server (POP3). Enter 995 in the 'Incoming Server' box.
In the Outgoing server (SMTP) box, enter 587, and select TLS from the drop-down menu next to Use the following type of encrypted connection:.
####

#####
Click OK.
Click Test Account Settings... After receiving 'Congratulations! All tests completed successfully', click Close.
Click Next, and then click Finish.

how to take database Backup(.bak) on MSSQL server 2005/2008

Following is the one of the Backup method on MSSQL server 2005/2008

Open  Microsoft SQL Server Management Studio and login with admin privileges.

Expand database server name -- >  databases -- > under databases select database and right click in the selected DB for which you want to take backup -- >  then Tasks --> Backup,

















then it   will redirect to the backup wizard. as shown below.as shown below. then under source select backup type as FULL.

   Under backup set give proper backup name

  under destinaton click on Add button then select database destination wizard will open.
  then click on broese button it will open locate database file where we can give detinaton of (.bak)back file with name as shown below.

Once backup process complete you can success message as following window .

Unable to load Print Client control while browsing reports using asp.net application for RS2008


For Reporting Services 2008, there is no limitation of version required.


check the version of the ReportViewer control.
You do this by viewing a report on a client machine.
Then right click on the report and select “View Source”.
Locate the line that looks like this:
"/TestRSClientPrintReportViewer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=X.Y.ZZZZ 3. Now, if the control type is “Reserved.ReportViewerWebPart.axd” then this is an issue with SharePoint. The “Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies” has been updated to work with the new rsclientprint.dll. Download center link: 
http://www.microsoft.com/downloads/details.aspx?FamilyID=1e53f882-0c16-4847-b331-132274ae8c84&displaylang=en


 If the control type is “Reserved.ReportViewerWebControl.axd” we should check the following:


We have 2 different major versions here: 8.00.50727 and 9.00.XXXX.


If you see version 8.00.50727 this means you are browsing reports from within CRM or using the ReportViewer control in a custom 2005 web application.
If you see version 8.00.50727 and the version is earlier than 8.00.50727.1843 then you should install Report Viewer Redistributable 2005 Service Pack 1 on the ReportServer or on the CRM server:
Microsoft Report Viewer Redistributable 2005 Service Pack 1
http://www.microsoft.com/downloads/details.aspx?familyid=82833F27-081D-4B72-83EF-2836360A904D&displaylang=en


If you see version 9.00.XXXX or 9.0.XXXX then you are browsing through Report Manager, Report Server or perhaps a customer web application built with VS 2008.
Then you should install the below on the report server:
Microsoft Report Viewer 2008 SP1 Redistributable
http://www.microsoft.com/downloads/details.aspx?FamilyID=bb196d5d-76c2-4a0e-9458-267d22b6aac6&DisplayLang=en


After having updated the ReportViewer control you must issue an iisreset command so that the updated controls will take effect.


Client Side steps that could be required, in case even after upgrading the Report Server, the issue is not fixed –


1. Unregister RSClientPrint.dll in c:\windows\system32 folder.
2. Delete all RSClientPrint.dll and RSClientPrint*.rll files from c:\windows\system32 folder.
3. Go to Windows\Downloaded Program Files and delete the RSClientPrint 2005 Class
4. Set the IE Intranet setting to prompt for ActiveX downloads
5. Run the Report.
6. Install the SQL Server ActiveX plugging when prompted.
7. Check the Downloaded Program Files through explorer and command prompt. It should say RSClient 2005 Class.
8. If a message comes up stating that “An error occurred during printing (0x80070006)”, then reboot machine.
9. Run the Report.
10. If the error shows up again, go to c:\windows\downloaded program files in explorer and right click and remove the RSClientPrint 2005 Class.

Enable ProFTP on Linux server in xampp

When you install Xampp on lnux it will by default proftp also install, only you need to enable the service.

/opt/lampp/lampp startftp

startftp: Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.

ProFTPD uses the password "lampp" for user "nobody".

/opt/lampp/lampp startftp
stopftp: Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.

/opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5)