Page 1 of 2 12 LastLast
Results 1 to 40 of 45

Thread: Confused about which webserver to use(closed gave up)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Confused about which webserver to use(closed gave up)

    Still really new at this and quite confused. I want to build a web app that the person fills out a form and it saves in my sql database. When I am using VS, I have my local webserver and the live webserver. DO I build this app using my local or the live webserver? Can I test it from my local machine on the live webserver or do I need to move the app there first? It seems if I try to use the live webserver and SQL I always get the "Login failed for user 'null" and the only time I have had any success is using the local IIS. I am unsure of what I should be using to build and how to change it to the live server. Lots of help would be appreciated, lol.
    Last edited by Beast777; Mar 8th, 2006 at 11:23 AM. Reason: Closed

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I can get a windows app built and running in seconds with an sql connection so the only difference is the web server part and the security. I dont know if theres a guide or a walkthru to get a first app up that includes the security or not but if someone knows one, please let me know. I have alot of books on web apps but they all just code the app and then say hit run and expect them to run. None talk about what security needs to be set up.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    Here is one I am starting on - http://www.asp101.com/

    Its also another Internet.com site.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I have been googling and there seems to be some speculation that windows 2003 causes some extra problems with the security. RIght now I have the impersonate = true in my webconfig, aspnet/IIS_WPG/IUSR_WEBSERVER all have owner access and still have the error.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    All the lessson at www.asp101.com are covered in the book I have MCAD/MCSD Developing and Implementing Web Applications with VB and VS .NET. They basically cover building the app, the controls and such but they all just want you to run the app without changing anything on your SQL or webserver which is what is missing. RIght now I just doing a simple dataform wizard to Northwind database and I still am stuck at the login failed. Surely someone, somewhere has written an asp app and gone through this same hell.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I just found that on the SQL/WEBSERVER (windows 2003) that in the windows components under applications that the asp.net was not installed. SO I installed it and now have a new error. SQL server does not exist or access denied.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Damn, it was cause the sql server engine was stopped, back to the login failed.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Why would I get the "Login failed for user 'null" and yet when I go the dataadapter and configure and do a preview data, it works for that.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    Not sure as I am just getting into the same thing today. Still have to configure the sql server on the host site so almost there.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Great, please let me know what happens. I can't see us being the first two people in this forum to setup a web application on a live server. The data adapter can preview yet when I run the program in debug and step through, its the connection open that fails.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Heres a great article that i used http://www.asp.net/faq/AspNetAndIIS6...ndex=0&tabid=1

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    Thanks for the link. I am running Server 2003 and ASP.NET 1.1
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Yes I am running server 2003 and asp net 1.1.4322.0. You can find the version by using the aspnet_regiis -lv command at the command prompt. You may have to go the directory usually c:\winnt\microsoft .net\framework\whateverversion.

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    I think this is why I am not able to remotely develop web apps from my system to my server, its probably not configured correctly.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Ok heres exactly what i am doing, its quick so if someone can help that would be great.

    1. New project, in the add new item select Data form Wiz. CLick next on welcome.
    2. Create a new dataset named dsCustomers and click next.
    3. Build a connection to the sql server on a different box. I am not using local SQL.
    4. Choose the northwind database.
    5. Click ok to create the connection and on the choose table, choose Customers.
    6. Go to the Finish.
    7. CHoose this page as start up and run the project.

    For me, this is the part where i watch it fail.

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    ANy luck RobDog888? ANyone else can try it too please, the more help the merrier. I just cant get my head around my a windows app will work fine. Take the same easy thing of just a dataform wiz in asp.net and suddenly all these problems. The adapter can preview so there should not be any problems yet there are. Desperately seeking help.

  17. #17
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Are you specifying a user/password in your connection string?
    What security setting is your SQL set for? (intergrated or windows or both)
    TPM

    Add yourself to the VBForums Frappr Map!!

  18. #18
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    I thought if you just add the user to the web.config file its considered as integrated login?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  19. #19
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Quote Originally Posted by RobDog888
    I thought if you just add the user to the web.config file its considered as integrated login?
    I believe the answer to that is it'll use the aspnet user account, which if your useing intergarted won't make a difference. If you using windows then you'll need to set access for the aspnet user.
    TPM

    Add yourself to the VBForums Frappr Map!!

  20. #20
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Confused about which webserver to use

    Integrated login is th Windows authentication and that makes sense about the ASPNET_USER user account.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  21. #21
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    You know what I mean
    TPM

    Add yourself to the VBForums Frappr Map!!

  22. #22

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    -TPM- Thank you for the response. The SQL server is set for Windows ONly. I do have the ASPNET account setup with full access to the database. My connection string that was generated by the dataform wiz is:

    Me.OledbConnection1.ConnectionString = "Integrated security=SSPI;packet size=4096;data source=""WEBSERVER"";Tag with column collation when possible=False;initial catalog=Northwind;Use Procedure for Prepare=1;Auto Translate=True;Persist Security Info=False;Provider=""SQLOEDB.1"";workstation id=""IMOWORK;Use Encryption for Data=False"

    My app that I actually trying myself, the connection string is:

    Dim strConnString As String = "workstation id=""IMOWORK"";packet size=4096; integrated security=SSPI;data source=""WEBSERVER"";persist security info=False;initial catalog=Webtest"

  23. #23

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    The only change I have made to my webconfig was to add the identity impersonate=true. In the end, all I want is anyone on the net to be able to fill out a form and save it to my sql.

  24. #24
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Aaah ok, so I checked up on identity impersonate=true, turns out it replaces the default aspnet user with the clients credentials (probably anonymous), I think you should either take it out, or use something like this: <identity impersonate="true" userName="joeblow" password="123456" />
    TPM

    Add yourself to the VBForums Frappr Map!!

  25. #25

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Since I have the aspnet account should I be using it there? If so, I guess I go set the account password first, because how will I know what it is?

  26. #26
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    If you want to use the aspnet user just take out the impersonate=true.
    TPM

    Add yourself to the VBForums Frappr Map!!

  27. #27

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I removed the impersonate and changed the sql server authentication to Windows and SQL and still same login failed problem. ANy ideas?

  28. #28
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Hmm I'm pretty sure the aspnet user is set as a local user, when added aspnet to you SQL did you use the aspnet user from the web server?
    TPM

    Add yourself to the VBForums Frappr Map!!

  29. #29

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    My SQL is on the same server(WEBSERVER) as the IIS. So I use the account WEBSERVER/ASPNET and I put it in the northwind database and put in the owner group so it should have full access.

  30. #30
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Ok, what if you try SQL authentication? Does that work? (I.E use sa in the connection string)
    TPM

    Add yourself to the VBForums Frappr Map!!

  31. #31

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I am sorry I am very new to the web side. Can you give me a quick example, say my password was test?

  32. #32

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    I tried this:

    Me.OledbConnection1.ConnectionString = "Integrated security=SSPI;packet size=4096;data source=""WEBSERVER"";Tag with column collation when possible=False;initial catalog=Northwind;Use Procedure for Prepare=1;Auto Translate=True;Persist Security Info=False;Provider=""SQLOEDB.1"";workstation id=""IMOWORK;User ID=sa;pwd=test;Use Encryption for Data=False"

    and recieved the same error - Login failed for user 'null', Not associated with a trusted SQl server connection.

  33. #33
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Oh it's a trusted connection. in that case try this:
    Me.OledbConnection1.ConnectionString = "Server=WEBSERVER;Database=Northwind;Trusted_Connection=True"

    Odd it says user "null", did you delete 'identity impersonate=true' or set it to false?
    Last edited by -TPM-; Mar 7th, 2006 at 02:49 PM.
    TPM

    Add yourself to the VBForums Frappr Map!!

  34. #34
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    Re: Confused about which webserver to use

    Just on a note, if you are doing impersonation, you should persist the security info.

    Persist Security Info=True;
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  35. #35

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Just a couple of quick questions since I am spinning here. IS it Server=WEBSERVER or data source=WEBSERVER? Also Database=Northwind or initial catalog=Northwind? WHen I am doing this Trusted Connection, am I still impersonating?

  36. #36

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Ok, got some different errors about ole, so here is the string I have now and I have the error - Login Failed for ASPNET

    Me.OledbConnection1.ConnectionString =data source=WEBSERVER;initial catalog=Northwind;Provider=""SQLOEDB.1"";Trusted_Connection=True;Persist Security Info=False"

  37. #37
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Quote Originally Posted by Beast777
    Just a couple of quick questions since I am spinning here. IS it Server=WEBSERVER or data source=WEBSERVER? Also Database=Northwind or initial catalog=Northwind? WHen I am doing this Trusted Connection, am I still impersonating?
    I think either way is fine.
    TPM

    Add yourself to the VBForums Frappr Map!!

  38. #38
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    Quote Originally Posted by Beast777
    Ok, got some different errors about ole, so here is the string I have now and I have the error - Login Failed for ASPNET

    Me.OledbConnection1.ConnectionString =data source=WEBSERVER;initial catalog=Northwind;Provider=""SQLOEDB.1"";Trusted_Connection=True;Persist Security Info=False"
    Is that exactly how you have it?
    TPM

    Add yourself to the VBForums Frappr Map!!

  39. #39

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    683

    Re: Confused about which webserver to use

    Well here I am at a new error, any suggestions?

  40. #40
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Confused about which webserver to use

    If thats exactly as you have it the reason it's not working is because of the "s you have. You'd want to do this; Me.OledbConnection1.ConnectionString =data source=WEBSERVER;initial catalog=Northwind;Provider='SQLOEDB.1';Trusted_Connection=True;Persist Security Info=False"
    TPM

    Add yourself to the VBForums Frappr Map!!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width