Showing posts with label Solutions. Show all posts
Showing posts with label Solutions. Show all posts

Sunday, July 10, 2011

Error :

In VS 2005 some time it will not go to the Debug mode , the reason may the IE update , To resolve this issue do the below task

Solution :

1. Open RegEdit


2. Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main

3. Add a dword under this key called TabProcGrowth

4. Set TabProcGrowth to 0

Saturday, January 15, 2011

Error Message


Error 1 Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

Solution :

Check the version of the  'System.Web.Extensions.dll ,  in the reference , web config file and the place where use the script manager , if you are using ver 3.5 you should refer the  same  in pages also

Thursday, January 13, 2011

ERROR :

CS1703: An assembly with the same identity 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has already been imported. Try removing one of the duplicate references


SOLUTION


Check the version of the .net Framework . in the project ,

Tuesday, January 19, 2010

Error Message :

unable to start debugging on the web server. the type initializer for system.net.digestclient threw an exception

Cause : if your environment is VS2005 with .Net Framework 2.0 ,and if u have an assembly with security.dll this error will come ,

Solution : rename the assembly name
Error Message

Error 811 F:\MySampleProject\RptCrystalViewer.aspx: ASP.NET runtime error: '/LM/W3SVC/1/ROOT/MySampleProject/is not a valid IIS application. F:\MySampleProject\RptCrystalViewer.aspx 1 1 Finance



Cause : Due to Invalid path


Solution :


Right Click on the Project go to the web Tab and Change the path


Saturday, January 02, 2010

Error Message

IIS Worker process stopped , When your Deploy your ASP.Net 1.1 Version of application in II7 , we need to set the application pool for Framework 1.1 , if you install Framework 1.1 it will automatically create , once the application pool is created and you had assigned to the the asp.net 1.1 application grt, it should work fine.. rit , but it wont , what it will do means it will stop the work process ,,.. you might ask why the hell it stops my work process ? good Question

y beacause ..... u r using microsoft products u have not installed the service pack that the reason ,,

So u need to the install the service pack for .net framework 1.1 , with asp.net 1.1 security update for framework 1.1 once your had installed it will work fine ..

Friday, February 13, 2009

Error: The Web Server Could Not Find the Requested Resource while debugging the web application you might receive this type of error after you update the web application tools

Reason :
If you have installed the URLScan Filter this error will come , basically URLScan is for IIS 7 if you install for IIS 6 it will create this problem .

Solution:
Un install the URLScan Tool , Because IIS 6 has all the resources of URLScan

Wednesday, January 28, 2009

Nowadays i am mostly working in VS 2005 , i have a problem in master page . the problem is when i am creating the pages its not showing the option to select the master page, I am receiving this problem in my laptop but in my desktop I had installed the same version its showing the option .As a temporary solution I am adding the master page in code behind . any guess what could the problem . I had also installed the service pack 1 for VS 2005 in
both the PC

Wednesday, December 03, 2008



Development Environment :
Windows XP, IIS 6, VS 2005 , Framework 2.0 ASP.NET 2.0

Deployment Environment :
Windows Server 2008, IIS 7 , ASP.NET 2.0 and Framework 2.0

Error Message :
Request is not available in this context Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Request is not available in this contextSource Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpContext.get_Request() +3465893
IIMSMain.Global.Application_Start(Object sender, EventArgs e) in C:\Prabakar\IIMS\Global.asax.cs:27
[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3385130
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +125
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +182
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +259
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +245
[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465475
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +675
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434




Solution


Change in Global.asax file in the

protected void Application_Start(Object sender, EventArgs e)
{
ApplicationConfiguration.OnApplicationStart(HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath));
Masters.SystemFramework.ApplicationConfiguration.OnApplicationStart(HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath));
}


Then change the application pool to classic .net , this is how i solved my problem

Sunday, November 23, 2008


Error Message :
This error will occur when u try to send mail from your web application
"the smtp server requires a secure connection or the client was not authenticated"

Cause : due to the Network Credential we will receive this error when we use any third pary smtp servers

SOLUTION :


string sMailServer = "smtp.gmail.com";
MailMessage mailmsg = new MailMessage("sampl@gmail.com", "sampl2@gmail.com", "HAI", "Success ! ");
SmtpClient smtpclt = new SmtpClient();
System.Net.NetworkCredential basicauth = new System.Net.NetworkCredential("sampl@gmail.com", "007");
smtpclt.Host = sMailServer;
smtpclt.UseDefaultCredentials=false;
smtpclt.Credentials=basicauth;
smtpclt.EnableSsl = true;
smtpclt.Send(mailmsg);

Error Message :

Failed to update database "D:\HOHRMIS\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Failed to update database "D:\HOHRMIS\APP_DATA\ASPNETDB.MDF" because the database is read-only.

Cause of the problem :

when we move the project from the inetpub default folder to some other location we will get this error , this is due to the read / write rights .

Solution :

  • Detach the database
  • Give read / write access to the APP_DATA folder
  • Attach the database then run it

Wednesday, October 08, 2008


Error:
some time while saving the project we may receive this type of error

Error occured saving the project file '' access is denied

Cause:

read only rights is given the project folder

Solutiuon :

Remove the Read only rights for the project and give write rights also
Error:

Auto-attach to process '[4572] aspnet_wp.exe' on machine 'PRABAKAR' failed. Error code 0x8013134b.
OR
Error While Trying to Run Project : Unable to start debugging on the server.


Cause:
there are many reason for this error.the one possiable reason is when u r migrating form one version to another versionwe will get this type of error.

Solution :

select the project in the IIS and go to the properties and select the ASP.NET Tab and change the version,possiable to the previous version.

Monday, August 25, 2008

Error

Error in File C:\Inetpub\wwwroot\IIMS\RptTrialBalance.rpt: Error detected by export DLL:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.ExportException: Error in File C:\Inetpub\wwwroot\IIMS\RptTrialBalance.rpt: Error detected by export DLL:


Cause: Mostly we will face this problem while exporting the report to excel, or to doc , for PDF there wont be problem , the solution is to update the Crystal report


Solution:

ftp://ftp1.businessobjects.com/outgoing/CHF/crnet11win_en.zip

update the hot fix so there that the problem will be solved

Monday, July 28, 2008

Error Message


Parser error

Cannot load type admin.web.login


Cause and Solution

This error will occur when the assembly for the project is not created. Check whether the assembly is created or not, some time the assembly will be created in the project folder not in the solution folder, for that change the project output location

Sunday, July 27, 2008

Error Message


Configuration Error

Access is denied ‘Web’


Cause and Solution


Start --> Administrative Tools --> Computer Management --> Services and Application --> Indexing Services -->

Stop the Indexing services and restart it ,

This Error is caused due to the access denial for the temp location if we restart the services this location will set if the problem still exists go the system link and create new directory and add the specific location

Wednesday, July 23, 2008

Error Message




Parameter count does not match parameter value count

Cause and Solution


This error will occur when you make any changes in the stored procedure i.e. like adding new parameter to the procedure .The reason is in the SQL catalog the old sp will be there , even if you drop the Sp it will show the same error , the solution is


1. First drop the sp
2. Then if its is web application reset the application
3. Then open the application now it will show the sp not found error now you run the Sp this problem will be solved
Error Message


Arithmetic overflow error converting numeric to data type numeric


Cause and Solution


Arithmetic overflow will occur when you try to set the larger value in the lesser length variable , Just increase the length the field. This problem will be solved
Error Message

String or binary data would be truncated. The statement has been terminated.


Cause and Solution


Some time we will receive this kind of error from procedure while retreving data this is due to the overflow of any filed value , so just Turn of the Warnings using the System Variable as give below


SET ANSI_WARNINGS OFF
Error Message

Tables or functions 'bspl_detail' and ‘bspl_detail' ' have the same exposed names. Use correlation names to distinguish them. ...



Cause and Solution

This type of error will occur when you use the same table more then once in the join with out alias name,

Give the Alias name to the table so that it will be solved