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

ClickOnce Permissions Rqd for XMLSerializer

Hello,

I have a C# .NET 2.0 program which accesses the Amazon.com E-Commerce web
service. I am debugging it as a ClickOnce Partial Trust application.

My question is, What permissions are required for the
XMLSerializer.Serialize method? This is where the application constantly
bombs with an InvalidOperationException.

The app runs without any errors when debugged as "Full Trust." However,
when debugged as Partial Trust, even with ALL permissions granted, it fails
on that method call.

I created the web reference using the Wizard. The message of the
InvalidOperationException is "There was an error generating the XML document"
and the InnerException is a SecurityException "Request Failed."

Thanks for any help that can be offered!

Rich S.
Nov 23 '05 #1
3 1219
Hi,

You need to include WebPermission to call the web service.

Thanks,
Sayed Y. Hashimi
http://www.sayedhashimi.com
Shameless Book Plug: Service-Oriented Smart Clients with .NET 2.0
http://www.amazon.com/exec/obidos/tg...3/qid=11263614...

Nov 23 '05 #2
Hi Sayed,

Thanks for the reply. Unfortunately, I have already tried including
WebPermission. As I said in the original post, I "include" every permission
listed in the box, and it still fails!

Regards,
Rich S.

"ha**********@gmail.com" wrote:
Hi,

You need to include WebPermission to call the web service.

Thanks,
Sayed Y. Hashimi
http://www.sayedhashimi.com
Shameless Book Plug: Service-Oriented Smart Clients with .NET 2.0
http://www.amazon.com/exec/obidos/tg...3/qid=11263614...

Nov 23 '05 #3
Sorry...I didn't see the portion of your message that said you added
all permissions. Anyway, I can't replicate your problem but I believe
the XmlSerializer's serialize method creates a temp file when doing the
serialization. If you included FileIOPermission then you should have
unrestricted access to the file system so that should be a problem
either. Just a thought. Other than that, I can't guess what the problem
might be....

Nov 23 '05 #4

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

Similar topics

0
by: hannes.lambrecht | last post by:
Hi, A question about clickOnce deployment. How can I make a clickOnce application with elevated permissions work, when dowloaded from the internet zone. I always get the message: "This...
4
by: markoueis | last post by:
Is there any way to embed a ClickOnce Application into the browser? I love the way ClickOnce works, but the problem is I would like it to display the windows form in the browser. I could use a...
8
by: Tina | last post by:
While ASP.Net is migrating toward more robust presentation by using things like AJAX I am wondering if ClickOnce will errode a lot of ASP.Net presence in Corporate Applications. I've been reading...
2
by: nick.althoff | last post by:
I'm developing an ASP.NET application where I'll need to be accessing some files on the client machine. I basically need to show information about files in a directory on the client machine in a...
1
by: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason...
2
by: Alex Bögli | last post by:
Hi I have a rather advanced deployment scenario and wanted to know, if anyone has an idea how to accomplish that with ClickOnce: We are deploying a 3-tier application with a client connecting...
3
by: nelmr | last post by:
Hey guys, I wanted to write a bootstrapper to display my EULA prior to installing my click once app. However, it does display it but when I press "Agree" it locks up saying it is trying to install...
3
by: =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= | last post by:
Hello, I would like to know the best way to install an clickonce in .net 3.5 (we use LINQ 8-D) published application on terminal server 2003 Do I have to install it on EVERY user that will use...
2
by: Superfreak3 | last post by:
Hello there, I hope there is a ClickOnce wiz in the house! The more I read the more confused I get. We have a server app that will have workstations/clients hitting it. On these Clients we...
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: 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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
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...
0
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...

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.