Jump to content
Xtreme .Net Talk

randy_belcher

Avatar/Signature
  • Posts

    37
  • Joined

  • Last visited

randy_belcher's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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.
  2. even on the server i just get the IP address using the above code. any other suggestions
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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" />
  8. 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.
  9. 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.
  10. enable session state is checked in the IIS, so that is not it. What exactly is a web farm?
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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.
×
×
  • Create New...