Wednesday, June 20, 2012

Asp.net Error Code BC30456 Method name is not a part of class

I had been working on a project.I create a class and placed that in App_code folder.This class contains a method filldata.Now i complied the project it ran successfully.But again when i compiled it it showed error
filldata is not a method of Search.
I again created object of class and intelligence showed me filldata.But when i compiled it same result was shown.This is nothing but the effect of late copy .When we build website it compiles some files and does really bother about changes in App_code.It may or may not compile class files in App_code.Soit generates compile time Error.
Solution
Just rebuild entire solution again not just Website.It will work.
If you get this error for a website published in IIS then delete all files and folders inside Microsoft.Net\Framework\v4.0.30319\Temporary ASP.NET Files\ based on framework you used for website.

No comments :

Post a Comment