getting error while publicshing website

Posted by Swaroopa under ASP.NET on 7/3/2012 | Points: 10 | Views : 589 | Status : [Member] | Replies : 2
Hi,

i have donr one webiste, while publish website getting error The type 'EmpUserControl' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jobportal\8c4ac5d4\5a2c6057\App_Web_owo2vp0p.dll' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\jobportal\8c4ac5d4\5a2c6057\App_Web_31fxis79.dll' D:\dotnet\JOBPORTAL\Myapplication.aspx

Swaroopa


Responses

Posted by: Ranjeet_8 on: 7/3/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down

it solved with simple solution

adding batch="false" to web.config file
<configuration ...> 


<system.web>

<compilation ... batch="false"/>

</system.web>

...



Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: saficreator-10970 on: 7/4/2012 [Member] Starter | Points: 25

Up
0
Down
It can be Solved by adding batch to web config.

<configuration ...> 

<system.web>
<compilation ... batch="false"/>
</system.web>
...


and

delete the items in temporary asp.net files (c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files).
before delete the file, reset the iis.

Regards,
Mohamed Shafee M

Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response