Question

I have a website solution that used to be managed using VS2008. Now since migrating to VS2010 I have noticed a long list of errors caused by auto generated WebReference code. The code generated is in C# and everything else on the solution is in VB.NET. All errors are syntax errors.

The website is not web project. I can compile successfully, but these errors showing in Error List window are starting to get on my nerves. It makes finding real errors a little tough among the piles of syntax errors from this webreference code. I cannot even find this auto generated file on my solution. It lives in this folder: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\SolutionName\347ac797\7f99bbcc\Sources_App_WebReferences\

I have tried to delete the offending file, but when I recompile the file is generated back again in C#.

Any help to get rid of these errors is appreciated.

Was it helpful?

Solution

I think you need to put it in an assembly of that language and and then reference the assembly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top