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