a very weird problem (AGAIN!!!)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 15

Thread: a very weird problem (AGAIN!!!)

Hybrid View

  1. #1
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    a very weird problem (AGAIN!!!)

    Hi guys,
    First of all I want to apologize for posting this thread again, but I do really need help with this.
    I couldn't solve the problem yet and I don't understand why this could be happening, so PLEASE if anyone of you have an idea about why is this happening I would apreciate your help very much.
    The authentication I'm using in my website is WINDOWS.
    The error I'm getting is :

    Hi everybody,
    I'm having this problem again but in another application.
    The application was build with ASP.NET and VB.NET, the problem is, when I press the LogOut button, I'm getting an error in the Bottom left corner of Interner Explorer and the error is :

    Line: 80
    Char: 13
    Error: Invalid Pointer
    Code: 0
    URL: "the url of my website"

    The code under the LogOut button is:

    Response.Write("<script>window.close();</script>");

    The most weird problem is that this error occurs on some IE but on others it work correctly !!!
    I've checked the version of my colleague's IE, and the version and the service packs that are installed and are the same !
    The version is: 6.0.2900.2180.xpsp_sp2_grd.050301-1519CO
    Cipher Strenght: 128-bit
    Product ID: xxxxxxxx
    Update Versions:; SP2;

    I really don't understand what's going on !
    Is it possible it's a problem on the IIS coniguration ?

    Thank you all !
    Last edited by Michael; 01-26-2006 at 03:20 PM.

  2. #2
    Join Date
    Feb 2004
    Posts
    126
    Michael do you have SmartNavigation turned on?Is so turn it off and try
    That could be the problem
    If thats the case let me know if no post some code
    Patrick

  3. #3
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    a very weird problem (AGAIN!!!)

    Hello Patrick,
    I turned off the SmartNavigation parameter as you suggested, but it's still not working.
    I'm getting the same error message.

    the code I have in my LogOff button is:

    Response.Write("<script>window.close();</script>");

    The weird thing is that I have other web projects on the same web server where this application is hosted and I'm not having problems with them at all, that's why I thought it could be a problem with the website or it's configuration.
    I'm wondering if it could be a problem with:

    WebUIValidation

    folder or how it's configured (I mean permissions, etc)?

    Thank you again

  4. #4
    Join Date
    Feb 2004
    Posts
    126
    Seems some js is clashing
    Michael may be try re-installing the aspnet_Client folder..

    Go to the path below and run the last command
    %windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -c
    This will install the aspnet_client folder to the default virtual directory website.

    Hope that helps
    Patrick

  5. #5
    Join Date
    Feb 2004
    Posts
    126
    What i'm thinking of again is may be embed
    your javascript in the registerStartupScript.
    Do that and lets see how it goes.
    PAtrick

  6. #6
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    a very weird problem (AGAIN!!!)

    Hello Patrick,
    I told the web server admin to test the things you suggested to do.
    As soon as I have an answer from him I'll let you know.
    Thank you for helping

  7. #7
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    try
    self.close in your javascript if you are using iframes in your logput web page by any chance
    or
    use window.iframename.close
    Sri

  8. #8
    Join Date
    Feb 2004
    Posts
    126
    Michael have you solved your problem
    Let me know
    Patrick

  9. #9
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    a very weird problem (AGAIN!!!)

    Hi Patrick, Hi Sri,
    I tried EVERYTHING and nothing seem to work.
    I changed the old script Response.Write("<script>window.close();</script>");
    with this one Response.Write("<script>self.close();</script>"); but i'm getting the same error message "error on page", etc etc etc
    It seem the java script is not being recognized, that's why I'm thinking it's a configuration problem and not code problem.
    On my development machine it works correctly, but on production server it crashes.
    The problem is I don't have access to the web server an I don't how how can i guide the web masters to find and fix the problem.

    I really don't know what else can I do to try fixing the problem

    thank you guys

  10. #10
    Join Date
    Feb 2004
    Posts
    126
    I think you have to re register the aspnet_client
    Run that command aspnet_ regiis -c
    I think if you run it on the PC where you have the issue it would only affect that PC..
    Or try findoing out how you can direct it to that particular folder there must be a way around it.
    Let me know
    Patrick

  11. #11
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    a very weird problem (AGAIN!!!)

    I'll try it.

    Thank you Patrick.

  12. #12
    Join Date
    Feb 2006
    Posts
    21
    On click of logout button, if you just want to close the window then why not do like this

    in the pageload add the following code
    cmdlogout.attributes.add("onclick","window.close();")
    This should solve the problem instad of using response.write

    Hope the above solution helps
    vcs

  13. #13
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250
    Hi guys,
    Just wanna let you know I've solved the problem using this command:

    Me.RegisterStartupScript("PopupScript", "<script>self.close();</script>")

    I wanna thank you all of you for helping me.

  14. #14
    Join Date
    Feb 2004
    Posts
    126
    Michael but i adviced you to do that before
    Well good you got that working
    PAtrick

Similar Threads

  1. Replies: 0
    Last Post: 12-13-2001, 12:06 PM
  2. a problem with font and language
    By Roseta in forum VB Classic
    Replies: 0
    Last Post: 11-14-2001, 03:24 AM
  3. Please help w/ JavaScript & Netscape Problem
    By Dan Kurszewski in forum Web
    Replies: 0
    Last Post: 12-14-2000, 05:50 PM
  4. Replies: 0
    Last Post: 06-23-2000, 02:17 PM
  5. Problem with CryptoAPI and JCE
    By Jason Bock in forum VB Classic
    Replies: 0
    Last Post: 03-21-2000, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center