Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
a project selected as a website from vs10 and in 2.0 framework.host server is 3.5 supported.but it showing an error.that is-----

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'userhome' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\assembly\dl3\185e9574\0370ee63_3ce2ce01\App_Web_p4g0wd0t.DLL' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\assembly\dl3\16b0f4d8\0370ee63_3ce2ce01\App_Web_gjcxxm1h.DLL'

Source Error:


Line 110:
Line 111:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 112:    public class userhome_aspx : global::userhome, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 113:
Line 114:        private static bool @__initialized;

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\App_Web_userhome.aspx.cdcab7d2.4zmvg_rm.0.cs    Line: 112


Show Detailed Compiler Output:

Show Complete Compilation Source:


Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456




-----------------------
but the login page is working and also fetching data from sql server.but when the page userhome.aspx is tring to redirect it showing the error.

i had hosted an another project for testing pourpose and it was runnig successfully...

Please help me out....

thnx in advance........
Posted
Updated 15-Mar-14 11:55am
v2
Comments
ZurdoDev 15-Nov-13 16:06pm    
You likely have an extra dll somewhere. The problem is the compiler is finding that method more than once.
BIBASWAN 15-Mar-14 7:41am    
thnx RyanDev you show me the way.thanx a ton
ZurdoDev 15-Mar-14 8:41am    
You're welcome.
Merajuddin Ansari 26-Dec-17 0:39am    
i have the same problem can anyone help me please..
BIBASWAN 2-Feb-18 3:01am    
follow the instruction of RyanDev,
"You likely have an extra dll somewhere. The problem is the compiler is finding that method more than once."

1 solution

Hello friend,

can you try one thing, you need to clear your "Temporary ASP.NET Files" folder from your hosted system, so it might resolve your issue.

Application pool


.net 2.0 then
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
for 64bit
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files"

or

.net 4.0 then

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
for 64bit
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files

or based on your .net framework version you are using in your application pool you need to clear your Temporary ASP.NET Files folder.

just delete all the folder including sub folder and files from it. or if you are not able to do so, the please stop your iis service for some time and then try to delete this files and then start your iis again.

in your case your application is hosted using application pool 2.0 so you need to clear your 2.0 Temporary ASP.NET Files folder and try to check your app.
 
Share this answer
 
v2
Comments
Merajuddin Ansari 26-Dec-17 0:44am    
i have the same problem, is this solve the problem..?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900