C# - Control When A Remote ICal (.ics) File Has Been Updated And The Calendar Should Sync

Mar 24, 2011

I've created a page which dynamically creates an .ics file based on data from our database, that customers can download to add the events to Outlook and iCalendar. This file is sent through the Response, so I don't actually store the file on the server. Since I can provide a webcal:// address to this file, it can also be synced whenever someone changes the settings for an event in our system.

Example .ics: [URL]

However, since our customers sync with a dynamically generated file, this forces our server to generate the file every time their calendar application wants to sync. And since this will cause a couple of hundred thousand requests every hour, the server will take quite a bit of punishment.

So my actual question is: How does Outlook and other calendar applications know when an ics-file has been updated and needs to fetch the updated file? I need to manage this to only generate a new file when there has been an actual update, and not on every single request. The main problem is that we do not wish to store the actual files on the server.

View 2 Replies


Similar Messages:

C# - Set The Timezone In An ICal Feed Using DDay.iCal?

Sep 23, 2010

I'm creating an iCal feed using DDay.iCal. It works, but I can't figure out how to set the timezone for the feed. Here's the basic code:

iCalendar iCal = new iCalendar();
// <-- Set the Timezone HERE to PST (Pacific Daylight Time)
Event evt = iCal.Create<Event>();
evt.Start = new iCalDateTime(meeting.MeetDate);
evt.End = evt.Start.AddHours(4); // 4 hour event
evt.Description = "This meeting...";
evt.Summary = "Event Summary";

View 1 Replies

Web Forms :: Upload File Into Remote Machine With FileUpload Control?

Dec 7, 2010

My project is running with VSS..I have it's IP Address to connect it. There is a folder "DataShare" in VSS for my project. My task is, i need to upload a document(*.doc) from my Local drive to VSS Folder "DataShare" with FileUpload Control How should i do this?

View 2 Replies

C# - Sync Database To Uploaded File Using Windows Service Or Website Code?

Sep 10, 2010

I have a website that occasionally needs to have a handful of the tables in its database updated. The updates come from another system that exports to comma delimited text files. I can then either FTP the text files to the web server, send them in through an admin upload page, or manually log in to Remote Desktop to download the text files. I have all my C# code written to parse the files, check the database contents, and decide what to do.

Should I code the sync logic to be part of a file upload page, protected in the admin section of the site or should I create a Windows Service that constantly looks for files to process in a particular directory that I can drop files in through FTP?

I have used Windows Services in the past and they have worked great, but if I ever have to make a change to the code it can take longer than it would if I just had to modify an ASPX.

Are their security benefits one way or another?

Performance benefits?

ASPX page wins the "ease of maintenance" category.

View 1 Replies

Web Forms :: Feed The Aspcalendar Through Ical?

Jul 8, 2010

We have a website based on the .net-framework with ms-sql.

We use the standard asp calendar control to list our events on our website.

We have created a new event-database on another webserver that also generates an ical-feed.

How do we imort these 'ical-data' in our asp calendar?

note: we're newbies in programming!

View 2 Replies

Web Forms :: Force File Download On Remote File Server

Sep 13, 2010

I'm trying to force a large (200+ MB) file to download that's on a remote server. The problem is that I can't use the "WriteFile()" function, since I'm not using a virtual path. Then, when I try:

Response.AppendHeader("content-disposition",

View 17 Replies

DataSource Controls :: Data Are Not Updated In Mdf File?

Apr 26, 2010

i have a vb.net application that contains and MDF file that holds 2 tables, when i execute an SQL update command it executes fine and the data are updated only in cache, so when i clean my solution the updated data disappears ( database gets back to its original state ) and does not actullay commit in the tables.

View 4 Replies

Remote File Download Via Corrupted File?

Mar 31, 2011

I am using the code below which I have found on one of the forums to download a file in remote server. it seems it is working. However, the downloaded file is corrupted and I cannot unzip.


[code]....

View 2 Replies

Open PDF File From Remote File Server

Mar 21, 2016

After upload a pdf file (order.pdf) to remote server in UNC format, I used code below to open order.pdf file.Code is working in IE9 but not Chrome.Is there another way to open pdf file in remote server?

Dim fullpath As String = [String].Format("file:///{0}", "webserverorderorder.pdf")
Response.Redirect(fullpath)

View 1 Replies

AJAX :: Using AJAX Calendar Extender Instead Of Calendar Control Possible On ASPX Page?

Jul 15, 2010

Currently, I am using Calendar control on ASPX page. Instead, I want to use AJAX Calendar Extender control because of the animation effect and the way it moves between years making if much more impressive than Calendar control.Is it possible to display Calendar extender on page permanently, just like Calendar control?

View 2 Replies

Configuration :: Publish All Site Files If Only 1 File Updated?

Feb 16, 2011

I had made a change to the MasterPage and I would like to publish this to my production server at Server Intellect.

I wanted to know, that since I re-compiled the site, and saw the changes locally, do I now need to FTP all of the files?

Or can I just upload the file that I changed- the MasterPage?

Also, Im planning on making a change to a Class. Can I just upload that .cs file by itself?

View 5 Replies

SQL Server :: Why Are All Columns Updated Not Just The One Wanted Updated

Nov 21, 2010

Here is my code. I just wanted to update one column. Why is everything getting NULL put into it?

[Code]....

[Code]....

View 5 Replies

Calendar Gives A 404 But /Calendar/Index Shows The Calendar Page With The Current Month?

Nov 24, 2010

I've got two websites. One is a copy of the other, I even went ahead and remade a copy of the original a second time hoping it would alleviate the issue I'm having but it didn't.

On both pages I have a calendar so the route is

Csharp Code:

[code]....

The issue is on the original site /Calendar works. It shows the Calendar page with the current month. On the copy site /Calendar gives a 404 but /Calendar/Index shows the Calendar page with the current month.

View 1 Replies

AJAX :: Referencing Updated Script File Without Rebuilding AjaxControlToolkit Library

Feb 12, 2010

I have done some changes to the Common.js file of the AjaxControlToolkit. How can i reference this updated script. I don't want to rebuild the dll again and again for each changes made to the script file. Can i do this?

View 4 Replies

Download Remote Xml File?

Jul 27, 2010

I have a remote xml file like [URL]

I would like to write a program to download it to local with progress bar.

View 4 Replies

C# - Remote File Download Using .NET?

Jun 20, 2010

I'm trying to download remote file using C# (ASP.NET). The problem is when I browse to the file download URL - it downloads perfectly. When I try the WebClient.DownloadData(url) I get "no data to show" response.

If I browse using the built-in VS2010 browser I still get this "error" message.

The file link is: [URL](CSV file)

View 2 Replies

C# - Download File From Remote Location?

Jan 4, 2011

i want to download file from other website to on my location and i used code below

Dim wc As New System.Net.WebClient
wc.DownloadFile(pathUrl, fileName)

PathUrl,fileName both are correct m 100% sure.

after execution of these 2 line my browser progress-bar goes in to wait state like something is retrieving.but file not download any where.what should i do next?

View 3 Replies

C# - Download A File From Remote Server?

Mar 17, 2010

The below code works fine for downloading a file from a current pc.plz suggest me how to download it from remote server using ip address or any method

protected void Button1_Click(object sender, EventArgs e)
{
const string fName = @"C:ITFSPDFbillsFebruaryAA.pdf";
FileInfo fi = new FileInfo(fName);
long sz = fi.Length;
Response.ClearContent();
Response.ContentType = MimeType(Path.GetExtension(fName));
Response.AddHeader("Content-Disposition", string.Format("attachment; filename = {0}", System.IO.Path.GetFileName(fName)));
Response.AddHeader("Content-Length", sz.ToString("F0"));
Response.TransmitFile(fName);
Response.End();
}
public static string MimeType(string Extension)
{
string mime = "application/octetstream";
if (string.IsNullOrEmpty(Extension))
return mime;
string ext = Extension.ToLower();
Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(ext);
if (rk != null && rk.GetValue("Content Type") != null)
mime = rk.GetValue("Content Type").ToString();
return mime;
}

View 2 Replies

WCF / ASMX :: Remote File Synchronization Using WCF?

Apr 26, 2010

i need working example for remote file synchronization using WCF

View 1 Replies

C# - Checking If A Remote File Exists?

Mar 24, 2011

I have a ASP.Net website with links to files stored on a file server. These files are modified constantly and so the links will not always be valid, this includes changes to permissions, files being moved or deleted, etc. I implemented a method in the code-behind to check the validity of these links as they are constructed, if it fails the code will add CSS to change the color of link:

Check URL

/// <summary>
/// Check if a URL exists. Method by http://www.vcskicks.com/check-website.php
/// </summary>
/// <param name="url">URL to validate</param>
/// <returns>True if the URL was resolved, false otherwise</returns>

[Code]....

My problem is that not all the invalid links are getting the style added to them. The strange thing is that when I step through the method in debug mode using one of the bad links that was not colored, the method will return false and color the link as expected. There's a lot more involved then what I present above, but I searched the entire aspx code-behind for any other locations where the link url is being set and couldn't find any. I don't know if there's some post processing going on that somehow clears any styles that were applied to some of the links. The fact that some links are colored while others are not is very confusing to me. Has anyone else encountered similar behavior before?

View 1 Replies

Web App Unable To Access Remote File Through IIS 5.0

Jul 27, 2011

I have this web app that works just fine when I run it on IIS 6.0, but when I run it on a different machine with IIS 5.0, it ends up having file access problems. Basically, my web app uses a COM object, and this COM object uses resources, such as files, and these files are located in remote machines. A sample code would be:

Code:
MyComObj com = new MyComObj();
com.UseDataFiles("machineBdata.dat");

Again, it works fine on my machine with IIS 6.0, but in my other machine with IIS 5.0, it gives me an error. To be more precise, it's the COM object that gives me an error; the com object tells me that it can't find the file. What's weird is that when the web app calls this line:

System.IO.File.Exist("machineBdata.dat");

It returns True, which means my web app has permission to read, but when it does it through my com object, it can't see it. Again, I dont' think it's the COM object that has the problem since it runs fine on IIS 6.0. In fact, I ran a windows form application (that uses the COM) on the machine with IIS 5.0, and it works fine.

View 6 Replies

Security :: How To Read A File On A Remote Server

Jul 16, 2010

filetoread = Server.MapPath("\servernamesharefile.csv")
filestream = File.OpenText(filetoread)
readcontents = filestream.ReadToEnd()

It works fine if I put the file in the local directory and use "filetoread = Server.MapPath("file.csv")", but won't do it over the UNC path.I'm guessing the problem is security related but can't find any info related to it, do I need to somehow specify a username/password somewhere ?

View 3 Replies

How To Collect All File Names From Remote Server In C#

Oct 18, 2010

I have many images on remote server say [URL] & i want to access file names of all files that resides in the folder 222 on [URL]

i have tried following code but getting error "virtual path is not valid" :

imageserver = http://images.foo.com/222;
DirectoryInfo di = new DirectoryInfo(imageserver); // line giving exception
FileInfo[] rgFiles = di.GetFiles();
string simagename = "";
if (rgFiles.Count() > 0)
{
foreach (FileInfo fi in rgFiles)
{
//collect each filename from here
}
}

View 1 Replies

Connecting To A DBase File On A Remote Server?

Aug 19, 2010

I have an asp.net website that needs to connect to a dBase file on a remote server. The remote server has a ODBC System DSN connection configured but I have no idea how to connect to it.

View 1 Replies

Web Forms :: Access Remote File In .NET Application?

Feb 14, 2011

I want to write text file on remote location using .NET application. So can anyone tell me how to do this.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved