473,383 Members | 1,733 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,383 software developers and data experts.

More Webservice issues..

I get the following error when I build, anyone know what the problem is?
Error 1 The type 'VPMEventViewerUtil.DataTransferObject' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fef7c801\VpmEventViewerSer ver.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cdfcc801\SR.Matrix.VpmEven tViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.asmx.cs
95 10 C:\...\VPMEventsWebService\
Error 2 The type 'VPMEventViewerUtil.CommentItem' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fef7c801\VpmEventViewerSer ver.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cdfcc801\SR.Matrix.VpmEven tViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.asmx.cs
160 62 C:\...\VPMEventsWebService\
Thanks,
Schneider
Aug 12 '08 #1
5 1260
Hi Schneider,

From your description, in your ASP.NET webservice application, you always
get the following error when try building the project, correct?

" The type 'VPMEventViewerUtil.DataTransferObject' exists in
both............"

Based on my experience, this error is often caused by some certain types
has been duplicated in multiple places. For your scenario, the error
message indicate that some types are duplicated in the following two
assemblies:

VpmEventViewerServer.DLL

SR.Matrix.VpmEventViewer.Server.DLL

Have you checked how are those two ones generated? is one of them
statically referenced from another project(in the private "bin" dir)? Or is
one of the assembly generated by dynamic page content or App_code source?

Also, if the project is a bit too large or complex, I suggest you creating
a new one and remove some unrelated pages or sources to repro the problem
and then concencrate on the simplified project.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "eschneider" <es********@community.nospam>
From: "eschneider" <es********@community.nospam>
Subject: More Webservice issues..
Date: Tue, 12 Aug 2008 17:56:53 -0500
I get the following error when I build, anyone know what the problem is?
Error 1 The type 'VPMEventViewerUtil.DataTransferObject' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fe
f7c801\VpmEventViewerServer.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cd
fcc801\SR.Matrix.VpmEventViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.
asmx.cs
95 10 C:\...\VPMEventsWebService\
Error 2 The type 'VPMEventViewerUtil.CommentItem' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fe
f7c801\VpmEventViewerServer.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cd
fcc801\SR.Matrix.VpmEventViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.
asmx.cs
160 62 C:\...\VPMEventsWebService\
Thanks,
Schneider

Aug 13 '08 #2
I renamed a project, and the WS was referencing the old copy of the dll.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:g8**************@TK2MSFTNGHUB02.phx.gbl...
Hi Schneider,

From your description, in your ASP.NET webservice application, you always
get the following error when try building the project, correct?

" The type 'VPMEventViewerUtil.DataTransferObject' exists in
both............"

Based on my experience, this error is often caused by some certain types
has been duplicated in multiple places. For your scenario, the error
message indicate that some types are duplicated in the following two
assemblies:

VpmEventViewerServer.DLL

SR.Matrix.VpmEventViewer.Server.DLL

Have you checked how are those two ones generated? is one of them
statically referenced from another project(in the private "bin" dir)? Or
is
one of the assembly generated by dynamic page content or App_code source?

Also, if the project is a bit too large or complex, I suggest you creating
a new one and remove some unrelated pages or sources to repro the problem
and then concencrate on the simplified project.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my
manager
at: ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Reply-To: "eschneider" <es********@community.nospam>
From: "eschneider" <es********@community.nospam>
Subject: More Webservice issues..
Date: Tue, 12 Aug 2008 17:56:53 -0500
I get the following error when I build, anyone know what the problem is?
Error 1 The type 'VPMEventViewerUtil.DataTransferObject' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fe
f7c801\VpmEventViewerServer.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cd
fcc801\SR.Matrix.VpmEventViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.
asmx.cs
95 10 C:\...\VPMEventsWebService\
Error 2 The type 'VPMEventViewerUtil.CommentItem' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\8c26e22b\fd667eb1_fe
f7c801\VpmEventViewerServer.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\vpmeventswebservice\8c9c80a1\1aef049\assembl y\dl3\ad48c5dd\8b354f9a_cd
fcc801\SR.Matrix.VpmEventViewer.Server.DLL'
C:\projects\SR_VPM_Synch.root\VPMEventsWebService\ App_Code\VPMEventsService.
asmx.cs
160 62 C:\...\VPMEventsWebService\
Thanks,
Schneider

Aug 13 '08 #3
"Custom objects" is fine. What I was suggesting not to do is to attempt to
replace the proxy classes created by the web reference with the server
classes. They are not meant to be the same classes.

--
John Saunders | MVP - Connected System Developer
Aug 13 '08 #4
Yes, I agree with that.

Dynamically created, and a lot of the times incorrectly. Sometimes you must
completely remove the web referenceand re-add to fix problems...

"John Saunders" <no@dont.do.that.comwrote in message
news:un**************@TK2MSFTNGP02.phx.gbl...
"Custom objects" is fine. What I was suggesting not to do is to attempt to
replace the proxy classes created by the web reference with the server
classes. They are not meant to be the same classes.

--
John Saunders | MVP - Connected System Developer


Aug 13 '08 #5
Thanks for your followup Schneider,

Glad that you've figured out the cause.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: ms****@microsoft.com.

--------------------
References: <O7**************@TK2MSFTNGP04.phx.gbl>
<g8**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: More Webservice issues..
Date: Wed, 13 Aug 2008 09:17:01 -0500
I renamed a project, and the WS was referencing the old copy of the dll.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:g8**************@TK2MSFTNGHUB02.phx.gbl...
Hi Schneider,

From your description, in your ASP.NET webservice application, you always
get the following error when try building the project, correct?

" The type 'VPMEventViewerUtil.DataTransferObject' exists in
both............"

Based on my experience, this error is often caused by some certain types
has been duplicated in multiple places. For your scenario, the error
message indicate that some types are duplicated in the following two
assemblies:

VpmEventViewerServer.DLL

SR.Matrix.VpmEventViewer.Server.DLL

Have you checked how are those two ones generated? is one of them
statically referenced from another project(in the private "bin" dir)? Or
is
one of the assembly generated by dynamic page content or App_code source?

Also, if the project is a bit too large or complex, I suggest you creating
a new one and remove some unrelated pages or sources to repro the problem
and then concencrate on the simplified project.

Sincerely,

Steven Cheng
Aug 14 '08 #6

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

Similar topics

0
by: abhi | last post by:
Hi Folks, I have deployed a simple web-service on IIS which takes one input and returns a string output. Here is the code for my webservice. **Code Starts** Public Function HelloWorld(ByVal A...
1
by: Gary Howlett | last post by:
Hi Im using VS 2005 C#; Is there any issues I should be aware of if I add my webservice as a static variable to my main class? The reason im asking is should I create an object of my...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
5
by: Niall | last post by:
I'm experience problems very similar to those reported in this thread on dotnet.framework on May 16 at...
4
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
4
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
4
by: Jonathan | last post by:
I have a SQL stored procedure for adding a new record in a transactions table. It also has two return values: CounterID and IDKey. I want to create a webservice that accepts the 10 input...
2
by: Mike Endys | last post by:
Hi all, have problem to use login to the web service. Im thinking about the web service that provides datas and files to the WinForm Client. I want the client log-in to the application... here...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.