|
My Application State is throwing a null reference exception, when it shouldn't be. Any ideas??
|
|
|
|
|
Are you using IIS in production? If so, did you migrate the entire project? Did you add an application name to the VD?
|
|
|
|
|
Yes, and I'll add that the site worked before I added multi threading.
|
|
|
|
|
What is the exact error message.
|
|
|
|
|
I don't have it with me, but it's throwing a nullreferenceexception whenever it tries to access a value in the Application Session.
|
|
|
|
|
Does it help to know that the server is running on Virtual PC?
|
|
|
|
|
Hi all
i am trying to use session that i set in a webservice
and read it from an aspx web page
both are on the same site.
i'm using the asp from webservice by
string reportHtml = "";
Session["name"] = "guy";
WebRequest webRequest = WebRequest.Create("http://localhost:2367/Business.Reports/Reports/Report.aspx");
WebResponse webResponse = webRequest.GetResponse();
StreamReader sReader = new StreamReader(webResponse.GetResponseStream(), Encoding.GetEncoding("windows-1255"));
reportHtml = sReader.ReadToEnd();
and in the aspx i'm trying to get the session
name=Session["name"];
please help me since i'm trying to manage it all day
thanks
|
|
|
|
|
New homework assignment? It's been posted here multiple times, you're late.
|
|
|
|
|
well...
can't you just give the answer or post me to it ?
or any other better answer?
guy
|
|
|
|
|
I understand how hard it must be to actually look through past posts. It's so time consuming, especially with a homework deadline.
|
|
|
|
|
try to search the keys "sessions and webservice"
there is no comments for this issue even without the aspx
i'v searched allday some documentation and nothing realy helpfull...
if you dont have the knowledge, well... why to answer...
have a nice day...
|
|
|
|
|
Hi folks,
I have to generate a PDF on a webpage which takes long time to load...
I am using a progress bar web custom control on this page to indicate progress...
But I get the error message "Server cannot set content type after HTTP headers have been sent"....
Without the progress bar the page just loads up fine...
Any ideas to get this resolved...
Thanks
Joel
JO
|
|
|
|
|
Are you trying to access the file using exact paths, or relative path?
|
|
|
|
|
i have tried using both ways:but there was the same result.
|
|
|
|
|
Scenario:
One application domain with one IIS, one Active Directory, one MS Exchange Server
One portal startpage which uses certificate authentication via smartcards, mapping the certificate to a user account in the domains Active Directory.
The user puts his smart-card in his reader and accesses the portal-startpage over the internet. After successfull authentication the portalpage is shown in his browser. This page contains for instance a link called "mail" which will take the user to a page where outlook web access has been capsulated into a webcontrol and presented on the mail-page.
Question: Will he automaticly be logged in and shown his personal inbox (SSO)?
According to my own research on the web the way I understand it is that when he gets logged on to the portal a session-key containing all his credentials from the information in Active Directory will be created by IIS. This key will live throughout the whole session and automaticly be used in further functionality-requests by the user. In other words, once hes logged in to the portal SSO will work.
Is this correct? If not, how can this type of functionality be reached?
thanks for your time
/Rickard
|
|
|
|
|
Is there an object that an User WebControl (DLL Type) to get to the session variables or response? I noticed an article that had to use more than 5 different classes to make this happen and I would really like a more simplified approach.
Thanks,
Leo T. Smith
|
|
|
|
|
Try HttpContext.Current.Request and HttpContext.Current.Response . Oh, and HttpContext.Current.Session . Just play around with HttpContext.Current . Lots of good stuff there.
|
|
|
|
|
Hi frndz,
Can anybody explain me why we use Acme prefix while creating user control and explain me in detail about creating and working with user controls??
Regards
Vijay.
|
|
|
|
|
Create a new web project. Then click on the project, and right click. Choose "Add User Control". Very easy.
|
|
|
|
|
Thanks, this looks like what I needed. At least the code compiles, now comes the testing.
Leo T. Smith
|
|
|
|
|
I have a serious issue that seems to be intermittent with
User.Identity.Name.
In an environment where about 100+ users are logging on to a site with
windows authentication, calling HttpContext.Current.User.Identity.Name
returns the correctly logged on user.
However, 10% of the time (I'm guessing under stress conditions or
simulataneous requests), the wrong user info is being returned.
The logic of this app:
1) Windows authentication is used in application.
2) Info of windows logged in user is picked by HttpContext.Current.User.Identity.Name
3) If info is matched is matched with the SQL DB, user is authenticated.
4) On all the pages the user visits, his/her info is shown via a call
to HttpContext.Current.User.Identity.Name
This works almost all the time. Any ideas why it might be failing from
time to time? i.e. at certain times HttpContext.Current.User.Identity.Name returns the incorrect user name.
Best Regards
Gaurav Gigras
|
|
|
|
|
Hi all,
how can we migrate ASP application in to ASP.NET/VB.NET Application?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
It's basically a rewrite.
|
|
|
|
|
u mean we have to write the code start from the begining? it means no compatability b/w ASP and ASP.NET? i tought that we have migrating tools available for this, using the migration tools we have to migrate the project with minimal coding.
thanks for the response,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Think of it as a perfect opportunity to write it correctly, or enhance certain regions, etc.
|
|
|
|