Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Temproray Asp.net文件错误_Asp.net_Vb.net_Temporary Files - Fatal编程技术网

Temproray Asp.net文件错误

Temproray Asp.net文件错误,asp.net,vb.net,temporary-files,Asp.net,Vb.net,Temporary Files,嗨,在构建我的应用程序时,我得到了一些临时文件,这些文件显示在解决方案资源管理器中的Miscellaneous files lie App_Web_YDKG.VB下,生成错误的代码块如下 Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile Get Return CType(Me.Context.Profile,System.Web.Profile.DefaultProfile

嗨,在构建我的应用程序时,我得到了一些临时文件,这些文件显示在解决方案资源管理器中的Miscellaneous files lie App_Web_YDKG.VB下,生成错误的代码块如下

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

错误58“受保护的只读属性配置文件()作为System.Web.Profile.DefaultProfile”具有多个具有相同签名的定义。C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NET临时文件\infinityvb\2ae71c27\d560144b\App\u Web\u pwduczex.38.vb 456


停止Visual Studio并从.NET framework文件夹中删除临时文件。通常在这里:

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

我昨天有过这个问题,重启修复了它。我无法确定是什么原因导致了它或“正确”的解决方案。

我在我的环境路径中保留了一个批处理文件,仅用于这些情况。。。将其包装在.bat或.cmd文件中:

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 

大家好,谢谢你们的回复大家好,索尔·多尔金,令人惊讶的是,人们对DOS的了解程度如此之高,我已经删除了所有临时文件,但当我再次构建解决方案时,它就被创建了there@Ankur这个错误肯定有更多的原因。在运行web应用程序时,临时文件夹中始终会创建文件。我建议您查找这个“Profile”属性的所有定义,并确保它们在您的页面类中没有冲突。可能您有多个相同属性的声明,它们在编译时以某种方式相互冲突?属性是否在代码隐藏以及ASPX或designer类中声明?