C# webapplication is working only in local m/n not in web

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haiminnu
    New Member
    • Nov 2008
    • 15

    C# webapplication is working only in local m/n not in web

    I am creating one webapplication in VS 2008 c#.It works proper in local.
    means,if i use the link like
    http://Localhost/virtualdirector yname/default.aspx
    it is working properly.But if i use my port address instead of tht localhost like
    http://port address//virtualdirector yname/default.aspx
    it is not working...
    please give a good solution as soon as possible...
    thanks.......
  • boyank
    New Member
    • Nov 2008
    • 5

    #2
    Don't you mean http://address:port? Do you have IIS installed or are you using the built-in VS web server? If you have IIS, is it configured to use host headers?

    Comment

    • haiminnu
      New Member
      • Nov 2008
      • 15

      #3
      i have installed IIS .How i can configure it to use host headers?

      Comment

      • boyank
        New Member
        • Nov 2008
        • 5

        #4
        You don't have to install IIS or configure host headers. My question was there because having or not having IIS affects how you can access the web site. The same applies to host headers.

        If you didn't have IIS and only were using the built-in visual studio web server, that would explain why you can't access the web app in any other way.

        What are you trying to do and how are you trying to do it?

        Comment

        • haiminnu
          New Member
          • Nov 2008
          • 15

          #5
          i am trying to run my project in web.

          i have installed iis....and created virtual directory......
          as i mentioned above i just tried to run it by two ways
          1] http://localhost//virtualdirector yname/default.aspx
          2] http://192.168.45.45//virtualdirector yname/default.aspx

          1st link is working properly.....bu t insted of "localhost" i just used "ipaddress"
          in the second case.

          actually both r same .....but second link is not working.....

          is any properties i hav to set in IIS or in my project...?????
          thanks....

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            This is just a guess but ....
            What happens if you add an entry in your hosts file which maps localhost onto that ip?

            Comment

            • balabaster
              Recognized Expert Contributor
              • Mar 2007
              • 798

              #7
              When you ping localhost, what IP address is resolved?

              Comment

              • haiminnu
                New Member
                • Nov 2008
                • 15

                #8
                Thanks,,now that is working with only one problem.can u please help me to solve this problem.The error is

                "ActiveX control not loaded.Set your browser Internet options to allow ActiveX download!"

                I am using ocx.but when i run project this error occures.
                thanks....

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #9
                  Originally posted by haiminnu
                  Thanks,,now that is working with only one problem.can u please help me to solve this problem.The error is

                  "ActiveX control not loaded.Set your browser Internet options to allow ActiveX download!"

                  I am using ocx.but when i run project this error occures.
                  thanks....
                  Well then does it work if you set your browser to allow ActiveX download as suggested?

                  Comment

                  • haiminnu
                    New Member
                    • Nov 2008
                    • 15

                    #10
                    thanks....How i can set browser to allow ActiveX .What setting IIS need to run ocx.????Can you please help me to complete this.

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #11
                      See that message again "Set your browser Internet options to allow ActiveX download!". By browser there they mean things like Intenet Explorer, Firefox, e.t.c.
                      IIS is innocent in all this.

                      Comment

                      • haiminnu
                        New Member
                        • Nov 2008
                        • 15

                        #12
                        I went through
                        Internet Explorer 6.0 (Browser)-->Tools --> Internet Options
                        But i didnt get an option to allow activex download
                        Please help me.....

                        Comment

                        • developing
                          New Member
                          • Mar 2007
                          • 110

                          #13
                          its an unsigned activex, isnt it?

                          go to internet options > security > custom level

                          now set all the ActiveX options as you please

                          Comment

                          • haiminnu
                            New Member
                            • Nov 2008
                            • 15

                            #14
                            I have changed all the settings on
                            IE(browser) -->Tools -->InternetOption s -->
                            Security has been set to enable for active x.But still ocx is not loading.
                            I have seen one more thing regarding that ocx on Internetoptions-->programs-->Add-ons.
                            Name: CashAcceptorOCX
                            Publisher: (Not verified)AB software pvt ltd. (company name)
                            Status: Enabled.


                            ocx is signed. why it shows as "Not verified" .What is its meaning "Not verified"?.
                            Is that problem from here?.

                            Comment

                            Working...