Stop Debugging
Stop Debugging
stopdebugging.wordpress.com
2
Contents
1 2013 7
1.1 June . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About (2013-06-13 10:25) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Welcome to Stop Debugging.... (2013-06-13 10:46) . . . . . . . . . . . . . . . . . . . . . . . 7
Error: Project could not be opened because the Visual C# 2012 compiler could not be created.
(2013-06-13 12:33) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Error: SQLLite error, insufficient parameters supplied to the command. (2013-06-13 18:04) 8
Error: No valid Oracle clients found. You need at least one 64-bit client properly configured.
(2013-06-17 10:36) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Error: Cannot retrieve the column code page info from the OLE DB provider.
(2013-06-18 14:40) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Error: Virus and spyware definitions update failed (2013-06-19 08:31) . . . . . . . . . . . . 11
1.2 July . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Error: ’Object.get’ must declare a body because it is not marked abstract or extern.
Automatically implemented properties must define both get and set accessors.
(2013-07-09 12:49) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Error: ’System.Array’ does not contain a definition for ’FirstOrDefault’ and no extension
method ’FirstOrDefault’ accepting a first argument of type ’System.Array’ could be
found (2013-07-11 09:22) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Error: Unable to evaluate expression because the code is optimized or a native frame is on top
of the call stack. (2013-07-11 09:58) . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3 September . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Error: Mailbox unavailable. The server response was: 5.7.1 [1.1.1.1] The IP you’re using to
send mail is not authorized (2013-09-15 06:01) . . . . . . . . . . . . . . . . . . . . 13
Error: The SMTP server requires a secure connection or the client was not authenticated. The
server response was: 5.7.0 Must issue a STARTTLS command first (2013-09-15 19:04) 13
Error: The EXECUTE permission was denied on the object ”, database ”, schema ”.
(2013-09-22 08:08) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4 October . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Error: SQL Server 2012 Installation Error code 0x84B10001 (2013-10-10 12:32) . . . . . . . 14
3
Error: Unable to start debugging on the web server. See help for common configurations errors.
Running the web page outside of the debugger may provide further information.
(2013-10-14 14:30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Error: The path of the item ” is not valid. The full path must be less than 260 characters long;
other restrictions apply. If the report server is in native mode, the path must start
with slash. (rsInvalidItemPath) (2013-10-15 09:20) . . . . . . . . . . . . . . . . . . 15
Error: The attempt to connect to the report server failed. Check your connection information
and that the report server is a compatible version. The request failed with HTTP
status 404: Not Found. (2013-10-15 09:39) . . . . . . . . . . . . . . . . . . . . . . 16
Error: Unknown Host. Unable to locate the server named ”” — the server does not have a
DNS entry. (2013-10-17 13:56) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Error: ASP.NET 4.0 has not been registered on the Web Server (2013-10-17 14:43) . . . . . 17
Error: The Web Application Project ” is configured to use IIS. To access local IIS Web sites, you
must run Visual Studio in the context of an administrator account. (2013-10-24 12:57) 17
1.5 November . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Error: The Team Foundation Server ” is currently unavailable. This solution will be opened
offline. (2013-11-06 15:29) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Error: A transport-level error has occurred when receiving results from the server.
(provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
(2013-11-06 15:33) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Error: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed
prior to completion of the operation or the server is not responding. (2013-11-06 15:35) 18
Error: The LDAP server is unavailable. (2013-11-06 15:38) . . . . . . . . . . . . . . . . . . 19
Error: Object reference not set to an instance of an object. (2013-11-06 15:40) . . . . . . . 20
Error: The operation was aborted because the client side timeout limit was exceeded.
(2013-11-06 15:56) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Error: Microsoft JScript runtime error: Unable to get value of the property ”: object is null or
undefined (2013-11-14 09:47) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Error: An aggregate may not appear in the WHERE clause unless it is in a subquery contained
in a HAVING clause or a select list, and the column being aggregated is an outer
reference. (2013-11-19 16:49) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Error: Invalid column name ”. (2013-11-19 17:01) . . . . . . . . . . . . . . . . . . . . . . . . 21
Error: The number of elements in the select list exceeds the maximum allowed number of 4096
elements. (2013-11-19 17:12) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Error: Column ” is invalid in the select list because it is not contained in either an aggregate
function or the GROUP BY clause. (2013-11-19 17:28) . . . . . . . . . . . . . . . 22
Error: A Command with that name already exists (2013-11-20 13:47) . . . . . . . . . . . . 22
1.6 December . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Error: Cannot have multiple items selected in a DropDownList. (2013-12-14 13:36) . . . . . 23
Error: Column already has a DEFAULT bound to it. Could not create constraint.
(2013-12-14 14:11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4
Error: Unknown object type ” used in a CREATE, DROP, or ALTER statement.
(2013-12-14 14:51) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Error: ” is undefined (2013-12-14 16:55) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Error: 404 - File or directory not found. The resource you are looking for might have been
removed, had its name changed, or is temporarily unavailable. (2013-12-16 08:33) 25
Error: Unable to connect to the Database. A network-related or instance-specific error occurred
while establishing a connection to SQL Server. (2013-12-16 08:51) . . . . . . . . . 25
Error: The build must be stopped before the solution can be closed. (2013-12-16 13:26) . . 26
Error: Object cannot be cast from DBNull to other types. (2013-12-17 18:13) . . . . . . . . 26
Error: Must declare the scalar variable ””. (2013-12-18 15:34) . . . . . . . . . . . . . . . . . 26
Error: In order to run a trace against SQL Server you must be a member of sysadmin fixed
server role or have the ALTER TRACE permission. (2013-12-19 11:27) . . . . . . 27
Error: Incorrect syntax near the keyword ’top’ (2013-12-19 11:28) . . . . . . . . . . . . . . 27
2 2014 29
2.1 January . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Error: Column ” does not belong to table ”. (2014-01-06 11:13) . . . . . . . . . . . . . . . . 29
Error: User does not have permission to perform this action. (2014-01-06 11:26) . . . . . . 29
5
6
Chapter 1
2013
1.1 June
Hi All,
This web site or blog helps us to find solutions for most of the problems that everyone faces during their
development or application support cycle.
Post your error’s here in comment sections, I will try to troubleshoot it and post the solution for you.
Am trying to cover most issues facing while using Microsoft related products, Oracle etc...
So, enjoy browsing, reading, like the blog, share the blog and the important part is post your comments ...
Regards,
[2]Suthish Nair
1. file://localhost/mnt/ext/blogbooker/tmp/g2w3jqnx/www.c-sharpcorner.com
2. http://www.ssnair.net/
7
Error: Project could not be opened because the Visual C# 2012 compiler could not be
created. (2013-06-13 12:33)
Error: Project ’WebApplication1’ could not be opened because the Visual C # 2012 compiler could
not be created. Error creating instance of managed object ’Microsoft.VisualStudio.CSharp.Services.-
Language.ManagedObjectFactor y’ (Error code is 0x80131513).
Description: Facing this compiler issue, while creating a new Web Application through VS 2012.
Solution
1. Open exe, VS2012 x86 Native Tools Command Prompt (Run as administrator).
This will successfully uninstall the service from GAC, which was causing the problem.
Error: SQLLite error, insufficient parameters supplied to the command. (2013-06-13 18:04)
Description: This error occurs when you failed to provide or supply all the input output parameters
to the command text or a stored procedure.
For example:
[code language=”csharp”]
using (SQLiteCommand cmd = new SQLiteCommand(”update usermaster set emailid = @emailid, @phone
= @phone where userid = @userid”, con))
{
cmd.Parameters.Add(new SqliteParameter(”@emailid”, ”[email protected]”));
cmd.Parameters.Add(new SqliteParameter(”@userid”, 1));
}
[/code]
Above command having three input parameters but we are supplying only two @emailid and @userid.
During runtime, code will through above error.
8
Solution: Simple, just add the missing parameter to the command.
Note: Also remember not to have any extra spaces, that will again throw above error. Avoid,
Error: No valid Oracle clients found. You need at least one 64-bit client properly
configured. (2013-06-17 10:36)
Error: No valid Oracle clients found. You need at least one 64-bit client properly configured.
Description:
This error occurs when we try to connect an Oracle database, through a Client like Toad for Ora-
cle etc.. The error clearly says an 64-bit Oracle client need to be installed properly inorder to access the
database.
The required software link is ”Instant Client for Microsoft Windows (x64)”.
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
The latest version is Version 11.2.0.3.0, select the Instant Client Package - Basic Lite: Smaller ver-
sion of the Basic, with only English error messages and Unicode, ASCII, and Western European character
set support (10.2 only).
Unzip the files to your Oracle installation folder. e.g: C:/oracle or C:/oraclehome. So the client
installation is completed.
For that first set up the TNS ADMIN environment variable and later confure the tnsnames.ora.
[code language=”text”]
OracleDatabaseName Custom =
9
(DESCRIPTION =
(ADDRESS LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname or ipaddress)(PORT = portnum))
) (CONNECT DATA =
(SID = XE) (SERVER = DEDICATED)
)
)
[/code]
That’s it. Now open your client and access the database.
Error: Cannot retrieve the column code page info from the OLE DB provider.
(2013-06-18 14:40)
Error: [OLE DB Source [1]] Warning: Cannot retrieve the column code page info from the OLE DB provider.
If the component supports the ”DefaultCodePage” property, the code page from that property will be used.
Change the value of the property if the current string code page values are incorrect. If the component does
not support the property, the code page from the component’s locale ID will be used.
Description: This is actually a warning not an error by OLE DB. This warning occurs in SSIS project
while we do a data transfer from source (Oracle) to destination SQL Server via OLE DB. This is because
for the Oracle database the default code page is missing due to this it leads to bad data conversions. SSIS
supports the option of specifying a per-column Locale Identifier for string data types, such as CHARACTER.
However, the OLE DB Provider for Oracle does not support this option.
Solution: We can overcome this OLE DB warning by changing the property of OLE DB Source Data
Flow Component. That property is AlwaysUseDefaultCodePage, by default the value is False, change it to
True. Rebuild the project.
10
Joseph Morgan (2014-01-02 22:22:01)
This did solve my problem with one Oracle OLEDbConnection, but it continues to occur in others, even though I
have globally set AlwaysUseDefaultCodePage to true. I am going from Oracle to SQL Server 2008, and I am using
a data conversion task to put the unicode data from oracle into varchar(n) columns in SQL Server. It runs fine on
some boxes (Windows 7 64 bit) and oddly, on SSIS 2005 32 bit, but not on SSIS2008 64 bit. And yes, I have the
64 bit runtime enabled. Partial output: Error: 2014-01-02 16:57:45.99 Code: 0xC02020F6 Source: Get Account
Reductions GET AR3 [1] Description: Column ”USUS ID” cannot convert between unicode and non-unicode string
data types. End Error Warning: 2014-01-02 16:57:45.99 Code: 0x800470C8 Source: Get Account Reductions GET
AR3 [1] Description: The external columns for component ”GET AR3” (1) are out of synchronization with the
data source columns. The external column ”ACPR REF ID” needs to be updated. The external column ”ACPR
SUB TYPE” needs to be updated. The external column ”ACPR TX YR” needs to be updated. The external
column ”ACPR TYPE” needs to be updated. The external column ”LOBD ID” needs to be updated. The external
column ”ACPR PAYEE PR ID” needs to be updated. The external column ”ACPR PAYEE TYPE” needs to
be updated. The external column ”ACPR AUTO REDUC” needs to be updated. The external column ”ACPR
STS” needs to be updated. The external column ”EXCD ID” needs to be updated. The external column ”USUS
ID” needs to be updated. End Warning Error: 2014-01-02 16:57:46.06 Code: 0xC004706B Source: Get Account
Reductions SSIS.Pipeline Description: ”component ”GET AR3” (1)” failed validation and returned validation status
”VS ISBROKEN”. End Error Progress: 2014-01-02 16:57:46.06
Error: Virus and spyware definitions update failed. Windows Defender couldn’t check for virus and spyware
definition update. Check your Internet or network connection and try again.
Solution:
But the disadvantage is that every time you use it, you need to download the definition and run the installer.
So download and install the latest Microsoft Security Essentials definition updates.
11
”By default, Microsoft Security Essentials is designed to install and run updates automatically. If you
have disabled this feature or if you encounter problems updating automatically, you can manually download
and install the latest Microsoft Security Essentials definition updates for your computer.”
Even the website having the latest virus definition and released information.
So, download: mpam-fe.exe from [1]Malware Protection Center and run the installer.
1. http://www.microsoft.com/security/portal/definitions/howtomse.aspx
1.2 July
Error: ’Object.get’ must declare a body because it is not marked abstract or ex-
tern. Automatically implemented properties must define both get and set accessors.
(2013-07-09 12:49)
Error: ’Object.get’ must declare a body because it is not marked abstract or extern. Automatically imple-
mented properties must define both get and set accessors.
Description: This error occurs when you have a property with only get accessor or an Automatic prop-
erty with only get. The reason behind the auto generated properties with get can only access the value but
cannot ever set the property value because we have no access to the internal storage of property.
Error: ’System.Array’ does not contain a definition for ’FirstOrDefault’ and no extension
method ’FirstOrDefault’ accepting a first argument of type ’System.Array’ could be
found (2013-07-11 09:22)
Error: ’System.Array’ does not contain a definition for ’FirstOrDefault’ and no extension method ’FirstOrDe-
fault’ accepting a first argument of type ’System.Array’ could be found (are you missing a using directive or
an assembly reference?)
Description: When we trying to use FirstOrDefault to an object this error pop’s up. The reason be-
hind is that we not providing the correct references.
12
Error: Unable to evaluate expression because the code is optimized or a native frame is
on top of the call stack. (2013-07-11 09:58)
Error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call
stack.
Solution: Response.Redirect (URL, false); refer MSDN URL for more information.
http://support.microsoft.com/kb/312629/en-us
1. http://support.microsoft.com/kb/312629/en-us
1.3 September
Error: Mailbox unavailable. The server response was: 5.7.1 [1.1.1.1] The IP you’re using
to send mail is not authorized (2013-09-15 06:01)
Error: Mailbox unavailable. The server response was: 5.7.1 [1.1.1.1] The IP you’re using to send mail is not
authorized.
Description: This error occurs while sending mail . This information [1.1.1.1] holds our system IP Ad-
dress. While using GMAIL SMTP settings we will get this error and the error is not because of GMAIL
but SMTP configuration is not properly completed. The cause of the error, while sending a mail, the server
will look for the configured from address to send the mail and if that information is not provided, Mailbox
unavailable error will throws up. If the from address is not provided then, then by default the from address
will be taken from IIS SMTP settings.
Error: The SMTP server requires a secure connection or the client was not authenticated.
The server response was: 5.7.0 Must issue a STARTTLS command first (2013-09-15 19:04)
Error: The SMTP server requires a secure connection or the client was not authenticated. The server response
was: 5.7.0 Must issue a STARTTLS command first.
Description: This error occurs when you try to send an email using .Net code and the email account
configured to send email is a GMAIL account which having https enabled. You can view the settings from
tab Setting -> General -> Browser connection - Always use https.
13
var client = new SmtpClient();
client.EnableSsl = true;
Error: The EXECUTE permission was denied on the object ”, database ”, schema ”.
(2013-09-22 08:08)
Error: The EXECUTE permission was denied on the object ”, database ”, schema ”.
Description: Database’s requires specific roles or privileges, so that the users can perform or run stored
procedures, functions, views etc without any issues. One of that is the EXECUTE permission, which requires
specific permissions to perform that activity properly.
Solution: Go to Object Explorer, open Security followed by User node, then right click and select properties
of the configured user login. Under General tab, enable db datareader, db datawriter and db owner role
memberships.
1.4 October
Error: SQL Server 2012 Installation Error code 0x84B10001 (2013-10-10 12:32)
The reason behind the issue is because, already an installation of same version available on your sys-
tem.
Solution: From Control Panel, uninstall existing Microsoft SQL Server 2012 Setup installation and start
again with fresh installation,
Error: Unable to start debugging on the web server. See help for common configurations
errors. Running the web page outside of the debugger may provide further information.
(2013-10-14 14:30)
Error: Unable to start debugging on the web server. See help for common configurations errors.Running the
web page outside of the debugger may provide further information.
Description: This error occurs while running or debugging an application using Visual Studio 2010. The
reason behind this problem is because of .NET framework version configured for your project and the IIS
Default App Pool or the Pool that configured for your application is not matching correctly. For example:
.NET framework configured for project is v3.5 but at application pool level it might be v4 or higher. At this
time VS was unable to find out which pool should pick for debugging.
Solution: Go to Application Pool using, click Basic Settings under Edit Application Pool and remap the
correct .NET Framework version.
Example: If project using v3.5 then remap .NET Framework version to v2.0, rerun the project again.
Error: The path of the item ” is not valid. The full path must be less than 260 characters
long; other restrictions apply. If the report server is in native mode, the path must start
with slash. (rsInvalidItemPath) (2013-10-15 09:20)
Error: The path of the item ” is not valid. The full path must be less than 260 characters long; other
restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath)
Description: An SSRS related bug, when the Report path given to ServerReport web control is wrong
this error shows up.
15
<ServerReport ReportPath=”ReportProject1/Report1” ReportServerUrl=”http://server name/ReportServer”
/>
Solution: Correct the ReportPath by giving valid deployed folder path. In above tag one forward slash was
missing from the ReportPath property.
Error: The attempt to connect to the report server failed. Check your connection
information and that the report server is a compatible version. The request failed with
HTTP status 404: Not Found. (2013-10-15 09:39)
Error: The attempt to connect to the report server failed. Check your connection information and that the
report server is a compatible version. The request failed with HTTP status 404: Not Found.
Description: An SSRS related bug, when we try to access a Report Server which is not correctly con-
figured due to wrong or invalid URL then this error shows up.
Solution: The ReportServerUrl property of ServerReport server control should have a valid URL.
Error: Unknown Host. Unable to locate the server named ”” — the server does not
have a DNS entry. (2013-10-17 13:56)
Error: Unknown Host. Unable to locate the server named ”” — the server does not have a DNS entry.
Description: An SSRS error, unable to locate the server named ”” — the server does not have a DNS
16
entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the
name and try again. This error shows when we run the Report Manager or deployed server URL.
Solution: Open Internet Explorer, go to Tools menu then Internet Options, click on Connections tab
and then LAN Settings and uncheck Use a proxy server for your LAN. Now rerun the URL again.
Error: ASP.NET 4.0 has not been registered on the Web Server (2013-10-17 14:43)
Error: ASP.NET 4.0 has not been registered on the Web Server. You need to manually configure your Web
Server for ASP.NET 4.0 in order for your site to run correctly.
Description: I experienced this error while trying to run a web site after upgrading the .NET framework
to version 4.0 from version 3.5. This error occurs when we install IIS after .NET Framework installations
because of that the .NET Framework was not properly registered or configured over IIS so the web sites can
point to correct versions.
Solution: Multiple ways are there, Uninstall VS2010 and IIS then reinstall IIS followed by VS2010. Or,
before doing reinstall try to register .NET Framework 4.0 with IIS7x by opening the Visual Studio Command
Prompt (2010) under Administrative privileges, and then open framework folder ”C:\Windows\Microsoft.NET\
Framework\v4.0.30319”, enter aspnet regiis -i to register .NET Framework 4.0 with IIS7x. If that not works,
reinstall IIS, VS2010 and then register.
Error: The Web Application Project ” is configured to use IIS. To access local IIS
Web sites, you must run Visual Studio in the context of an administrator account.
(2013-10-24 12:57)
Error: The Web Application Project ” is configured to use IIS. To access local IIS Web sites, you must run
Visual Studio in the context of an administrator account.
Description: While trying to run the Visual Studio 2012, 2010, 2008 etc, we might get this error. Why we
getting this error, the reason is there in Error itself. Because of the security model configured for IIS7 (am
using). IIS7 configuration derives from NTFS ACLs on the distributed .config configuration files as well as
Allow/Deny/Inherit logic of the configuration properties within the distributed .config hierarchy. So in order
to run all the features, IIS requires administrative privileges. So if Visual Studio needs to access the web site
hosted or pointed over IIS requires an administrator rights.
2. Those who don’t want to access local IIS Web sites then edit the project, under node ProjectEx-
tensions, VisualStudio, FlavorProperties, WebProjectProperties find node <UseIIS> and change the value to
False. Reload the project.
1.5 November
Error: The Team Foundation Server ” is currently unavailable. This solution will be
opened offline. (2013-11-06 15:29)
Error: The Team Foundation Server ” is currently unavailable. This solution will be opened offline.
Description: Go Offline. The Team Foundation Server ” is currently unavailable. This solution will be
opened offline. This offline check will happen when we open a solution from Visual Studio that was mapped
with the TFS server. The server might not be reachable or not available at that point to synchronize with
your local solution copy.
Solution: Visual Studio will allow the solution to be opened or access while offline and once the TFS
connection got re-established the synchronization
can be done by clicking on ”Go Online” icon from Solution Explorer tool bar window.
Error: A transport-level error has occurred when receiving results from the server.
(provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
(2013-11-06 15:33)
Error: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider,
error: 0 - The semaphore timeout period has expired.)
Description: Again this error occurred due to slow network connection or bad network configuration. For
example, when we try to connect a SQL Server through application, and the request taking so much for the
output. The networking layers will bubble this error to SQL Server which will present to us as provider: TCP
Provider, error: 0 - The semaphore timeout period has expired.
Solution: Nothing related to code logic, just check the network connections are working properly or the server
is up and running. Contact your Network Administrator.
Error: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to comple-
tion of the operation or the server is not responding.
18
Description: There can be many reason.
Solution:
Solution:
19
Error: Object reference not set to an instance of an object. (2013-11-06 15:40)
Description: This error throws when a program trying to access a member fields, or function types, on
an object reference that points to null. Using NullReferenceException, will throw exception when the variable
is null.
Solution: Put a null check on the object and also implement Exception Handling techniques to catch
the error.
Error: The operation was aborted because the client side timeout limit was exceeded.
(2013-11-06 15:56)
Error: The operation was aborted because the client side timeout limit was exceeded.
Description: Let’s take an example, here the client side we will refer to Active Directory. The Active
Directory module imposes a two-minute operations timeout. When the timeout reached, the connection will
be dropped and server will return operation timeout error message like ”Ldap operation timeout”. This might
happen due to slow network connection or the Active directory querying results are not returned within the
two minutes. This can be happened with any database queries also.
Solution:
Error: Microsoft JScript runtime error: Unable to get value of the property ”: object is
null or undefined (2013-11-14 09:47)
Error: Microsoft JScript runtime error: Unable to get value of the property ”: object is null or undefined
Description: A JavaScript related error which comes from the browser scripting engine. When the JavaScript
Interpreter start parsing and executing any script codes, but unable to find the document element, then this
error throws up. Because the document element or object is not found or not exist on page so that the object
is return as null. null is actually an object value indicating that a variable references nothing in particular.
Some browsers ignore this error but some just throws it.
Example:
[code language=”javascript”]
function window.onload()
20
{
document.getElementById(”txtMe”).focus();
}
[/code]
[code language=”javascript”]
function window.onload()
{
if (document.getElementById(”txtMe”) != null)
{
document.getElementById(”txtMe”).focus();
}
}
[/code]
Error: An aggregate may not appear in the WHERE clause unless it is in a subquery
contained in a HAVING clause or a select list, and the column being aggregated is an
outer reference. (2013-11-19 16:49)
Error: An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING
clause or a select list, and the column being aggregated is an outer reference.
Description: This error occur when we try to use aggregate functions with WHERE clause. Because,
WHERE clause filters ungrouped elements or we can say WHERE clause can filter only table row-by-row or
individual records.
Solution: By using HAVING clause instead of WHERE clause, which specifies a search condition for a
group or an aggregate. HAVING can be used only with the SELECT statement which should return only
those rows where aggregate values meet the specified conditions. HAVING is typically used in a GROUP BY
clause. When GROUP BY is not used, HAVING behaves like a WHERE clause.
Solution: Check whether the column exists in table. Check the column name used in SELECT clause
is correct or not.
21
Error: The number of elements in the select list exceeds the maximum allowed number
of 4096 elements. (2013-11-19 17:12)
Error: The number of elements in the select list exceeds the maximum allowed number of 4096 elements.
Description: The number of elements in the select list exceeds the maximum allowed number of 4096
elements.
Solution: The maximum number of expressions that can be specified in the select list is 4096 only. Reduce
the columns or column names from select list (select list is a series of expressions separated by commas).
Error: Column ” is invalid in the select list because it is not contained in either an
aggregate function or the GROUP BY clause. (2013-11-19 17:28)
Error: Column ” is invalid in the select list because it is not contained in either an aggregate function or the
GROUP BY clause.
Description: When a GROUP BY clause is used in the SELECT clause, each columns in the SELECT
clause must be either defined via aggregated column or must be included in the GROUP BY clause.
Solution: Add all columns in the SELECT clause into the GROUP BY clause or remove the column
that causing problem from the SELECT clause.
Description: This error usually pops up from Visual Studio when there is a corrupted add-in or exten-
sion added into VSPackages.
Solution: Identify, remove and reinstall the extension. And run the following command Devenv.exe /Reset-
SkipPkgs from Visual Studio Command Prompt. /ResetSkipPkgs clears all options to skip loading added to
VSPackages by users wishing to avoid loading problem VSPackages, then starts Visual Studio.
Open path - C:\Users\username\Documen ts\Visual Studio 2010\Addins and remove the necessary files.
Then type and run devenv /resetaddin following command from Visual Studio Command Prompt.
22
Suthish Nair (2013-11-25 17:02:19)
Thanks Destin... :)
1.6 December
Description: This error occurs when we try to select a value multiple times for a DropDownList. Let
say we have multiple items getting added or inserted to the control and setting a value as true during runtime
multiple times. This will confuses the control and throws an exception.
[code language=”c-sharp”]
DropDownList1.Items.Add(new ListItem(”one”, ”1”));
DropDownList1.Items.Add(new ListItem(”two”, ”2”));
DropDownList1.Items[0].Selected = true;
DropDownList1.Items.Add(new ListItem(”three”, ”3”));
DropDownList1.Items.Add(new ListItem(”four”, ”2”));
DropDownList1.Items[3].Selected = true;
[/code]
In above example, multiple times we are trying to set a value for dropdownlist.
[code language=”c-sharp”]
DropDownList1.SelectedValue = ”4”;
[/code]
Error: Column already has a DEFAULT bound to it. Could not create constraint.
(2013-12-14 14:11)
Error: Column already has a DEFAULT bound to it. Could not create constraint.
Description: The constraint trying to create for the column is already exists.
Solution: From system table sys.objects find out the constraint, rename or drop the existing constraint
and then create the new one.
[code language=”sql”]
SELECT
name
,OBJECT NAME(parent object id) AS ParentTable
,OBJECT NAME(object id) AS ConstraintName
FROM sys.objects
23
WHERE type desc LIKE ’ %CONSTRAINT’
order by name
[/code]
Description: When we try to use an unknown type in SQL statements, the exception throws.
[code language=”sql”]
CREATE table1
(
name nvarchar(10)
)
[/code]
Here the complete syntax is missing. CREATE is the object but the type is missing. SQL Server try-
ing to use table1 as the object type instead of TABLE.
[code language=”sql”]
CREATE TABLE table1
(
name nvarchar(10)
)
Error: ” is undefined.
Description: JavaScript or jQuery error which shows up when a variable is not assigned with any value.
24
Error: 404 - File or directory not found. The resource you are looking for might have
been removed, had its name changed, or is temporarily unavailable. (2013-12-16 08:33)
Error: 404 - File or directory not found. The resource you are looking for might have been removed, had its
name changed, or is temporarily unavailable.
Description: An HTTP Internal Server error thrown by Internet Information Services (IIS) when requested
for an ASP.NET or ASP page etc. This can be of many reasons like, file or file path trying to access does not
exists, or file name got renamed, the Virtual Directory wrongly mapped etc.
Solution: Check the file trying to access exists or not in correct path or location. Check the file path
configured or able to access correctly. Check the Virtual Directory configured correctly and proper permis-
sions given. Check the files extensions etc.
Description: While trying or establishing a database connection and the connectivity to the database
is not configured properly then this error occurs. More exception details as followed.
Solution:
2. Ping the server name from command prompt. If no reply from server, then network connection to the
server should be configured or enabled.
3. Using Telnet command, we can check the port is opened or not, if not open the port.
6. Check the database name, user name and password using is correct or not.
7. Check the required SQL Services (SQL Server Browser etc) account are running or not.
9. Use port number along with data source. e.g server name/server name, port number.
[1]How-to-Generate-or-find-Connection-String-from-Visual-Studio
1. http://www.ssnair.net/post/2013/02/12/How-to-Generate-or-find-Connection-String-from-Visual-Studio
Error: The build must be stopped before the solution can be closed. (2013-12-16 13:26)
Error: The build must be stopped before the solution can be closed.
Description: When attempt to close Visual Studio solution or project while the build is running the exception
windows throws up.
Solution: First stop the build or kill the process devenv.exe (if the solution got crashed) and then close the
solution.
Error: Object cannot be cast from DBNull to other types. (2013-12-17 18:13)
Description: An invalid cast exception, when trying to convert a nonexistent value of table column to
other types.
Solution: Use DBNull.Value to validate the column having a valid value or not.
[code language=”c-sharp”]
if (!DBNull.Value.Equals(row[FirstName]))
{
return Convert.ToString(row[FirstName]);
}
[/code]
Description: An SQL Server exception which occur when a local variable being used within a script, function
or Stored Procedure that is not declared using the DECLARE statement.
[code language=”sql”]
26
DECLARE @FirstName NVARCHAR(25);
[/code]
Error: In order to run a trace against SQL Server you must be a member of sysadmin
fixed server role or have the ALTER TRACE permission. (2013-12-19 11:27)
Error: In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or
have the ALTER TRACE permission.
Description: When try to run the SQL Server Profiler using less privileged or minimal permissions cre-
dentials, this exception throws.
Solution: Provide ALTER TRACE permission for the particular user. Other ways are by providing, the user
sysadmin fixed server role access which is not advised unless required.
[code language=”sql”]
USE master
GO
GRANT ALTER TRACE FROM user1
GO
[/code]
[code language=”sql”]
USE master
GO
REVOKE ALTER TRACE FROM user1
GO
[/code]
Another way to grant rights, login with sysadmin login then open SSMS
[code language=”sql”]
[/code]
[code language=”sql”]
[/code]
etc...
[code language=”sql”]
[/code]
28
Chapter 2
2014
2.1 January
Description: As error says that the column name trying to use does not exists or not part of the ta-
ble.
Solution: Check the column exists in table or not. Check the column name used is correct.
Error: User does not have permission to perform this action. (2014-01-06 11:26)
Description: When trying to run Transact-SQL statement like DROP, GRANT, EXEC etc for which
the logged in user do not have the permission to perform or execute this statement, the exception throws up.
Sometimes while trying to access database system objects, the exception throws up.
Solution: First check whether the log in using to connect and perform database activities exists or not.
Open SQL Server Management studio, under Security, Logins node add the user and map the database also.
Or, if the user already exists then GRANT required permission’s.
29
BlogBook v0.4,
LAT
EX 2ε & GNU/Linux.
http://www.blogbooker.com