C# - Is There A Library That Can Stream FLV From An IIS Server To Page
Feb 8, 2011Is there a library that can be used to stream FLV from IIS server and play it in ASP.NET page using C#?
View 2 RepliesIs there a library that can be used to stream FLV from IIS server and play it in ASP.NET page using C#?
View 2 RepliesI have an excel file in my Response Output stream. I can Open the stream as a file after a prompt, but it doesn't seem I can save it directly to a specified folder on my client.
View 1 Repliesi will be passing the xml file like this:
[code]....
error:
Error 1 The best overloaded method match for 'System.Xml.Linq.XDocument.Load(string)' has some invalid arguments
cannot convert from 'System.IO.Stream' to 'string'
I am trying to filestream to my hosting Companies sever.I have tried the below expecting it would not work. How can I find the correct path.Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.
Source Error:
[Code]....
Any code snippet or third party utilities to do this? Anything built into .NET libraries?
View 3 RepliesIs there a way, without using a streaming media server, to stream semi-live audio from an asp.net web app? We want to have a microphone located at a remote site, and stream the data to the client machine for listning. Maybe somehow dynamically build the wav data, or somehow implement this using playlists?
View 1 RepliesI don't think there is a way around this but figured I'd ask... We have an application where a user can generate PDF documents that are streamed to the browser. There is some additional functionality going on behind the scene and I would like to be able to display a message to the user (via updating a literal tag on the page). I don't get any errors when doing this but the page isn't updated and the message isn't displayed. My guess is that streaming the document blocks any other content from going down to the client. In particular, we're using CeTe Dynamic PDF and calling one of their methods but I think it's essentially just doing a Response.BinaryWrite to stream out the PDF.
View 6 Repliesproblem with Stream.Write() where it works under a dev (Windows 7) environment but fails under a server environment (Windows 2008 R2 Enterprise)?
I'm basically working with some third party code which reads from a FileStream and writing to an Http request, nothing unusual and it's doing the following things:
Ensuring that Response.KeepAlive is false (was originally true but worked W7 and not W2K8 so tried false but it doesn't );
Ensuring that the Write includes the length of the bytes to write;
Ensuring that I Flush the stream afterwards;
The error that I encounter is the rather vague 'The request was aborted: The request was canceled.' with InnerException of 'Cannot close stream until all bytes are written.'. Now, my code works perfectly under Windows 7 so I still suspect that something is actively blocking this writing although I am not sure what, how and where.
One other possibility I wondered about was whether the encoding might be different under Windows Server 2008 R2 as opposed to Windows 7?
Here's a code snippet from the relevant method (a bit convoluted but, disclaimer, I didn't write it :-):
string boundary = string.Concat("-------------------------", DateTime.Now.Ticks.ToString("x", CultureInfo.InvariantCulture));
byte[] boundaryBytes = System.Text.Encoding.UTF8.GetBytes(string.Concat("
--", boundary, "
"));........
I have an ASP.NET page with a text status and a button to export an Excel file. When the user clicks the button, I want to generate the file on the fly and return it to the client as binary stream. Then I want to change the text status to show success/failure.
So far I can generate and send the file no problem, but obviously the statuses don't get displayed, since the server response was used to send the file and not a new updated page with the new status.
I'm not sure what's the cleanest way to approach this. I can think of something but is it the best way:
User clicks on button. File is generated and saved as a stream in the session. Statuses are updated and the page with the new statuses is returned to the client. A piece of Javascript on the page opens a 3rd party page which retrieves the saved stream from the session.
I am looking at the twitter api page http://apiwiki.twitter.com/ and I noticed that they have already built libraries that are wrappers against the twitter api. So I am thinking this is the best way to go but I am unsure which C# library I should use.
What I am trying to do is make some simple service or cmd line application that will help me automate retweeting.
So I am looking for a library that will allow me to get posts from other twitter accounts and then retweet them from another account.
I am not sure if the library can do this or not. Otherwise I was thinking of getting the RSS feed from the twiter account I want to get the twitters from parse out the new ones and use a library to retweet them on my own account.
I have not used twitter much so I am hopping someone can shed some light on this.
Is there any simple DAL Generator for SQL Server/ MS Enterprise Library/VB.NET or C#?
View 7 RepliesI am posting this as a part of my effort in searching the best possible design solution for my requirement. I am currently working on a complex server control(not user control) in asp.net which is going to be rendered into html elements on the client side.And those html elements needs to do a ajax call backs to the server using js/jquery. Here is the problem. As this is a serverside control and can be added into any application/domain. I dont want to have those callback services hosted separately. Is there any way that I can host those server callback services in the same library? If so, how can I access them from the client side?
View 1 Repliesi create a class library and i want my code behind the page be there. in my page like login.aspx is a login control and i want to write some code for that but i got some error i don't know what i'm doing rong. the code behind in class library is:
[Code]....
and the codes in login.aspx page is:
[Code]....
after i buld the project the code behind doesn't find the MainLogin control
Is it possible to consume a wcf survive from a class library and use class library in SQL Server 2005?
View 7 RepliesI emebeded jquery library in custom server control. but it's not working. it throws "object expected error". the complete code listing is given below.
jquery-1.4.1.js is rename it to jquery.js
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;.........
I want to create a database in Sql server 2005 with library tables like aspnet_applications, aspnet_profile etc.,
I want to provide admin interface[webform] for the client to create user in the aspnet_Users.
How can I attain this?
Is there any free library for create xls files in asp.net on a server without office?
View 4 RepliesIs there a way to incorporate javascript and css into a VB or C# library?
View 2 RepliesI have a class file residing inside my web app. One public method, I wanted to take a string parameter, and populate some Session variables that are used throughout my site.How can I have a class do this, that multiple webpages can access?
View 2 RepliesWhat is the best library/software to compress the dynamically generated javascript on server? I use javascriptzip to do so statically. Any solution for .Net platform? P.S. compression involves removing unnecessary spaces + language compression like changing new Object() into { }
View 2 RepliesI have an ASP.NET application using a master page. I am adding a reference to the JQuery library in the master page however there are some content pages and user controls that reference the JQuery library directly. Will I need to remove each reference from those pages or can I leave them in place even though I am adding a reference into the master page of the application?
View 3 Repliesi want to store master pages in a common library. if i make such a library how can i reference masterpagein Page directive in content page
i read following document for creating sub projects but it did not fullfill my requirement
http://weblogs.asp.net/scottgu/archive/2006/08/16/Tip_2F00_Trick_3A00_-Creating-Sub_2D00_Web-Projects-using-the-VS-2005-Web-Application-Project-Option.aspx
http://dotnetkeeda.blogspot.com/2009/04/sharing-master-pages-across-web.html
I am trying to insert candidates information into SQL Server database. I have written the corresponding stored procedure like below in SQL server:[Code]....
C# code to access the stored procedure is like below using Enterprice library Application blocks.[Code]....
I am getting the following error:Input string was not in a correct format
I hope this is the right place to ask this question. I'm trying to make a control class library. I want to have a GenericHandler as a WebResource so I could call it from the web project that will use that control.
I need this handler will get parameters from the query string and return JSON data acourding to what it get in the QS.
I know how to create JS and images WebResources, so I tried the same on a generic handler I added to the class library project but all it does is return the source of the handler file and not the result.
ASP.NET Ajax Library provides some client-side events. For instance:
Sys.Application.add_load(
function(args) {
// handle the end of any asynchronous post-back. Every-time there's
// a server round-trip, this method will be called.
}
);
During the asynchronous post-back I want to retrieve information to the client. This information must be available in some event like the discribed above.
Does the UpdatePanel or the ScriptManager have any server-side way to retrieve data back to client during an asynchronous post-back?