Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


Invalid postback or callback argument
2007-12-02 22:55:00
Try adding this into the section of your web.config file: You can also benefit from those features by leaving it enabled then register your control for event validation. Simply add the following call in the PreRender or Render page life cycle then your control should work without having to turn off eventValidation: Page.ClientScript.RegisterForEventValidation(this.UniqueID);
Read more: Invalid

Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged
2007-11-28 22:48:00
If your project does not have a Web.config file, add a Web.config file to the directory that contains the ASP.NET application. If you are working in Visual Studio .NET, right-click the project in Project Explorer, click Add New Item, and then click Web Configuration File.If your project already has a Web.config file, and if the debug attribute is set to true in the section of the Web.config file, follow these steps to set the Execute Permissions property for the project folder:Start Internet Services Manager, and then click the project that you are trying to debug.Right-click the project, and then click Properties.Click the Directory tab.If None is selected in the Execute Permissions list, click Scripts only, and then click Apply.
Read more: server

"The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship."
2007-11-27 23:06:00
This error is related to the database not being able to handle the update or insert the Server Behavior that it is trying to perform.The Server Behavior is attempting to update or insert into a database table's auto number field. The database can't handle an external input into an Autonumber field. When a record is inserted the autonumber is defined automatically, so when the update or insert behavior tries to place another item into the field it fails.When applying the Insert or Update Server Behavior, ensure that no information is modifying an autonumber field.
Read more: changes , create

"Table is exclusively locked by user"
2007-11-27 23:05:00
In this case, the Access file is locked and a lock file (.ldb) exists. The lock file may exist because a DSN of a different name is accessing the database.Search for any *.ldb files and delete them. If another DSN (user or System) exists which is accessing the database, you may want to delete it as well and ensure that a single DSN refers to the database. Reboot the machine after making these changes.
Read more: Table

"The Microsoft Jet database engine cannot open the file. It is already opened exclusively by another user..."
2007-11-27 23:03:00
When using Live Data mode or Preview in Browser, users get the error:"The Microsoft Jet database engine cannot open the file. It is already opened exclusively by another user..."The account that is accessing the page doesn't have sufficient permissions to lock the database. The account would be either the anonymous account (by default the IUSR_computername) or a specific user account if the page has been secured for authenticated access.If you are using an Access file, it may not have proper permissions. To check the permissions:Find the database file in File Explorer.Right-click and select properties.Select the Security tab and click the Permissions button.In the File Permissions dialog, make sure "Everyone" appears in the list box with Full Control as the access type setting.Another cause for this error may be due to the fact that the Microsoft Access file you are attempting to connect to is locked and a lock file (.ldb) exists. If this is the case, search for any *.ldb files and de


"The INSERT INTO statement contains the following unknown field name:"
2007-11-27 23:01:00
After applying the "Insert Record" server behavior, attempts to insert a new record into a database fail and the following error appears:"The INSERT INTO statement contains the following unknown field name:"This error typically results from one or more of the following problems with the name of a field, object, or variable within a database:Using a "reserved word" as a name. Most databases have a set of "reserved words" which have meaning to the database engine because they may be used to identify built-in functions or keywords. For example, "DATE" is a reserved word and cannot be used for column names in the database.Special characters in the name. Examples of special characters include:. / * : ! # & - ?A space in the column name.A column name starts with a numeric character, such as 2products.The error can also occur when an Input Mask is defined for an object in the database, and the data being inserted does not conform to the mask.SolutionAvoid using reserved words such as "dat


"Field cannot be a zero-length string" error
2007-11-27 22:59:00
This error generally occurs when attempting to use the "Insert Record" or the "Update Record" server behavior to set the value of a column in Microsoft Access to an empty string ("").This error most often occurs when using Microsoft Access. Access is characterized by strong data typing; it imposes a rigorous set of rules on given column values. The empty string value in the command text (SQL) cannot be stored in MS Access data fields that do not allow zero-length strings.Using the table design tool within Access, ensure that the parameter "Allow Zero Length" pertaining to the field you are attempting to modify, is set to "yes".
Read more: Field

"Field cannot be a zero-length string" error
2007-11-27 22:58:00
This error generally occurs when attempting to use the "Insert Record" or the "Update Record" server behavior to set the value of a column in Microsoft Access to an empty string ("").This error most often occurs when using Microsoft Access. Access is characterized by strong data typing; it imposes a rigorous set of rules on given column values. The empty string value in the command text (SQL) cannot be stored in MS Access data fields that do not allow zero-length strings.Check the column names in your database against your query string to make sure that the spelling is correct. In other words, ensure that all of the field names in your SQL statement are spelled correctly.
Read more: Field

HTTP Status Codes
2007-11-27 00:10:00
HTTP Status codes are returned by the server to the client software to determine the outcome of a request, the codes below are the HTTP /1.1 codes.HTTP CODES - 100-101100 - Continue Tells the client that the first part of the request has been received and that it should continue with the rest of the request or ignore if the request has been fulfilled.101 - Switching Protocols Tells the client that the server will switch protocols to that specified in the Upgrade message header field during the current connection.HTTP CODES 200-206200 - OK The request sent by the client was successful.201 - Created The request was successful and a new resource was created.202 - Accepted The request has been accepted for processing, but has not yet been processed.203 - Non-Authoritative Information The returned meta information in the entity-header is not the definitive set as available from the origin server.204 - No Content The request was successful but does not require the return of an entity-body.20
Read more: Codes

"HTTP 500" error (or "(DLL) initialization routine failed")
2007-11-25 23:17:00
This is because if you have the /3GB boot switch enabled, the ASP.NET worker process (Aspnet_wp.exe) does not start.To create and set the "ASPNETENABLE3GB" environment variable as mentioned in the above article, right click MyComputer ->Properties->Advanced > Environment Variables > System variables > New. Add the variable name in the top text box and the value in the lower textbox.
Read more: error

Login failed for user ‘sa’
2007-11-25 23:08:00
1. In the web.config put this lineset identity impersonate="true"2. Turn off Anonymous authentication in IIS for the web site.3. Basically replace password and username with Integrated Security=SSPI;
Read more: Login

error that says the BIOS limit has been exceeded
2007-12-19 23:41:00
When I try to run pages on a remote computer using the ASP.NET Development Server, I get an error that says the BIOS limit has been exceeded. What is the problem?You might see this error if the remote computer is running Windows 2000 or Windows XP. If the remote computer is running Windows 2000, you can follow the instructions in Microsoft KnowledgeBase article 810886 to set the maximum number of concurrent connections to a higher number. If you are running Windows XP, you might be able to avoid this error by closing existing shared resources, including terminal server sessions, on the remote computer. (Windows XP is configured with a fixed number of maximum concurrent network requests.)


error "The page cannot be displayed" and an HTTP 502 Proxy Error
2007-12-19 23:39:00
When I run a page, I get the error "The page cannot be displayed" and an HTTP 502 Proxy Error. Why?This error can occur if you are running ASP.NET Web pages using the Visual Web Developer Web server, because the URL includes a randomly selected port number. Proxy servers do not recognize the URL and return this error. To get around the problem, change your settings in Internet Explorer to bypass the proxy server for local addresses, so that the request is not sent to the proxy. In Internet Explorer, you can make this change in Tools > Internet Options. In the Connections tab, click LAN Settings and then select Bypass proxy server for local addresses.


Why do I get errors when I try to serialize a Hashtable?
2007-12-17 22:39:00
XmlSerializer will refuse to serialize instances of any class that implements IDictionary, e.g. Hashtable. SoapFormatter and BinaryFormatter do not have this restriction.


There was an error reflecting MyClass
2007-12-17 22:39:00
XmlSerializer is throwing a generic "There was an error reflecting MyClass" error. How do I find out what the problem is?Look at the InnerException property of the exception that is thrown to get a more specific error message.


I'm having some trouble with CAS. How can I troubleshoot the problem?
2007-12-16 23:11:00
Caspol has a couple of options that might help. First, you can ask caspol to tell you what code group an assembly belongs to, using caspol -rsg. Similarly, you can ask what permissions are being applied to a particular assembly using caspol -rsp.


get the error System.__ComObject
2007-12-13 23:21:00
I get the error System .__ComObject when using recordset?This error occurs if you are trying to fetch the recordset value as followsrs.Fields("productname")To avoid this error tryVB.NET rs.Fields("productname").Value.ToString()C# rs.Fields["productname").Value.ToString() ;


get error "A generic error occurred in GDI+."
2007-12-13 23:18:00
Why do I get error "A generic error occurred in GDI+." when trying to save the bitmap file?May be the path of the file you are giving is wrong or you do not have write permissions on the specific folder.


My ASP code gives an error "Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed" when changed to aspx
2007-12-12 23:15:00
Use a script runat="server" block instead of the syntax to define Subs.Make sure you have proper events associated with the code and have start and end of procedure or function wirtten properly.
Read more: Message , appear , method , within

Why do I get error message "Error creating assembly manifest: Error reading key file 'key.snk' -- The system cannot find the file specified"?
2007-12-12 23:14:00
Check the location of the key.snk file relative to the assembly file. Provide an explicit path or a relative path.
Read more: manifest , specified

Why do I get the "Unable to find script libruary 'WebUIValidation.js'" error ?
2007-12-11 23:16:00
When you install the .Net framework on your web server, it installs some script files (including the above) under the root folder (usually "C:inetputwwwroot" if you do a default installation) . You can then find the above file at "C:Inetpubwwwrootaspnet_clientsystem_web1_1_4322", for example.The above problem could happen if you reconfigured your web root directory to be a different one after you installed ASP.Net in your web server. If that is the case, then run 'aspnet_regiis -c' (utility is under %windir%Microsoft.NETFrameworkv1.1.4322, for example) or copy over manually the above script files into a similar sub-directory below your current web root directory. Also, if you look at the error message in detail, you will notice where the file is supposed to be.


error message "It is already opened exclusively by another user, or you need permission to view its data." when I try to open Access mdb?
2007-12-10 23:42:00
The ASPNET worker process doesn't have the correct permissions to connect to or write to the Access database. Either enable impersonation for users or configure the ASP.NET worker process to run under the SYSTEM account. You can also grant read and write permissions for the "Everyone" group on the database and the database folder.
Read more: error

Why do I get the Error Message "System.OutOfMemoryException: Exception of type System.OutOfMemoryException was thrown."?
2007-12-10 23:40:00
It means that the server is out of available memory. You probably have an infinite loop somewhere that's frantically creating large objects, or you forgot to dispose of disposable objects and memory slowly leaked.
Read more: System , Message

"Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"?
2007-12-10 23:39:00
This error usually indicates that SQL Server (or MSDE) is configured to use Windows Authentication. If you want to use a SQL login, you will need to enable SQL Authentication (mixed mode authentication).
Read more: connection , Reason , associated , Login

Server Application Unavailable
2007-12-09 23:41:00
Why do I get the error message "Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request."?By default, ASP.NET runs its worker process (Aspnet_wp.exe) with a weak account (the local machine account, which is named ASPNET) to provide a more secure environment. On a domain controller or on a backup domain controller, all user accounts are domain accounts and are not local machine accounts. Therefore, Aspnet_wp.exe fails to start because it cannot find a local account named "localmachinenameASPNET". To provide a valid user account on the domain controller, you must specify an explicit account in the section of the Machine.config file, or you must use the SYSTEM account.


HTTP 500" error (or "(DLL) initialization routine failed
2007-12-09 23:40:00
This is because if you have the /3GB boot switch enabled, the ASP.NET worker process (Aspnet_wp.exe) does not start. To create and set the "ASPNETENABLE3GB" environment variable as mentioned in the above article, right click MyComputer ->Properties->Advanced > Environment Variables > System variables > New. Add the variable name in the top text box and the value in the lower textbox.
Read more: error

Sys.WebForms.PageRequestManagerParserErrorException
2007-12-23 22:46:00
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.If your Response.Redirect doesn't work under UpdatePanel's callback, then you definitely missing ScriptModule in the web.config:in httpmodules tagadd type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="ScriptModule"close tag httpmodules


Sys.WebForms.PageRequestManagerParserErrorException
2007-12-21 23:08:00
It seems the newer versions of AJAX.NET really hates having "Response.Write" being called while doing an Async postback. It changes the response a bit causing it a hard time extracting the changed values and updating the changes using JavaScript on the client side.If you get this error go through your page and all the controls in it (including controls within controls) and make sure you don't have a "Response.Write" in the markup page.Having "Response.Write" in the code behind in an event that is fired on an Async postback like Page_Load, Page_Render or the handler that handles that exact event can cause the same problem.If you must use "Response.Write" you can get a similar solution by using a Label control and update it instead of using "Response.Write".If you use "Response.Write" in markup pages (ASPX or ASCX) replace them with either the "=" syntax () or use the same solution mentioned above, adding a Label control and updating it in the code behind.


Why innerText not working in Firefox
2008-01-22 23:47:00
Use innerHTML instead of innerText
Read more: working , Firefox

Cannot use a leading .. to exit above the top directory
2008-01-22 23:47:00
When I do a server.mappath on ../../private, I get this error:Cannot use a leading .. to exit above the top directory.try to use Server.MapPath("~/private"). It is more reliable. What willhappen when u add another subdirectory... Server.MapPath("~/private") willstill works.


Page 1 of 2 « < 1 2 > »
eXTReMe Tracker