473,659 Members | 3,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebPartPages of share point web service giving me error

I am working on share point web part development. As a client requirement we
have to generate our own web part gallery, so I prefer to write one user
control, and in that user control I display all web part definition(dwp)
file. Now user select dwp file, web part zone id and page name from drop down
and say "Add Web Part".

Ideally it should add web part to particular page to that web part zone. I
am using http://servername/_vti_bin/webpartpages.asmx web service to add web
part. I am using AddWebPart() method to add web part.

In this project when I take reference of this web reference and build
project and deploy on site then it works properly. But the problem is that
servername of this web site can be change on client side.

so I keep url of this web site configurable in web.config of share point
application. Now I read configuration and assign this value to web service
instance.

Like:

WebPartPagesWeb Service webReference = new WebPartPagesWeb Service();

webReference.Ur l = ConfigurationMa nager.AppSettin gs["WebPartService "];

webReference.Cr edentials = System.Net.Cred entialCache.Def aultCredentials ;

But when I try to execute webReference.Ad dWebPart, it gives me web service
soap exception like this

System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) at
LicenseLink.Web Parts.WebPartSe rvice.WebPartPa gesWebService.A ddWebPart(Strin g
pageUrl, String webPartXml, Storage storage) in
D:\WebPartProje cts\LicenseLink WebParts\Web
References\WebP artService\Refe rence.cs:line 669 at
WebPartGallery. btnAddWebPart_C lick(Object sender, EventArgs e)

Please help me to resolve this issue.

Apr 19 '07 #1
2 2704
"SachinG" <Sa*****@discus sions.microsoft .comwrote in message
news:64******** *************** ***********@mic rosoft.com...

....
But when I try to execute webReference.Ad dWebPart, it gives me web service
soap exception like this

System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) at
LicenseLink.Web Parts.WebPartSe rvice.WebPartPa gesWebService.A ddWebPart(Strin g
pageUrl, String webPartXml, Storage storage) in
D:\WebPartProje cts\LicenseLink WebParts\Web
References\WebP artService\Refe rence.cs:line 669 at
WebPartGallery. btnAddWebPart_C lick(Object sender, EventArgs e)
Please post the entire exception. You have only supplied us with the stack
trace.
--

John Saunders [MVP]
Apr 19 '07 #2
Hi John,

Actually when I update web reference and change URL of web service, than it
working fine.

Thanks for your kind attention for my problem.

"John Saunders [MVP]" wrote:
"SachinG" <Sa*****@discus sions.microsoft .comwrote in message
news:64******** *************** ***********@mic rosoft.com...

....
But when I try to execute webReference.Ad dWebPart, it gives me web service
soap exception like this

System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) at
LicenseLink.Web Parts.WebPartSe rvice.WebPartPa gesWebService.A ddWebPart(Strin g
pageUrl, String webPartXml, Storage storage) in
D:\WebPartProje cts\LicenseLink WebParts\Web
References\WebP artService\Refe rence.cs:line 669 at
WebPartGallery. btnAddWebPart_C lick(Object sender, EventArgs e)

Please post the entire exception. You have only supplied us with the stack
trace.
--

John Saunders [MVP]
Apr 20 '07 #3

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

Similar topics

8
5174
by: Leo R | last post by:
Hi, Is it possible to create a network-drive at the SYSTEM-level? E.g.: map X: to \\server1\share so a windows service can reach X: without having to log on? I want a Windows .NET service to collect files from a UNIX-share (mapped to X:) that is exposed to windows using Hummingbird-software. Leo.
5
8814
by: JohnFol | last post by:
I am using the Win23 API WNetCancelConnection2 and can sucessfully make a connection to a share within my class. The class is called from a Windows Form based test harness. When I instantiate exactly the samce class from a Windows Wervice, I get "A specified logon session does not exist. It may already have been terminated" .. The error number is 1312. I know the code to be good, so I suspect something around security / windows...
68
5146
by: rkusenet | last post by:
http://www.eweek.com/article2/0,1759,1820667,00.asp The database market grew by 10.3 percent in 2004, fueled largely by hunger for business intelligence and analytics, according to numbers released by the Gartner Group on Monday. With 34.1 percent of the overall market, IBM holds a slim margin over its closest competitor, Oracle Corp., which maintains 33.7 percent of the overall market. Microsoft Corp. follows up with 20 percent of...
7
2285
by: Ryan Gregg | last post by:
I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly. When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log: An exception occurred during the Install phase. System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the...
4
2012
by: Lenard Gunda | last post by:
Hello! I have created a program, that receives files, and then stores them locally for later access. This program is run on a Windows 2000 Server computer as a system service. Some of the files also need to be copied over to another computer, that is running Windows 2000 Professional version. This goes all right for some time, but then I start receiving the following error. IOException: No more connections can be made to this remote...
0
1826
by: John Fleming | last post by:
Hello, I am building a web application with the following components: 2 Web Servers - Windows Server 2003 - IIS 6 - .Net Framework version 2.0 - Reside in Domain A 2 Clustered Database Servers
0
1079
by: skultetc | last post by:
I am attempting to access a network share from a windows service, however I keep getting the "Could not find part of the path: '\\unc \share'" error. I know if its run under LocalService it would have no permission to access the network, however I'm running it as a local user who has full access to the share. (I can verify this by putting the same path that's in the error in Explorer and it works.) What am I missing here? Please also note...
0
3199
by: =?Utf-8?B?a2F1c2hhcw==?= | last post by:
Apologies for cross posting to couple of WCF related forums, but I am frantically trying to find a solution to this WCF Mex endpoint problem described below: I am getting this weird error when trying to invoke an IIS 7.0 (Vista) hosted WCF Service's mex endpoint using IE browser, usually it should respond back with the WSDL displayed in IE. However, I am getting a 400 response error from IIS. Digging into the WCF tracefile the source...
0
8337
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.