Common ASP.NET mistakes

Are you an ASP. NET developer looking for error fixing in your project? Then, this is the place for you. In this post I will be presenting, 5 of the stupid mistakes developers make when they do ASP .NET programming. Most of them will make you scratch your head for hours for some simple solutions.

Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string /ErrorProcess.asp, line 64
Some references are missing in your project. Add references to the ASP .NET project. To find which file is missing debug ASP >NET code on server side.

How to debug:

  • Microsoft has buried the switches to enable ASP server side debugging in the Microsoft Management Console (MMC). Follow these instructions to be able to debug ASP code on the web server:
  • In Windows NT or Windows 2000, launch the MMC:
  • Start | Programs | Windows NT Option Pack | Microsoft Personal Web Server | Internet Service Manager
  • Using the left hand panel, navigate to the virtual directory for which server side debugging should be enabled.
  • Right click on the virtual directory in the left hand panel.
  • Choose Properties
  • Choose App Debugging
  • Enable ASP server side script debugging
  • Enable ASP client side script debugging
The control with ID ‘xyz’ requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Use ajaxToolkit:ToolkitScriptManager to register a script below form tag in your .aspx page For eg.

<ajaxToolkit:ToolkitScriptManager ID=”ScriptManager1″ OnAsyncPostBackError=”ScriptManager_Error” runat=”server” EnablePartialRendering=”true” LoadScriptsBeforeUI=”true” ScriptMode=”Release”/>

The element ‘abcxyz’ does not exist in the current context


Add definition of that variable to .aspx.designer.cs file. Ideally, the definition of variables is atomatically generated bu in some rare cases Visual Studio won’t generate defination in .aspx.designer.cs file.




Unable to copy file XXXX.dll. The process cannot access the file XXX.dll because it is being used by another process.

The .dll files are used by another instance of ASP .NET, which is blocking access. The simple solution is reset IIS or any other web server you are using.

How to reset IIS:

  • Open Run from Start menu. (or type Windows logo+R)
  • Type iisreset in run window and Hit Enter.



Server Error in ‘/’ Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Ambiguous match found.

It may appeared because of different names of components in same file. For example. Button1 and button1, it compiles as case sensitive, but executed as case insensitive.
Do you like this post or have some suggestions? Comment down them here.

Related posts:

  1. PHP Vs. JSP Vs. ASP
  2. Simple Blogger Templates
  3. C language FAQs…
  4. Solutions to USB pen drive problems
  5. How to pick a programming language?
,
blog comments powered by Disqus