473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CS0433: The type 'ProfileCommon' exists in both

I've started getting this message after doing a publish of an Asp.Net 2.0
(c#) web site. The site uses a custom profile provider - I'm sure there is a
relation here, but I can't find it. Everything worked before, and the same
code is working on another site. I've gone as far as completely starting the
app over from scratch, and copying the working code for the other app into
this one. It will work for a few publishes, then just stop.

Compiler Error Message: CS0433: The type 'ProfileCommon' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\assembly\dl3\4ddc0a92 \2ce3ec60_7583c601\App_Code.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\App_Code.z9v2fk16.dll '

Thanks,
Phil
May 29 '06 #1
7 13294
Phil,
Try cleaning out the Temporary ASP.NET folder where these assemblies were
deposited. When you run the app again, it will regenerate the assembly - only
the one copy it needs.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Phil" wrote:
I've started getting this message after doing a publish of an Asp.Net 2.0
(c#) web site. The site uses a custom profile provider - I'm sure there is a
relation here, but I can't find it. Everything worked before, and the same
code is working on another site. I've gone as far as completely starting the
app over from scratch, and copying the working code for the other app into
this one. It will work for a few publishes, then just stop.

Compiler Error Message: CS0433: The type 'ProfileCommon' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\assembly\dl3\4ddc0a92 \2ce3ec60_7583c601\App_Code.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\App_Code.z9v2fk16.dll '

Thanks,
Phil

May 30 '06 #2
Hello Peter,

Thanks for the reply.

I've tried cleaning out the temp files repeatedly. I've also tried creating
completely new projects. It's odd that it will publish successfully a few
times, then stop working. No changes to code need occur either. I can
simply republish and copy the publish version to the virtual directory
several times and the error will eventually show up.

Any other ideas?

Thanks again.

PS - I love the eggheadcafe site.

"Peter Bromberg [C# MVP]" wrote:
Phil,
Try cleaning out the Temporary ASP.NET folder where these assemblies were
deposited. When you run the app again, it will regenerate the assembly - only
the one copy it needs.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Phil" wrote:
I've started getting this message after doing a publish of an Asp.Net 2.0
(c#) web site. The site uses a custom profile provider - I'm sure there is a
relation here, but I can't find it. Everything worked before, and the same
code is working on another site. I've gone as far as completely starting the
app over from scratch, and copying the working code for the other app into
this one. It will work for a few publishes, then just stop.

Compiler Error Message: CS0433: The type 'ProfileCommon' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\assembly\dl3\4ddc0a92 \2ce3ec60_7583c601\App_Code.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\gn_p\f6309429\cfa5f75e\App_Code.z9v2fk16.dll '

Thanks,
Phil

May 30 '06 #3
Do you declare the type in two different locations ? One in the
app_code folder and one ,maybe, via a reference ?

Tasos

May 30 '06 #4
Hello Tasos,

Thanks for the reply.

No, the type is just a class file in my App_Code folder. The only reference
is in the web.config file when setting up the profile configuration.

Thanks again.

Phil

"Tasos Vogiatzoglou" wrote:
Do you declare the type in two different locations ? One in the
app_code folder and one ,maybe, via a reference ?

Tasos

May 30 '06 #5
When you do your Publish I believe that checking the "Use fixed naming..."
checkbox will create everything with the same names to prevent this.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Phil" wrote:
Hello Tasos,

Thanks for the reply.

No, the type is just a class file in my App_Code folder. The only reference
is in the web.config file when setting up the profile configuration.

Thanks again.

Phil

"Tasos Vogiatzoglou" wrote:
Do you declare the type in two different locations ? One in the
app_code folder and one ,maybe, via a reference ?

Tasos

May 30 '06 #6
Thanks for the reply.

Tried that, still didn't help. So, what I did next was to completely remove
the app/site. I removed the source and published versions; removed the temp
files; removed everything I could find related to the site. Then I started a
new site and used the default AspNet providers for authentication, membership
and profiles - I didn't use my custom provider at all. The site had one
..aspx page (default.aspx), and basic web.config - with just the connection
string and provider information.

Site runs fine in source mode, but publish it and copy the published version
to a virtual directory and I'm back to the same error. So, at least I know
it's not my custom provider, as the default AspNet provider is exhibiting the
same thing.

I'm pretty much at a loss now, if even a generic site does this.

Thanks again.
"Peter Bromberg [C# MVP]" wrote:
When you do your Publish I believe that checking the "Use fixed naming..."
checkbox will create everything with the same names to prevent this.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Phil" wrote:
Hello Tasos,

Thanks for the reply.

No, the type is just a class file in my App_Code folder. The only reference
is in the web.config file when setting up the profile configuration.

Thanks again.

Phil

"Tasos Vogiatzoglou" wrote:
Do you declare the type in two different locations ? One in the
app_code folder and one ,maybe, via a reference ?

Tasos

May 30 '06 #7
I uninstalled ReSharper (just in case)... no help
I did a repair/reinstall of VS 2005... no help

I'm down to a web site with only a default.aspx and a web.config. I still
get the same error after publishing. However, I've discovered that if I
remove any properties from the web.config I will not receive and error. I
don't even have to publish again, and I can leave the property tags. I just
have to remove the add tag, save the config and refresh the page and it works.

Any ideas on that?

Thanks,

"Peter Bromberg [C# MVP]" wrote:
When you do your Publish I believe that checking the "Use fixed naming..."
checkbox will create everything with the same names to prevent this.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Phil" wrote:
Hello Tasos,

Thanks for the reply.

No, the type is just a class file in my App_Code folder. The only reference
is in the web.config file when setting up the profile configuration.

Thanks again.

Phil

"Tasos Vogiatzoglou" wrote:
Do you declare the type in two different locations ? One in the
app_code folder and one ,maybe, via a reference ?

Tasos

May 30 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
Get this wierd compiler error on my production machine after publishing the site in VS 2005, have no idea what it is..removed the temp files and it just remakes them. Compiler Error Message:...
1
by: paps | last post by:
I've published my website into IIS and i receive this error when i call the default page Compiler Error Message: CS0433: The type 'ProfileCommon' exists in both...
1
by: mlcy | last post by:
hi there, i got this Compiler Error Message when i tried to access my site. all files were built in vs2005 without error. Compiler Error Message: CS0433: The type 'FrontEnd.AppConfig' exists...
3
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on...
2
by: Phil | last post by:
I'm trying to use a custom profile provider and I'm receiving this error message after I deploy a published version of the app. The app works fine when it is run in source code mode. It works...
0
by: Phil | last post by:
I've started getting this message after doing a publish of an Asp.Net 2.0 (c#) web site. The site uses a custom profile provider - I'm sure there is a relation here, but I can't find it. ...
21
by: Mark Rae | last post by:
Hi, I have an ASP.NET 2 web application (not web site) project and am using a web deployment project to deploy to the testing, then the production server. All has been working well for months...
0
by: Guy Cohen | last post by:
Hi all I have this line: Dim P As New ProfileCommon() Which worked until I added more profile items (It worked when I had a single profile item) Error = Type 'ProfileCommon' is not defined.
3
by: ningjun.wang | last post by:
I crate a new asp.net 2.0 web site using Visual Studio 2005. It run fine in visual studio. I then click Build Publish Website to build the dll and copy them to the IIS virtual directory along with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.