0

We're looking for a way to enable users to send us a file using one of our web pages. Cannot use MailAttachment because page doesn't have rights to write files to a directory (we can't change that) so are trying a Google Data API to upload to our Google Docs account from within an .asp or .aspx page.

We also can't put files in the actual /bin folder, so we put the three needed assemblies (Google.GData.Documents.dll, Google.GData.Client.dll, and Google.GData.Extensions.dll) in a folder we can access.

So far, so good--but now we can't figure out how to properly load these assemblies.

Following this documentation, for example, we get compilation errors like, CS1519: Invalid token '=' in class, struct, or interface member declaration:

Line 12: Assembly foo;
Line 13: foo = Assembly.LoadFrom("/ourdirectory/bin/Google.GData.Documents.dll");

Having never tried to invoke assemblies before, I suspect we're missing something really basic here. Does someone with more experience have a suggestion? Thank you very much.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Ryujin
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.