Click here to Skip to main content
15,168,423 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
I am getting these error in visual studio 2008

Error 1 A problem occurred while trying to set the "Resources" parameter for the IDE's in-process compiler. External component has thrown an exception. AVAT

Error 2 The "Vbc" task failed unexpectedly.
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Microsoft.Build.Tasks.Hosting.IVbcHostObject.EndInitialization()
at Microsoft.Build.Tasks.Vbc.InitializeHostCompiler(IVbcHostObject vbcHostObject)
at Microsoft.Build.Tasks.Vbc.InitializeHostObject()
at Microsoft.Build.Utilities.ToolTask.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) AVAT

Error 3 Visual Basic compiler is unable to recover from the following error: System Error &H80131198&
Save your work and restart Visual Studio.
Updated 20-Oct-13 1:22am
Menon Santosh 17-Oct-13 6:38am
plz google

1 solution

So follow the instructions:
"Save your work and restart Visual Studio."

If you get the same error, then restart again, create a new, empty project and recompile. If the error persists, reinstall VS.
[no name] 17-Oct-13 3:31am
Thanks Dear
i getting same error.
when i comment few suspected lines after that it works fine.but after uncoment these lines i getting same error.
blank project works fine also...
i have doone
1 Formatted my os
2 i have unstalled and reinstalled vs 2008 again

but i facing same error...its serious problem of vs..
OriginalGriff 17-Oct-13 4:20am
Please, don't use "dear" online - I know it is culturally acceptable in India, but to the western world it can be taken as sexist and patronising - remember that online you have no idea what gender you are speaking to... In this case it doesn't matter, but I suggest you don't use it again!

If you comment out lines and the problem goes away, then it is likely to be the content of those lines rather than a specific VS error (that's why I suggested a blank project).
What are the lines?
[no name] 17-Oct-13 5:07am
sorry i dont want to hurt you...

OriginalGriff 17-Oct-13 5:20am
As I said: "In this case it doesn't matter" - but you do need to consider this in future! :laugh:

What are the lines you comment out?
[no name] 17-Oct-13 5:37am
i note there when i copy some lines of code anywhere and paste the lines in form/page then compiler generate error.
OriginalGriff 17-Oct-13 5:48am
I kinda guessed that!
Care to give me any kind of clue as to what the lines were?
[no name] 17-Oct-13 6:03am
sample i have write this code on other form...and now i want to use this code on other form

DT = ExecureQry("Select * from tblDelRetDet where Fyear ='" & curr_FYEAR & "' and Client_id ='" & Cur_Id & "'")
If DT.Rows.Count > 0 Then
For i = 1 To dgvTest.Rows.Count - 1
DMLQry("Update tblDelRetDet Set cDetails= '" & dgvTest.Rows(i).Cells(1).Value & "' where Client_id = '" & Cur_Id & "' and Fyear ='" & curr_FYEAR & "' and id =" & DT.Rows(i - 1).Item("id") & " ")

MessageBox.Show("Data Update Successfully", "AVAT", MessageBoxButtons.OK)

For i = 1 To dgvTest.Rows.Count - 1
DMLQry("Insert into tblDelRetDet(cRetOption,cRetFromdt,cRetTodt,cRetFiledOpt,cRetLiaPaid,Client_id,Fyear) Values ('" & dgvTest.Rows(i).Cells(1).Value & "', '" & Cur_Id & "','" & curr_FYEAR & "')")

MessageBox.Show("Data Save Successfully", "AVAT", MessageBoxButtons.OK)
End If

here ExecureQry and DMLqry are my internal functions for fetch or insert data in database
[no name] 17-Oct-13 7:49am
plg rply ASAP.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900