Hello, This looks like an error specific to your environment as it works perfectly on older ones. Unfortunately, I am not familiar with ASP .NET development nor IIS7 environments. Do you know if this can be due to an error in your config files (not allowing certain characters)? Apparently, this error can also be thrown by other application adding a security layers to your server (anti-virus etc...).
Can you run your application in debug mode and check what specific value triggers the error? Best, Alain On Tue, Jul 19, 2011 at 7:33 AM, Janez <[email protected]> wrote: > Hi Alain, > > thanks for your reply. Allow me to present you with some additional data > about this problem on behalf of Tomaz. > > We included functionality to import Google Contact in our ASP.NET MVC > application. We decided to use Google's .NET libraries > (Google.GData.Client.dll, Google.GData.Contacts.dll and > Google.GData.Extensions.dll). So far it has been working fine, but last week > we saw that import is failing with exception 'Specified value has invalid > CRLF characters.,Parameter name: value' for new web sites that we created > last week (we use IIS 7.5 with Windows Server 2008 R2). For web sites > created before the last week, import still works OK. All web sites (old and > new) run the same version of our .NET code; we implemented this > functionality inside our platform so there are no difference in code between > the mentioned web sites (all sites run the same code for import from Google > accounts). As for the exception; it is thrown when we try to list Entries of > any Google contacts entity, whether contact or contact group, for example > this line 'For Each contactEntry In contacts.Entries' where contactEntry is > of type Contact and contacts are of type Feed(Of Contact) throws an > exception. Here's the stack trace you asked for: > at System.Net.WebHeaderCollection.CheckBadChars(String name, Boolean > isHeaderValue) > at System.Net.HttpWebRequest.SetSpecialHeaders(String HeaderName, String > value) > at Google.GData.Client.GDataRequest.EnsureWebRequest() > at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() > at Google.GData.Client.GDataRequest.Execute() > at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) > at Google.GData.Client.Service.Query(Uri queryUri, DateTime > ifModifiedSince, String etag, Int64& contentLength) > at Google.GData.Client.Service.Query(FeedQuery feedQuery) > at Google.GData.Client.Feed`1.get_AtomFeed() > at Google.GData.Client.Feed`1.<get_Entries>d__0.MoveNext() > at <my function> > > The exception text mentioned is the only error message we receive, there's > no inner exception present when error occurs. > > We use ASP.NET MVC 2 with .NET 3.5. > > Thanks > Janez > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
