Subscribe: Smart Programming
http://smart-programming.blogspot.com/atom.xml
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
aspnet setreg  connection  control  create  download  error  login control  net  server  setreg exe  sql server  sql  user  web  windows 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Smart Programming

Smart Programming



Tips to make your programming life easier



Updated: 2014-10-01T22:16:21.081-07:00

 



Adobe PDF error "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser"

2011-07-20T07:31:55.755-07:00

When using Adobe PDF to view PDF file in browser, you may encounter the following error:"The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.Please exit Adobe Acrobat/Reader and exit your Web Browser and try again."I have visited tons of forums but am yet to find a concrete solution. However the below solution can also help.Solution 1:1. Click Start->Run->(image)



Couldn't access Yahoo! Zimbra Desktop serve

2009-10-03T21:27:32.600-07:00

If you have used Yahoo Zimbra desktop & have received the following error, then read on to get the solution:"Couldn't access Yahoo! Zimbra Desktop server. If issue persists after reinstall, please check logs for errors and report to http://www.zimbra.com/forums/zimbra-desktop."If you not know Yahoo zimbra yet, you should download this fantastic equivalent to Outlook. It configures with all your (image)



How to Enable Remote errors on SQL reporting services.

2011-08-02T18:15:10.506-07:00

If you have been using SQL reporting services, you may have encountered few errors which just become difficult to resolve. In such cases, its advisable to enable the remote errors on your reporing services which helps you to understand the inner exceptions.The remote errors can be enabled on the reporting services in two ways:1. Using the SQL Server Management Studio Start Management Studio and (image)



Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled

2009-01-18T19:45:05.007-08:00

"Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled" error occurs when you try try to debug the application in Microsoft Visual Studio 2005 in Windows Vista Home Basic or in Windows Vista Home Premium using Internet Information Services (IIS) 7.0.This problem occurs because Windows Vista Home Basic and Windows Vista Home Premium (image)



Filezilla ECONNREFUSED Connection refused by server

2009-01-02T23:12:58.246-08:00

If you are a Filezilla user for all your FTP needs then you may have faced this error. When you try to connect to your web host using Filezilla, you get this error "ECONNREFUSED - Connection refused by server". When I first got this error, I ran around from my ISP to my web host to get a solution. All the suggestions from my ISP, my web host and filezilla failed.I just decided to take a step back(image)



Access violation at address 10002593 in Module 'LIBMYSQL.dll'

2008-11-06T20:33:50.067-08:00

When you install WinMySQLAdmin with MySQL and start WinMySQLAdmin you end with this error. Every time you start the control application you get a warning which is repeated until WinMySQLAdmin is shut down.Access violation at address 10002593 in Module 'LIBMYSQL.dll'Repeating the ErrorStart WinMySQLAdmin with the xampp and you should get the error again.Solution1. Open WinMySQlAdmin2. Click on the(image)



Illegal Interview questions

2008-11-06T20:00:08.286-08:00

Here's a list of Illegal interview questions I read about on TechRepublic.#1: Where were you born?#2: What is your native language?#3: Are you married?#4: Do you have children?#5: Do you plan to get pregnant?#6: How old are you?#7: Do you observe Yom Kippur?#8: Do you have a disability or chronic illness?#9: Are you in the National Guard?#10: Do you smoke or use alcohol?Read full details on (image)



Could not create Windows user token from the credentials specified in the config file

2008-11-06T20:00:33.310-08:00

Error: "Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user... "This error usually is encountered when either the username / password is not valid for the selected user OR the selected user does not have necessary privilege.You can add the privileges by following the below steps:Run - Control Panel, (image)



How to use the ASP.NET utility to encrypt credentials and session state connection strings

2008-11-06T20:00:43.426-08:00

In your Asp.net applications, you might want to encrypt the impersonation userid & password. You can do this by using the tool provided by Microsoft and encrypt the userName and password attributes to be used with the section.1. Download aspnet_setreg.exe from this location:http://download.microsoft.com/download/2/9/8/29829651-e0f0-412e-92d0-e79da46fd7a5/aspnet_setreg.exe2. ideally you can (image)



Error reading configuration information from the registry

2008-11-06T20:01:04.293-08:00

You will encounter this error if you are trying to read from the registry. This error specifies that some thing is wrong with the process account when reading the identity information from the registry.Try the below steps to resolve the issue:1. Open Regedt32.exe2. Navigate to HKLM\SOFTWARE\SECURE_APP\identity (Replace SECURE_APP with the app name that you have entered from the aspnet_setreg.exe3(image)



How to use the ASP.NET utility to encrypt credentials and session state connection strings

2008-11-06T20:01:13.444-08:00

In your Asp.net applications, you might want to encrypt the impersonation userid & password. You can do this by using the tool provided by Microsoft and encrypt the userName and password attributes to be used with the section.1. Download aspnet_setreg.exe from this location:http://download.microsoft.com/download/2/9/8/29829651-e0f0-412e-92d0-e79da46fd7a5/aspnet_setreg.exe2. ideally you can (image)



Adrotator in PHP

2008-11-06T20:01:32.918-08:00

Creating adrotaror is a simple step in PHP.You will have to create two files, the source from which you want to load the advertisements and the source which will read the ads to load on your page.You can create the ads.txt with following contents:First Ad--Second Ad--Third AdReplace the text First Ad, Second Ad, Third Ad with your Ad text. You can ad unlimited number of ads as long as you split (image)



SQL Server Creating User Defined Functions

2008-11-06T20:07:47.044-08:00

Here is the basic way to create a User defined Function in SQL Server:CREATE FUNCTION GETTRAININGSTATUS(@USERID VARCHAR(25),@TRAININGID INT)RETURNS INTASBEGINDECLARE @COUNT INTDECLARE @RETURNVALUE INTSET @COUNT = (SELECT COUNT(*) FROM TBLTRAININGSWHERE USERID = @USERID AND TRAININGID = @TRAININGID)IF(@COUNT = '')SET @RETURNVALUE = 0ELSE IF (@COUNT = 1)SET @RETURNVALUE = 1ELSE IF (@COUNT = 0)SET @(image)



SQL Server: Searching all columns in tables in a database for a keyword?

2008-11-06T20:02:35.131-08:00

Just found an interesting tip on this site about How to search all tables in SQL server for a particular keyword.You can read the article on the following link:How to Search Columns for a KeywordHere is the code listed on the site:CREATE PROC SearchAllTables(@SearchStr nvarchar(100))ASBEGIN-- Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.-- Purpose: To search all columns of all (image)



Advantages of using Stored Procedures

2008-11-06T20:02:46.022-08:00

Below listed are some of the advantages of using Stored Procedures. This is one of the common questions in job interviews. I have conducted lot of interviews and have heard candidates telling mostly only one answer. "Stored procedure is precompiled and hence has faster execution".Below listed are the ones which you can now talk on and show your technical expertise. :)Execution plan retention and (image)



Using Dynamic SQL Statements in Stored Procedures

2008-11-06T20:03:05.562-08:00

SQL contains a command, EXEC (or EXECUTE), which can be used to dynamically execute a SQL statement. EXEC expects a string - the SQL statement you wish to execute. It will execute the SQL statement passed and returns the results.Example:CREATE PROCEDURE SP_GETELEMENTVALUESFORID@ELEMENT varchar(100),@EMPLOYEEID varchar(100)ASDECLARE @QUERY varchar(250)IF(@ELEMENT = 'LOCATION') SET @QUERY = '(image)



ASP.net Error Both DataSource and DataSourceID are defined on dropdownlist

2008-11-06T20:03:12.591-08:00

This is a very interesting Error. I had tried to find the solution using step by step approach. (Sounds funny for a user using Visual Studio.net)Anyway if I create a control and bind it to a datasource from code behind, every thing is fine. The moment I rename the control and try the code after making necessary changes in code behind, all hell breaks loose. I get the error "Both DataSource and (image)



An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that u

2008-11-06T20:03:33.562-08:00

This is one of the errors you will get if you have used Network Library with your connection string to indicate the connection uses TCP/IP and not named pipes.(image)



SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

2011-08-07T18:11:40.095-07:00

Lately I was working on a new ASP.net application when I had to deploy the application on one machine and the database on the other. Other machine only had SQL Server 2000 deployed. Though I had been receiving the errors:"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings (image)



Installing PHP on IIS

2008-11-06T20:03:59.997-08:00

Installing PHP with IIS is perhaps the easiest thing to do.First download the PHP installer for Windows from PHP.net which should be located at http://www.php.net/downloads.phpDouble click the installer and select the path to install PHP. You can install it anywhere you want. You should take care not to install it in a path with folder name which has a space. e.g. Program Files. The installer (image)



Disable browser caching in ASP.NET - ASPdev.org

2008-11-06T20:04:07.219-08:00

Removing caching from the ASP.net Page.This is absolutely essential when using AJAX to retrieve time. if Cache for the AJAX page is not disabled, the page returns the same time for all requests.Disable browser caching in ASP.NET - ASPdev.org: "Add the following line on top of the Page_Load event handler and your ASP.NET page will not be cached in the users browsers:Response.Cache.SetCacheability((image)



Using the Request.ServerVariables Object

2008-11-06T20:04:32.930-08:00

Request.ServerVariables Object:The ServerVariables Object has many properties besides the 'LOGON_USER'. Here is a list of all of the properties and their uses:AUTH_TYPE: The authentication method that the server uses to validate users when they attempt to access a protected script.CONTENT_LENGTH: The length of the content as given by the client.CONTENT_TYPE: The data type of the content. Used (image)



Technology for Evil

2011-08-07T18:10:23.127-07:00

Scott Swigart explains some nice things about technology. he also has managed to start a debate in my head about the changes in technology and hacks to it. Well read on....Using technology for EvilBy: Scott SwigartAsynchronous JavaScript and XML (aka AJAX) promises to make Web sites interactive in ways that simply weren’t feasible in the past. And with various AJAX frameworks, such as the Atlas (image)



PHP, ASP or ASP.NET?

2008-11-06T20:04:52.727-08:00

The following is an interesting piece of discussion I saw on the site, which is the best language PHP, ASP or ASP.net. Truly in my opinion, each one has its own unique features and advantages, I have been committed to ASP.net but lately also tried my hands on PHP. I found it excellent. What about you?PHP, ASP or ASP.NET? - Program - Web Technologies - Builder AU: "PHP – Hypertext Pre-processorPHP(image)



USING ASP.net LOGIN CONTROL

2008-11-06T20:05:11.973-08:00

Asp.net 2.0 provides a good login control. Instead of the developer coding his heads out on creating the login control, he / she can directly use the login control on the page and let ASP.net take care of the logistics.To use the login control its important that you configure the database to store the credentials. On creating the website in ASP.net, you can click on the Web site menu and select (image)