2
votes

Hi when building my application I am getting some temporary files shown in Solution Explorer under Miscellaneous Files lie App_Web_YDKG.VB with following code block in that generating error

Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile
    Get
        Return CType(Me.Context.Profile,System.Web.Profile.DefaultProfile)
    End Get
End Property

Error :

Error 58 'Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile' has multiple definitions with identical signatures. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\infinityvb\2ae71c27\d560144b\App_Web_pwduczex.38.vb 456

3

3 Answers

2
votes

stop the Visual Studio and delete temporary files from the .NET framework folder. Usually it is here:

[Windows Folder]\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
0
votes

I had this yesterday - a reboot fixed it. I can't say for certain what caused it or the 'correct' solution.

0
votes

I keep a batch file in my environment path just for these circumstances... wrap this up in a .bat or .cmd file:

REM ClearTemp.cmd 

@echo off 
net stop w3svc

del "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*" /s /f /q
for /d %%d in ("%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*") do rmdir "%%d" /s /q 

net start w3svc
pause