
randy_belcher
Avatar/Signature-
Posts
37 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by randy_belcher
-
got it. the answer is strhostIPAddess = currentContext.Request.Url.Host thanks for the help guys. you pointed me to the direction I needed to go.
-
even on the server i just get the IP address using the above code. any other suggestions
-
that doesn't work in the global.asa in the application_start event. I am going to check the code above on the server instead of my local machine and see if it works.
-
This just returned the IP (127.0.0.1). I am looking for the url http://xxx/yyy/site.com or just the host header which is the xxx part. I tried userhostname and it returned (127.0.0.1) too. Thanks for the help.
-
Is it possible to capture the host header in the global.asax application_start event? I would like to set some application variables based on the host header. Like using a test database connection string if the host header is localhost or use live data if the host header is production. Thanks.
-
Thank you very much. I do believe that was the problem. She is up and running. Can you believe an underscore can cause that many problems? Thats crazy if you ask me.
-
The browser I test with is the same. I test the client side from my machine. The only thing that is changing is the server. The session info is the same on both machines. <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
-
i have done a little more testing. in the application_start i created - application("Test") = 0 in session_start i have - application("Test") += 1 in session_end i have - application("Test") += 1 when i run the app using my machine as the local server i get on page two label1 = 1 (session("Test")) and label2 = 1 (application("Test")) This above is correct; however on the company server on page two i get label1 = nothing (session("Test")) and label2 = 3 (application("Test")) Can anyone tell me why this happening. session_start i assume is firing twice and session_end is firing once.
-
I assume so, since the app works on my local machine. I have tried both InProc and StateServer (turned the ASP service on for this as well) for the mode. I just created a simple test app. 2 pages. One sets the session variable - Session("Test") = "1" and the other justs displays it with a label - label.text = Session("Test"). This does not work either, so it has to be something with the server. What else is there that I can check. Thanks for the help.
-
enable session state is checked in the IIS, so that is not it. What exactly is a web farm?
-
Hello everyone. I have created an asp.net application. The application works great on my local machine; however, when I run the app on a different server, the session variables are not being maintained. I have tried session state mode = InProc and StateServer. Is there a setting on the server that I am missing? Thanks for the help.
-
The fix I listed above worked, so I am in good shape. The thing that caused me the most pain was trying to overwrite the msvcrt.dll. Only the network admins login would allow the overwrite. I created another admin user, but the new user could not access the file. At least it's fixed and I am happy. Thanks.
-
The version was not correct after checking the dll cache. the version in the cache was 6.1.9844.0 but the version in the system32 directory was 6.0893 something or another. Anyway, the network admin copied the file from the dll cache to the system32 directory, eventhough it said the copy worked fine, the versions were still different and my applications still didn't work. However, after we rebooted the machine, the dll changed to the proper version and it seems like everything is working ok. i still have some more testing to do, but so far so good. i appreciate all the help.
-
well, there are more underlying problems. the network admin was able to rename the dll using his login. Windows automatically recovered the dll and the size and version look ok. I am still getting the same error though, so another dll must be corrupt. I am still searching and hoping I will find the answer. i appreciate the help and any other ideas.
-
the version numbers do differ, but i am running windows 2000 and the server is running Windows 2000 Advanced Server. I still believe it is the dll and I am trying to find out what the newest version is and where I can get it.
-
I am running windows 2000 on my laptop and the program works fine. All the service packs should be installed on the server, but I will ask the network admin. I still believe the dll is corrupt, because several applications run on this machine and none of them are working now.
-
The error message when I try to run the app is the procedure entry point ??_U@YAPAXI@Z could not be located in the dynamic link library MSVCRT.dll. More things are crashing than just my app, so something vital has been messed up. I don't think .NET really has anything to do with it. I have a program that interacts with a Symposium database (Sybase I think). Everytime I tried to install symposium to get the drivers I needed to connect to the database, the install would crash. Either way, I have a big problem that needs fixing. Thanks for the help.
-
I have a big problem and need some fast help. After deploying a .NET application on a server, one of the core windows 2000 server dlls is messed up (msvcrt.dll). I noticed the size is about 20K less than the one on my machine. I have tried to copy over the dll but keep getting the message that the file is in use and cannot be overwritten or renamed. I have tried running a batch program that will copy over the file during boot up - I didn't get any messages but the file size didn't change and the dll was not fixed. I have tried booting up in safe mode and in DOS mode. Still no luck. Does anyone have any suggestions? Maybe a service pack I could use or something. Thank you.
-
well, i don't know exactly what the best solution was, but i do have my project up and running. the main problem i had was dealing with the cache. the main reason i was having a problem was because i put a duration on my cache and i didn't remove it before updating it. another thing that helped was putting an index on the sql statement. the speed increased from 2 minutes to 5 seconds. i created an asynchronous web method, but I can't tell how much it helped out. i also created a thread on the client side web page, but it didn't seem to help the page load any faster. anyway, i appreciate the help. thanks for the input and advise.
-
works like a charm! :) it took a little bit of code the way my project is setup, but all in all it works great. maybe someone else can use this code in their asp.net page. Thanks again for the help. strRedirect = "parent.location.href='LoginAgentStats.aspx'" ' Form the script to be registered at client side for the Javascript "onClick" event. Dim scriptString As String = "<script language=JavaScript> function Button1_onClick() {" scriptString += strRedirect & ";}" scriptString += "</script>" If (Not Me.IsClientScriptBlockRegistered("Startup")) Then Me.RegisterClientScriptBlock("Startup", scriptString) End If ' Call the Button1_onClick function Dim scriptString2 As String = "<script language=JavaScript> " scriptString2 += "Button1_onClick();" scriptString2 += "</script>" If (Not Me.IsStartupScriptRegistered("CallNow")) Then Me.RegisterStartupScript("CallNow", scriptString2) End If
-
how can i redirect the main page url from a asp.net page that is contained within an iframe? if i use response.direct("newpage"), it just changes the page in the iframe. Thanks. Randy
-
Thanks for the response Derek. Does the article also pertain to web services? Surely you don't need to keep a web service alive.
-
thanks for the input guys, i will let you know how it goes. i am also going to try to create a web service that only has a sub and not a function. i am hoping the client will not wait on a sub to run since it doesn't return anything. i will let u know how the test goes. thanks again.
-
thanks, i appreciate it. i actually tried to some threading in the web service, but it didn't work. but maybe i can get it to work on the client side. for this piece of it, i really don't need a result set, because the information will be cached. basically i have an intense query that takes 20 or 30 seconds to run and I don't want the user to wait on the information. the user's page is refreshed every 30 seconds, it can load based on the cached information. after the memory is updated, the page will be upto date after it is refreshed again.
-
can i make the page finish loading without waiting on the web service function to complete?