State Management :: Share Data Between Virtual Directory?

Jun 21, 2010

How to share data between two virtual directory without using Querystring?

View 6 Replies


Similar Messages:

State Management :: Share Session Between 2 Virtual Directories

Jul 27, 2010

I have 2 different Virtual Directories on my local IIS 7.0 server. I want to do session Management in such a way that Session variable created in one Virtual Directory is easily available in another Virtual Directory. I want to achieve this using SQL Server 2005. Till now I have done the following things

1) In my web.config file I have added the following entry

<sessionState mode="SQLServer" sqlConnectionString="Data Source=11.11.11.11;Integrated Security=False;User ID=uid;pwd=pwd" sqlCommandTimeout="30" >
</sessionState>

2) In SQL Server I have a database called ASPState that has 2 tables ASPStateTempApplications and ASPStateTempSessions and also some Store Procedures

Now If I create Session variable called Session["ProductID"] in Virtual directory A how can I access Session["ProductID"] in Virtual directory B.

View 5 Replies

State Management :: Session Variables In Virtual Directory?

May 22, 2010

I created a virtual directory for new .ASPX pages added to existing ASP website. I found that the new .ASPX pages are not able to access the session variables created by the existing .ASP pages (outside the virtual directory).

View 3 Replies

State Management :: Manage Session Variable In To Different Virtual Directory

Apr 13, 2010

I have a problem to manage session variable in to different virtual directory. I need to access Session value from one virtual directory to another virtual directory. For Example I have a Web Site in my IIS with one page. Page 1

[Code]....

I have another virtual directory under the same Web Site with one page as follows.

Page 2

[Code]....

I can't access session value of Page 1 from Page2!I need to access Page 1 Session value from Page 2.

View 3 Replies

Security :: Accessing Network Share Via UNC / Virtual Directory ?

Oct 27, 2010

A month ago I got everything working but now my code has changed and my server may have been misconfigured.

Basically, I'm running IIS 6.0 and Win2k 2003. The webserver will map a network path UNC share at: //wave/test

Also, I have webconfig set up to do: impersonate = true (no username/password defined)

the path //wave/test is another computer that runs Windows XP. Wave is the computer name, test is the folder name. So C: est is the folder to access. The current permissions under C: est on the file server is: Administrator, IUSR_WEB (read-only) and "Wave_user" (read-only)

Back in WinServer 2003, i've added a virtual directory and mapped to \wave est and applied a local username/password for Wave_user. I am able to see/browse all the files in IIS 6.0 and see the files/folders. I call the virtual directory alias: "Waves". Inside Authentication method for this virtual directory, i applied Wave_user and the local password of the local file-server PC , and checked enable anonymous access w/ integrated windows authentication.

Also, back in virtual directory, I set "Connect As" to wave est as username and password as the local password.

When I access the webapplication, using my current local PC credential, and try to access the network share, which in C# is the command: server.mappath@("wave"... i get a Server Error 401. in the browser.

View 2 Replies

State Management :: Different Browsers Share Same Session ID?

Apr 27, 2010

I am using cookieless session manangement in ASP.NET 1.1. When the session is active and the user uses the same url in a new browser window or a new browser in different machine. since the session is active the url will validate itself. When user open new window with same session, i want show some custom meesage.

View 8 Replies

State Management :: Share Session Using Server

Apr 15, 2010

Share session using server

View 3 Replies

State Management :: How Share The Application Objects Between The Server In Web Form

Mar 31, 2010

I have problem in maintaining the application objects in the server when it is deployed in the web farm.In our application i'm storing the sessionID and and the column value ( "tvktnx55vl5mzr453dmaehit " + "A101" ) in arraylist and storing it in application object. when i test this it is ok. but when we deploy it we have one issue that is we cannot share the application object in web farm.

View 1 Replies

State Management :: Session Sharing With Virtual Folders

Jul 14, 2010

i have two solutions, 1. user management and 2. travel management. i publish the user management solution to [URL] and i publish the travel management to [URL] here i face the problem. the default home page would be [URL], its a windows authentication in page load, i capture the username, pass it to procedure which will fetch me his credentials on access. i store these in a session.

in the home page i have link to navigate to travel page, when i try to access the sessions in travel page, its empty. i tried printing the session id in both user management and travel, both are same but the sessions created in user management are empty in travel. what would be problem here and how can i resolve this.

View 2 Replies

WCF / ASMX :: GetUser() Is Null When WCf In Virtual Directory Is Called In Parent Directory

Nov 10, 2010

I have a WCF service in a virtual directory that is called in the code behind of a page that is in the parent directory, when i debug the code i can see the wcf service is being called, however when the service calls Membership.GetUser() it alway returns null. The user has already logged in to the asp.net site. When i call the service via jquery it does pick up the correct user, but i need to be able to call it via the code behind as well. I am developing in .Net 3.5 how i can make the Wcf pick up the logged in user?

View 3 Replies

Installation :: Development To Web Movement: Directory Listing Denied - This Virtual Directory Does Not Allow Contents To Be Listed

Oct 27, 2010

I made a web form on a development website of mine (we'll call it dev.somewhere.com) and tried to publish it out to the web (we'll call it [URL]) in a subfolder. I named it default.aspx like I was supposed to and it worked flawlessly on the dev site. When I published it out the web, I wound up getting the following error when trying to get to the subfolder: [URL] Directory Listing Denied

This Virtual Directory does not allow contents to be listed. Confused and flustered, I tried to go to [URL], but I wound up with some error that won't tell me the problem. Instead it tells me to change the my web.config to read <customErrors mode="Off"/>.

View 1 Replies

Why Necessary To Create Virtual Directory In IIS When Website Content Is Placed In IIS Root Directory

Feb 13, 2010

As virutal directory points to physical path of the application, so if the IIS root directory is C:inetpubwwwroot and the application is stored at D:websites, than we need to create a virtual directory but if the application content is placed at C:inetpubwwwroot, then why still need to create virtual directory.

View 3 Replies

Security :: Impersonation With IIS And UNC Virtual Path Share

Oct 28, 2010

It took me 6 hours to figure this one out and I'm wondering if someone can give me an answer why it has to work this way. I have two PCs, one is a webserver win2k 2003 and the other is the file server running Windows XP. Both PCs are on the same company domain therefore they can see each user. The share folder has NETWORK, NETWORK SERVICE, USERS (which include IIS authenticated users), a LOCAL account, and a specific User (which is me) that is given access to read. In my web application, I call a server.mappath. In IIS6.0, anonymous is disabled so users use integrated Windows Authentication. I can see this by verifiying User.Identity.Name.ToString(); Next, I also check WindowsIdentity.GetCurrent().Name.ToString();. In my first run, I set impersonate to true and thats it. Both User.Identity and both Windows.Identity show: mydomainsmith_B as an example.

When trying to access the UNC virtual path whcih has "Always use the authenticated user's credentials when validating access to the network directory" checked. This means , IIS6.0 will pass mydomainsmith_B credentials to the file server. I get an access denied which is verified by a thrown exception. I go back and check the file server and under the security tabs, I did add myself which shows smith_B under the security and for kicks, I'm also under Share tab.

Next, I try to authenticate using a "LOCAL" account on the file server. The local account is called username/password: temp/temp. So I set web.config to impersonate=true, userName=temp password=temp. Okay, so I go back into IIS 6.0 and for the virtual directory, I go to "Connect As" and set Username and password to: temp/temp and un-check "always use the authenticated user's credential". Finally, i reload the page. This time the page shows me:

User.Identity.Name: mydomainsmith_B
WindowsIdentity.GetCurrent().Name: temp

perfect, so now I'm impersonating temp. I click a button to access the UNC path and boom, it all works. So why doesn't my local PC authenticate ME, as MYSELF, which is on the domain, which is on the same domain. Why do I have to impersonate a local account to the file server? Why can't I just impersonate myself? Also, If I disable impersonation, it becomes NT AUTHORITYNETWORK SERVICE. This service also can't access the UNC path even when I have enabled the same security and same share settings.

View 1 Replies

Forms Data Controls :: Gridview And Deleting / Editing Files In Virtual Directory?

Feb 26, 2010

COMPLETE NOOB, dont know anything.. I have a Virtual directory ~/ClubInfoFiles that i upload some files too using a uploader i made. I might want to change the uploader i made to be able to change to a subdirectory or something so i can upload all files into one folder but different subdirectorys. the uploader i would like to be able to have a dropdown menu of all the subdirectorys within "ClubInfoFiles" say i has subfolders : Minutes, Flight Plans, Maintence Records, etc... but i would also like a field to where i can create a new subdirectory and have it automaticly update the dropdown. i want to list those files in gridview and have a link to dowload/open and dellete the files. i have found some code that gets close but it uses Auto Generate columns. really i dont need all that jazz, just the Name, File extention, and hyperlink the file for download/view. i would like to be able to delete and possible upload using the gridview... is this to much for a noob?

[Code]....

[Code]....

[Code]....

View 3 Replies

State Management :: Storing Large Data In Session State?

Sep 18, 2010

We have a scenario where we need to store large tables of data on Session in asp.net page. on a highlevel we have to store following data

1> A table (table 1) with 1000 rows and 8 to 10 columns.

2> A table(table 2) with 500 rows and 8 to 10 columns (actually user can add the data from table 1 to table 2, so as user keeps on adding from table 1 we remove the data and put it in table 2)

3> Another table(table 3) with 1000-1200 rows each having 3 columns.

We are having a webfarm, so we need to store it in either SateServer of Oracle DB,What would be the performance implications of storing such huge data on the server.

One more thing is at any point of time max of 70 -80 people will be accessing our website, so will this cause any performance degradation?

View 7 Replies

C# - Get Name Of Virtual Directory?

Jan 30, 2010

I'm using Request.ApplicationPath to learn the name of the Virtual Directory in which I'm running. Is there a more reliable way?

View 2 Replies

C# - IIS 5.1 Not Resolving Virtual Directory?

Oct 13, 2010

I set up a Virtual Directory called 'Site'. I browse to [URL].In the source file, the relative paths are coded as '/Page1.aspx', for example, and it has worked in the past.I'm using Win XP Pro SP3 and IIS 5.1. Any ideas on what might be causing this behavior?

View 3 Replies

State Management :: Client And Server Side State Management?

Feb 25, 2011

when we go for client and server side state management in asp.net

View 2 Replies

Go About Reading And Writing To Virtual Directory In 7?

Feb 10, 2010

How do you go about reading and writing to a virtual directory in iis 7?

View 2 Replies

A Virtual Directory Not Being Configured As An Application In IIS

Jan 13, 2010

I've below error message:

***********************************

Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:PdfViewerPdfTestSiteWeb.Config 28

***********************************
When I double click the error it goes to Web.Config file to tag:

<authentication
mode="Windows"/>

The application name in IIS is PdfViewer

View 2 Replies

Virtual Directory In IIS To Physical Path

Mar 1, 2010

My basic question is, can a virtual directory in IIS point to a physical path that's not on the local machine? For instance, right now I have a virtual path /NaturalGasReport/NYMEX which points to physical path C:Program Files (x86)NymexSettleNATGAS_REPORTNYMEX, but I want it to point to a physical path on a difference PC on the same network. Is this possible? (I know I can just try it out so I apologize for asking but I thought it would be best to get an explanation along with "yes" or "no"). If you want more detail, this is what I need to do. To make a long story short, because of a vendor product we are using that won't run on a 64-bit operating system, I have to run a program called Generate_NGReportData.vbs (it's a vbscript program) on a PC I will call 28. It uses a vendor product which produces jpg files which are graphs of the Natural Gas market. The machine where I wish it could run is called RTEST01 but this machine runs a 64-bit OS and the components won't work there. RTEST01 has the databases. So, I created a datasource on 28 which points to RTEST01's database. The vbs program will read the data, generate the reports, and write one row to a database table on RTEST01. RTEST01 has to run the complimentary program which sends these reports (via email). 28 is not an email server so it can't email the reports. So on RTEST01 I will run Send_NaturalGasReport.vbs. This program creates an email body of html. The html references [URL]NaturalGasReport/NYMEX/" & Day(nymex_update_dt) & ".jpg which is a virtual directory pointing to C:Program Files (x86)NymexSettleNATGAS_REPORTNYMEX. I need it to point to the folder and files on 28.So if my initial question has a simple yes answer then I am all set. If not, examine my architecture and propose an alternative solution.

View 10 Replies

Configuration :: 3.5 Deployment Without Virtual Directory?

Nov 2, 2010

First of all, I am trying to deploy a web application, without virtual directory. Yes...I have no other option but to try this due to some non-tehnical constraints.

Now, I have developed an ASP.NET 3.5 Web application, which works fine on my local ASP.NET Development Web Server. Then, I published the application to the actual webserver using the VS2008 Publish... option. When I got some error messages related to web.config, I removed the corresponding items from the web.config.

When I can access the page but the code inside the page doesn't really work. When I open the Default.aspx, which is directly under the website, I keep on getting this error:

Compiler Error Message: CS0246: The type or namespace name 'DynamicLoadControl' could not be found (are you missing a using directive or an assembly reference?)

This DynamicLoadControl is a class that I have developed and is present in App_CodeDynamicLoadControl.cs file (in the same namespace).

I have searched a lot and tried everything except creating a virtual directory. First of all, is it possible to have asp.net 3.5 website without virtual directory.

View 3 Replies

Installation :: While Creating Virtual Directory In IIs?

Jan 12, 2010

While creating virtual directory in IIS i am gettin "Failed to Access IIS metabase" problem can anybody help me regarding this issue

View 2 Replies

Configuration :: Creating The Virtual Directory?

Jan 12, 2011

m new to .net framework 4 and iis 7.I created a webapplication in VS2010 with C#.I created the virtual directory for that web application in my IIS (IIS 7).when i tried to open the page by using virtual directory, it is displaying the following problem.Server Error in '/' Application.

Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.Source Error:

[Code]....

Source File: E: estweb.config Line: 12 Show Additional Configuration Errors:

View 3 Replies

How To Create A New Virtual Directory On The IIS Pointing To Say C

Apr 29, 2010

Assuming here that I have full control over the server.I'm looking for a sample code that would help me understand how to create a new virtual directory on the IIS pointing to say C:

View 4 Replies







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