Thursday, December 24, 2009

[No relevant source lines]:Compiler Error Message: CS0433

Hi, Sorry again for a long communication gap. I was indulged into many things other than programming. Last week I came across the "Compiler Error Message: CS0433", "[No relevant source lines]". I was on vacation at my village without access to the internet when one of my friends told me about the error. I got the feel that the the specified error can be due to duplicate assemblies. I asked further about the hosting parameters and environment, he told me that initially they had precompiled deployment and now it's with the source.

If you have 2 assemblies (ddl files) within the same web application bin folder named _Default. This could happen if another ddl had a web page named default.aspx whose codebehind was compiled in that ddl but you (or someone else) replaced the default.aspx whose codebehind was in another assembly.

So the error is due to version conflict of dlls. Clean the bin folder old version of dlls.

My friend removed the bin folder and recompiled the solution and then published. The error disappeared.