Hi all,

I am developing an Adwords API application in Visual Studio using C#.

On my local computer it runs fine, but on the hosted servers of
Crystaltech I get the following exception when calling
CampaignService.getAllAdWordsCampaigns(1):

  System.Security.SecurityException
  Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
  Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.

At that time I have already obtained the AdwordsUser and the
CampaignService without problems.

As I thought that maybe the problem is writing a local file on the
server, I tried to actively disable logging the soap trace by adding
this to my Web.Config file:

    <configSections>
        ......
        <section name="AdWordsApi"
type="com.google.api.adwords.lib.ApplicationConfiguration"/>
    </configSections>

    <AdWordsApi>
        <add key="LogPath" value="C:\Logs\"/>
        <add key="LogToConsole" value="false"/>
        <add key="LogToFile" value="false"/>
    </AdWordsApi>

However, this doesn't help. Also I get the feeling that logging the
soap trace is disabled by default anyway, so this doesn't do much.

The Application Starting Point on the web server has been set
correctly. And I can update my database from that application, so that
doesn't seem to be the problem either.

It is purely the call to CampaignService.getAllAdWordsCampaigns(1)
that gives me this problem.

Any suggestions to fix this are really, really welcome!

Kind regards,
Taco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to