Web Forms :: Bandwidth Consuming JS Files?

Jul 26, 2010

What are WebResource.axd and ScriptResource.axd ? Because more than 40% of my bandwidth use by those script loading and it take a long time to load the web site.

View 9 Replies


Similar Messages:

Architecture :: Consuming Excel Files For WF 4.0?

Dec 6, 2010

Here's what I want to do, however I'm not sure of the best place for Excel. Excel files are sent via e-mail from various sources, from each source, they are sent in different versions of Excel and different information layouts, though from each source they are consistent.

Overview.

I want to give the user a front end to enable them to place the excel files into a drop zone and specify which files have come from which source. I then want to pass the file names and source origin to a workflow service. Based on this info the workflow service will then take 1..n workflow routes based on the source with the ultimate aim that data will be placed into an SQLServer 2005 DB or if the Excel lines cannot be processed, then output for the user to see with a reason. Because this is quite a complex task, I'm taking each source in turn.

Initial Problem.

My first set of Excel files come in 4 seperate files. I need to first merge the data in the Excel sheets to make 1 File for Processing. Some of the rows in the spreadsheets can be merged into a single line under certain conditions which will make the business logic much easier further on. So, first off After the user has dropped the Excel files into the drop zone I need to open the spreadsheets and merge them. I then need to feed each line to a 'rules' engine to determine the data and business logic that needs to be processed before updating the DB. So I thought I'd use a Workflow service for this since there will be no reason not to work on multiple sources at the same time as I progress through the development of the program. The problem I have is that unless I download the CP1 for workflow I cannot use this directly (so it appears) for working with Excel. So I was looking at using possibly WCF as the 'feed' to the workflow service, but can I use WCF to do the possible long running process of merging the Excel spreadsheets before pasing a row at a time down to the workflow service?

View 1 Replies

Web Forms :: Determine The Effective Bandwidth On Local Machine?

Apr 5, 2010

I am working on an asp.net web application where I would like to show the user how much

1. Data was downloaded,

2. Time taken to download the page contents and

3. Bandwidth speed (effective)(I guess this will be data downloaded/time taken, if I am wrond please correct me).

that was available to the user when he is downloading a certain page of my application. This info is to be displayed at the status bar.

View 6 Replies

How To Verify Network Bandwidth In Web Application

Nov 12, 2010

I am maintainign a ASP.NET app. Some of users action are pretty slow; one of my colleagues claim it is caused by network bandwidth as some used dll will connect over to internet to get data.

How could I verify it's really due to network issue? Any tools can peer the network connection during the process?

View 2 Replies

Visual Studio :: Limiting Webdev.webserver Bandwidth For Stress Testing?

Jul 25, 2010

I wantto make a slower transmitting/transferring data speed for debugging issues.(no threading sleep is not my answer) searching a way to limit webdev.webserver speed (bandwidth) ?

for example maybe checking on "custom web server=webdev.webserver /BandwidthLimit=128bs"

View 1 Replies

Web Forms :: Perform Time-consuming Task On Server?

Oct 28, 2010

I have a function which performs a series of time-consuming operations which include querying a large database, customising an excel file and sending an email with a 5MB attachment.

I would like to excute this function in the background, when a button is clicked, and immediately redirect the user to another aspx page. The user should be free to browse to other pages or even close the browser when the background operation is still running on the server. I have tried to implement threading but could not get it to work. The email with attachment does not get sent even though there are no errors.

View 5 Replies

Consuming A Web Service?

May 23, 2010

I have put a simple service on my site which requires the input of a string and it will return an array as its output.The service works fine on my PC; however, I have published the site online and the web services don't work?

View 9 Replies

Consuming RSS Feeds In ASP And C#?

Aug 2, 2010

I'm working on making a modification to a site built with ASP/C#, and one of the tasks was to add in the display of 2 RSS feeds - one from the site's internal blog, and the other from the site's Twitter account. However, I seem to continually get empty feeds from both, even though I've confirmed that I'm pointing to the correct URL of the feeds. My code is shown below.

private void GetTwitterRSS()
{
IEnumerable items = Cache["TwitterFeed"] as List<SyndicationItem>;

[code]...

View 1 Replies

Consuming WCF In Web Application?

Apr 14, 2010

My application is in asp.net 2.0. Is it possible to consume WCF service developed in asp.net 3.5? If possible, how can we consume wcf service in asp.net 2.0?

View 1 Replies

Exception In Consuming Webservice?

Sep 6, 2010

I'm developing a .NET application using .NET 3.5 .My application is using a JAVA

WebService (wsdl url)

When I run the application I want to consume the web service (wsdl file) written in XML. i either keep getting the Operation Time out Error or the following exception while debugging

Possible SOAP version mismatch: Envelope namespace

http://schemas.xmlsoap.org/wsdl/ was unexpected.

View 2 Replies

WCF / ASMX :: Consuming Web Service W/ WSE 2 -or- 3?

Jun 14, 2010

I'm taking over a project for a former co-worker. We're consuming a web service which requires authentication. The former co-worker was unable to call the service using WCF. I'm mostly unfamiliar with web services but was also unable to get it to authenticate.Upon speaking w/ the original developer, I was told that I'd have to build a project in VS 2005 in order to consume the service and that WSE 3 would have to be used, instead of WCF. He has some code that did indeed build and run on his PC, while he was here. I'm now unable to get it to build.

I'm running VS 2005 on XP and have WSE 3.0 installed and enabled on the project, which is a C# class library. I successfully made a Web Reference to the service and generated a proxy. In trying to test it, the first few lines of my code look like this:

[Code]....

...problem is, it says that the proxy that was generated does not have RequestSoapContext!

View 4 Replies

WCF / ASMX :: Consuming An XML Web Service?

Feb 23, 2011

I am trying to create a wrapper class for the MusicBrainz CD database using VB.NET. I have a test URL that produces an XML response:[URL]I need to get that response into an XMLDocument object in .NET. I have tried XMLDocument.Load, WebClient.DownloadString, and HttpWebRequest through a StreamReader. All produce: Unable to Connect To Remote Server. It is possible that my company firewall is the problem but I can access the URL just fine in a web browser.

View 2 Replies

WCF / ASMX :: Consuming A Php Web Service In .net?

Oct 4, 2010

Here's a simple question that Google isn't providing any good leads on:How I do consume this in VS 2008 or 2010?[URL]I have no control over it, I just have to consume it and use it. Adding it as a web reference in the project yields this error:[URL]was not recognized as a known document type.The error message from each known type may help you fix the problem:- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespac"

View 6 Replies

C# - Consuming A Rest XML Web Service?

Jan 14, 2011

I'm trying to consume the following web service http://ipinfodb.com/ip_location_api.php
this web service returns an xml response, the code below gets the XML response, but somehow when phasing the values from the XML response it does not work.

What is wrong with my code?

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.IO;
using System.Net;
using System.Xml;

namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
HttpWebRequest request = null;
HttpWebResponse response = null;
String Xml;
// Create the web request
request = WebRequest.Create("http://api.ipinfodb.com/v2/ip_query.php?key=<yourkey>&ip=74.125.45.100&timezone=true") as HttpWebRequest;
// Get response
using (response = request.GetResponse() as HttpWebResponse)
{
// Get the response stream
StreamReader reader = new StreamReader(response.GetResponseStream());
Xml = reader.ReadToEnd();
}
// Console xml output
Console.WriteLine(Xml); //see if we get the xml response, (YES we do)
Console.ReadLine();
string _currentField = "";
StringReader _sr = new StringReader(Xml);
XmlTextReader _xtr = new XmlTextReader(_sr);
_xtr.XmlResolver = null;
_xtr.WhitespaceHandling = WhitespaceHandling.None;
// get the root node
_xtr.Read();
if ((_xtr.NodeType == XmlNodeType.Element) && (_xtr.Name == "Response"))
{
while (_xtr.Read())
{
if ((_xtr.NodeType == XmlNodeType.Element) && (!_xtr.IsEmptyElement))
{
_currentField = _xtr.Name;
_xtr.Read();
if (_xtr.NodeType == XmlNodeType.Text)
{
switch (_currentField)
{
case "Status":
Console.WriteLine(_xtr.Value); //we print to console for testing purposes, normally assign it to a variable here!
break;
case "CountryCode":
Console.WriteLine(_xtr.Value);
break;
case "CountryName":
Console.WriteLine(_xtr.Value);
break;
case "RegionCode":
Console.WriteLine(_xtr.Value);
break;
case "RegionName":
Console.WriteLine(_xtr.Value);
break;
case "City":
Console.WriteLine(_xtr.Value);
break;
case "ZipPostalCode":
Console.WriteLine(_xtr.Value);
break;
case "Latitude":
Console.WriteLine(_xtr.Value);
break;
case "Longitude":
Console.WriteLine(_xtr.Value);
break;
case "Gmtoffset":
Console.WriteLine(_xtr.Value);
break;
case "Dstoffset":
Console.WriteLine(_xtr.Value);
break;
case "TimezoneName":
Console.WriteLine(_xtr.Value);
break;
case "Isdst":
Console.WriteLine(_xtr.Value);
break;
case "Ip":
Console.WriteLine(_xtr.Value);
break;
default:
// unknown field
throw new Exception("Unknown field in response.");
}
}
}
}
}
Console.ReadLine();
}
}
}
EDIT: this is the XML response returned
<?xml version="1.0" encoding="UTF-8" ?>
- <Response>
<Status>OK</Status>
<CountryCode>US</CountryCode>
<CountryName>United States</CountryName>
<RegionCode>06</RegionCode>
<RegionName>California</RegionName>
<City>Mountain View</City>
<ZipPostalCode>94043</ZipPostalCode>
<Latitude>37.4192</Latitude>
<Longitude>-122.057</Longitude>
<Gmtoffset>-28800</Gmtoffset>
<Dstoffset>0</Dstoffset>
<TimezoneName>America/Los_Angeles</TimezoneName>
<Isdst>0</Isdst>
<Ip>74.125.45.100</Ip>
</Response>

View 4 Replies

WCF / ASMX :: Consuming A PHP Service?

Aug 24, 2010

I'm working with an outside company to impletement their API into our program. Most of their member functions working pretty solid. I get to the one function where I have to pass an associated array to it and this is where it blows up. I create a hash table or namevaluecollection and of course I will get the error(The type System.Collections.Hashtable is not supported because it implements IDictionary.), which can't be serialized.


Is there an easy way to pass this associated array to them? I don't think their api is very flexible, but they seem to think so.

View 1 Replies

WCF / ASMX :: Consuming .net Webservices In Php?

Apr 5, 2010

I want to know can php client consume asp.net web services with

1: returning basic types int, string etc.

2: returning DataSets

View 5 Replies

Consuming An Array From A Webservice?

Mar 18, 2010

I am trying to consume an array of strings from a webservice that I wrote. I keep getting the error: "System.NullReferenceException: Object reference not set to an instance of an object."

I know I am doing some thing wrong at an extremely basic level, but it's not coming to me.

I have tried adding New but get the error that you can't declare arrays with New

Here is the dummed down webservice method:<WebMethod( _
Description:="Testing ")> _
Public Function TestArray(ByVal Address1 As String, ByVal zip As String) As String()
Dim strTest(4) As String
strTest(0) = "It's"
strTest(1) = "a"
strTest(2) = "great"
strTest(3) = "day"
Return strTest
End Function
<--Here is the call that generates the null reference error-->

Private Sub FindAddress()
Dim svc As ws.Service
Dim strAddresses() As String
strAddresses = svc.TestArray(txtAddress.Text, txtZip.Text)
End Sub

View 3 Replies

Consuming A WSE-enabled Web Service In A 2.0 Web Site?

Jan 25, 2011

I'm trying to consume a WSE enabled Web Service from an ASP.NET Web Site.I've installed WSE 3.0, used the config tool to add WSE info to my web.config and then done an Add Web Reference.I believe that the problem may be that this is a Web SITE, not a Web APPLICATION. As such, the proxy class is generated at runtime, perhaps not adding the WSE magic.I can access the proxy class from metadata, and it's of typeSystem.Web.Services.Protocols.SoapHttpClientProtocol, which as far as I can tell doesn't have any WSE functionality.I realize that this is all old technology, but I don't get to decide what the servers run :(

View 1 Replies

WCF / ASMX :: Consuming Web Service Without Wsdl?

Nov 9, 2010

I need to access a web service. The WSDL is not available, even if I know everything about the service (url, method name and signature). I guess I could use HTTPRequest and HTTPResponse classes:HTTPResponse: should contains the XML Soap Response that I eventually parse.HTTPRequest: how to specify the service's and the method's parameters?

View 2 Replies

Consuming .NET Web Services With Complex Types In PHP

Mar 12, 2011

Can i consume .NET web service and use it complex types in PHP?
Example:

[WebMethod]
public DataSet GetData()
{
return new DataSet();
}

Can i consume this method and use DataSet class methods in PHP?

View 1 Replies

Creating / Consuming Web Service For HTML?

Mar 2, 2011

i have a requirement to build some sort of services that can easily be called to a 3dr party API.

the call can be done through simple
1) HTML page
2) ASPX page
3) MOBILE device

should i create a separate web service project separately and create few methods [WebMethod] ?

also the method can be static?

/// <summary>
/// Summary description for signup_service
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]

[Code]....

View 1 Replies

WCF / ASMX :: Consuming Webservices With Https?

Aug 26, 2010

I wrote some webservices in my solution and it works fine when i consume it in my local machine... BUT when i deploy it in the public IP and using https. I'm not able to consume the webservices i got a "The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via" Error...

I tried to change my configuration in my web app from security mode="None" into security mode = "transport" and I got an error... (forgot to log the error)

Note* I'm using virtual IIS (this is where i test my project)

View 2 Replies

What Is A Reliable Way To Run Time Consuming Tasks In MVC2

Sep 15, 2010

I need reliable way to run 10 different tasks simultaneously. For instance the first one would be sending emails, while the next one is cleaning rows from a specific table... so on an so forth.

I've used the Thread class and while it works well on my development machine (VS2010 internal web server) non of these threads seems to be working at all on my production server. And I don't know of an effective way to debug the problem on the production server.

I saw this technique which encourage you to register cache objects. Since the application fires a callback when a cached item expires, then it's possible to run any code to mimic threading behavior. It seems a little Micky Mouse like.

View 3 Replies

Consuming StackOverflow API And Visual Studio 2010?

Feb 14, 2011

I have downloaded TheWorldsWorstStackOverflowClone. One of the project is called TheWorldWorsts.ApiWrapper, which basically is the core of accessing the API. There is a class called ApiProxy.cs, which has all the methods for the API call. This is good.

Now what I want to do is I am trying to collect data from this API interface and store it in a database. I know the limit to the API call is 10k per day. I.e: I want to be able to call the method in the ApiProxy class 10k times per day, done automatically. How can I do this?

The non-automatic way would be to create a dummy site where when every time I access the site it does all that process, but this not efficient. It seems that I have to write some kind of a scheduler by deploying a web service, but that is too complicated... as explained here. Any other simpler methods?

View 1 Replies

WCF / ASMX :: Consuming A Class Library From A Web Service?

Apr 19, 2010

I've created a class library, now I'm trying to use it in a webservice.If I try and use it via a web method like this:

<WebMethod()> _Public
Function GetStaffList()
As List(Of ClassLibrary.Staff)
End
Function

I get this error:You must implement a default accessor on System.Security.Policy.Evidence because it inherits from ICollection. And I can't seem to find any coherent instructions on remedying this issue.If I copy the Staff class into the web service (app_code) it works hunky dory, so it must be security..I can't be the only one attempting this! MSDN doesn't explain this one too well :(

View 3 Replies







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