WCF / ASMX :: Set Webserver As Application Variable?

Jan 24, 2011

I'm trying to set my WebService to a Application variable, but I can't use after all...

Application["sorts"] = new Sorts.Sorts();

Ok, so when I type Application["sorts"] and put a periond in front, instead get the list of the WebService methods I just get the Equals, GetHashCode,

GetType and Tostring.Probably it's belongs to the Application thing itself.

View 1 Replies


Similar Messages:

WCF / ASMX :: Passing Variable From Dropdownlist.selectedvalue To Asmx Webservice

Nov 10, 2010

On my page I have a dropdown for country.

On my asmx service I want to get the value of the dropdownlist to filter the next input which will be state/providence.

My code on the asmx:

[Code]....

I want to add another clause to the WHERE statement to restrict Country = @Country so I will need to get that value to the web service.

View 2 Replies

How To Get ComputerName Of The Webserver Where WCF Service Is Hosted Inside Application

Apr 9, 2010

I have an Asp.net web application which have one WCF hosted inside a .svc file

<%@ ServiceHost Language="C#" Debug="true" Service="MYNameSapce.BatchService" %>

this service is access by some desktop application which have referenced it.

In one of my WCf service method i have to access the path which i were able to get via

string filePathTemp = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath + @"UploadFiles" + request.FileName;

Now in one of the method i wanted to get the computer Name of the server.

View 2 Replies

Security :: Implement Windows Authentication In A Application In The Webserver

Sep 13, 2010

I have one webserver alone in the network and all the users authenticate in another server. I'm trying to implement windows authentication in a application in the webserver, but every time that the page loads a login window appears exactly that the windows client was authenticated in the order server. Is It necessary both server stay in the same domain? Is there another way? Finally, I need to get the user id in the windows client, but webserver and domain server don't communicated between itself.

View 1 Replies

Configuration :: Getting The Components / Application Working Properly On The Webserver?

Apr 16, 2010

I'm quite new to ASP and I can't seem to figure out how to get the application/website to work properly on my webserver. The first thing I had done was to build the solution, shortly followed by 'build website' and at last, to 'publish website'. It saved the files to C: -> Documents -> MS VS -> Projects -> My website.

There, the following files are found:

Account [folder]; App_Data [folder]; Scripts [folder]; Styles [folder]; bin [folder]; Web.config; Site.master; Default.aspx; About.aspx and PrecompiledApp.config.

I then uploaded these via FTP to my webserver and accessed the appropriate URL. Seems nothing showed up in root beside "Index of/". When I tried to access /Default.aspx, nothing but text appeared (which would be the code displayed in Default.aspx).

I've also read some tutorials regarding this matter where they instructed me to upload directly from Visual Studio to the FTP server, but I'm kind of afraid that it'll delete everything in said folder, as I don't know what the structure of said direct upload should be like.

View 2 Replies

Monitoring SQL Statements Application-side By Attaching To W3wp/WebDev.WebServer.exe?

Dec 1, 2010

Oracle has simple, useful and free tools for attaching to a process and monitoring its SQL statements but I can't anything similar for SQL Server. This is incredibly useful across a number of scenarios, particularly when dealing with third-party assemblies (1). ANTS 6 seems to support something like this (2), though it doesn't allow you to view the stack-trace that lead to the query as dynaTrace does. I don't think dotTrace tracks parameter values, either.

Surely there's a widely available option for profiling SQL application-side?

(1) -

[URL]

(2) -

[URL]

View 1 Replies

Application Variable Versus Web.Config Variable

Aug 24, 2010

Which is better from a performance perspective?

Accessing a Global Application Variable (Application["foo"])

versus

Accessing an AppSetting variable from the web.config

Does .NET Cache the AppSetting variables so that it is not accessing the web.config file with every use?

View 2 Replies

State Management :: Use Session Variable From Application To Another Application?

Apr 27, 2010

I Want To Use A Session Variable From One Application to Another Application. Is That Possible in ASP.NET 3.5 Or Greater To Use Session Variables As i Required. My Both Applications Host In Same IIS Server.

Me To Sort Out This Prob. ASAP

View 1 Replies

AJAX :: Autocomplete Asmx Detect A Session Variable?

Dec 30, 2010

I am attempting to pass a session var(dropdownlist choice) to my autocomplete.asmx to incorporate it into my sql select statement. Is this do-able?

View 9 Replies

ASMX :: Unable To Upgrade Old Application With New Application Based On WCF Framework?

Nov 30, 2010

I made one application which consumes WCF service and also using nettcp protocal. As we know, WCF application requires .Net3.0 and .Net 3.5 framework. but we have some dealer machine which are having window server 2000 OS now i am not able to install .net 3.5 framework on dealer machine . So we are not able to upgrade old application with new application which are totally based on WCF framework .

View 1 Replies

WCF / ASMX :: Passing Value From Web Application To Windows Application?

Aug 17, 2010

I have a web page where I used a gridview and a button.When selecting rows in the grid and click on the button another windows application fires.I need to pass the values of the selected rows to the windows application.

Rightnow I'm saving the values in an xml file and fetch the values in the windows application.But this is not practical when creating xml files with random numbers(Scan125.xml,Scan7867.xml,etc).

View 1 Replies

C# - Locking An Application Variable?

Dec 10, 2010

I'm using a 3rd party web service in my ASP.NET application. Calls to the 3rd party web service have to be synchronized, but ASP.NET is obviously multi-threaded and multiple page requests could be made that result in simultaneous calls to the 3rd party web service. Calls to the web service are encapsulated in a custom object. My thought is to store the object in an application variable and use the C# lock keyword to force synchronized use of it.

I'm nervous, because I'm new to multi threaded concepts and I've read that you shouldn't lock a public object (which my application variable effectively is). I've also read that if the locked block of code fails (which it could if the web service fails), then it could destabilize the app domain and bring down the application.I should mention that the 3rd party web service is rarely used in my website and it's going to be rare that 2 requests to it are made at the same time.Here's a rough code sample of how I'd make calls to the web service:

ThirdPartWebService objWebService = Application["ThirdPartWebService"] As ThirdPartWebService;
lock (objWebService)
{
objWebService.CallThatNeedsToBeSynchronized();
}

View 4 Replies

C# - Application Variable Refresh In An Mvc Web App?

Feb 4, 2010

I have an Application level variable that gets loaded from a database when the application starts. Now when accessing the variable, I check to see if it is not null. If it is not null I use it, if it is null I initialize it from the database, then use it.

My question is how can I make sure that this variable is refreshed atleast once a day? Is there something in .net or the MVC framework to help with this?

Does IIS unload an application if it has not accessed for a while? If so then my variable would be refreshed each time the app is reloaded.

View 1 Replies

Application Variable Instead Of Session?

Dec 28, 2010

i am redirecting from a 3rd party site to my application where i am getting the responses of credit card no,cvv no and exp date into my application.but the session data that had come from the previous page is being lost.i have tried using application instead of session and its working fine will there be any disadvantage of using application over session

View 9 Replies

How Much Data Can Be Stored In Application Variable

Mar 9, 2010

How much data can we store in Application variable in ASP.net.

View 1 Replies

How To Store An Application Variable By Javascript

Feb 10, 2010

how could i store a Asp.net Application variable by javascript.

View 2 Replies

Share Application Variable Between 2 Websites (IIS 7.5)?

Oct 31, 2010

I have two urls that are supposed to lead to the same actual folder.

I can't do a redirect because the websites are built so they question the URL and perform accordingly.

So I built two application in the IIS (I tried using a virtual directory for one of them, but I kept crashing on the web.config can not be read). Everything works perfectly except the Application variables which are different between the two addresses. (Specificly I'm counting the number of current users logged on).

View 2 Replies

How To Change Application Variable Value On Closing Browser

Jun 11, 2010

I want to Change application variable value on closing browser, Problem is; I am using sessionState mode="StateServer" and in this mode, Session_end event does not fire in global.asax

how i can detect session_end or browser close and then change the application variable?

View 1 Replies

Configuration :: Passing Variable Externally To VB.NET Web Application?

Nov 18, 2010

I need to make the connection string in my vb.net web application be passed into the app externally. This is so I can re-driect the app to use either a test or production database. The same idea as a .INI file in a windows base system. someone suggested to me I use XML but I dont know how to do that.

View 13 Replies

Static Variable Inside A Class In Web Application

Jul 28, 2011

I understand the problem of the static variable inside a class in the web application, now I try to create a simple class to deal with SQL Server for example, so I created Static Method inside this class, this static method used in insert, update and delete from database, I wonder if this is safe, and there is no problems will appear ?

View 10 Replies

MVC :: Save Chat Room Data In Application Variable Or DB, Where Is Better?

Nov 4, 2010

My application is MVC Web App Chat Room , it supports following features:1.Create/Join/Close room 2.Send message in room (just live message, offline message might be supported in future)I have done logic for application, but I'm considering where to save chat room data (message,room information, and users in room) ? I see there are 2 options:1. Application variable2. Using file or database-What if I saved in Application variable:In case of there are 2000 rooms and 10000 users online, mean I have to persistence in Application variable (actually in RAM memory) information of 2000 rooms, more than 10000 message (text), these numbers might be increased by second if there are more users online in real time. and what's next ? I don't know what will happen to server, crash ? or my web app will be terminated ? whatever I don't want both results !

-What if I saved in file or DB (i.e: SQL Server DB) Because of web application, clients have to send request every 1 second to fetch data (messages and user list in room). So in case of there are 2000 rooms and 10000 users online, means they will make 10000 requests every 1 second to DB. I don't know what will happen to DB, there are a lot of connections and in EVERY 1 second, can DB still be alive to serve request ?I don't know where saving is good now because both seem are bad solution

View 2 Replies

Save Chat Room Data In Application Variable Or DB?

Nov 4, 2010

My application is Web App Chat Room , it supports following features:

1.Create/Join/Close room

2.Send message in room (just live message, offline message might be supported in future)

I have done logic for application, but I'm considering where to save chat room data (message,room information, and users in room) ? I see there are 2 options:

1. Application variable

2. Using file or database

-What if I saved in Application variable: In case of there are 2000 rooms and 10000 users online, mean I have to persistence in Application variable (actually in RAM memory) information of 2000 rooms, more than 10000 message (text), these numbers might be increased by second if there are more users online in real time. and what's next ? I don't know what will happen to server, crash ? or my web app will be terminated ? whatever I don't want both results!

-What if I saved in file or DB (i.e: SQL Server DB) Because of web application, clients have to send request every 1 second to fetch data (messages and user list in room). So in case of there are 2000 rooms and 10000 users online, means they will make 10000 requests every 1 second to DB. I don't know what will happen to DB, there are a lot of connections and in EVERY 1 second, can DB still be alive to serve request ?

I don't know where saving is good now because both seem are bad solution :(. What is your opinion ?

View 1 Replies

WCF / ASMX :: Hosting Wcf Application And How To Use It

Aug 12, 2010

I've just developed WCF Application including a few wcf services in it.When I run the services thru: view in browser, I get a webpage with url: ttp://localhost:4205/myWcfService.svc.I used these name for making add servce refference in y website.
It is working well on my localhost.Now, when I want to upload it, how should I upload the WCF Application, and how to connect it ?

View 8 Replies

WCF / ASMX :: How To Use Webservice In Application

Nov 3, 2010

try to guide how to call web service in my asp.net Application. I had Web reference of that web service.I added the Service to my application.i created name space and I try to use methods inside the web service it showing unable to connect server machine. I want to Use jangomail services from asp.net application. my application need to send mass mailing using jangomail service.when i try to access that web service( http://api.jangomail.com/api.asmx) it giving Some Error like Connection failed to

View 4 Replies

Web Forms :: Detect All Logged In Users In Web Application By Session Variable

Jan 28, 2011

I'm wondering if it's possible to perhaps set something up in the global.asx file or something that will build a list of all currently active user sessions that I can then use to display to a logged in user, who else is currently logged in.

Currently I store my userId's in a session variable Session["IsLoggedIn"], so basically i want to build an global array of some sort that will store all these active userId's.

Let me know if this is possible, or who i would go about accomplishing this sort of thing. BTW, I'm not using asp.net's built in membership thing for login accounts.

View 1 Replies







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