Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts

    Question about Solution Explorer

    Hello

    In my Solution Explorer (Visual Studio 2013), I have two Web config files, two Register.aspx.vb files, and two Register.aspx files (please see screenshot).

    Does that sound right?

    Thanks!

    Blue
    Attached Thumbnails Attached Thumbnails Question about Solution Explorer-solutionexplorer.jpg  

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,806
    Thanks
    41
    Thanked 199 Times in 198 Posts
    Yes and no at the same time. My guess is that these got created using maybe the asp.net login tool? That is ok then. The one set is under Account folder so my guess is that it is for account related things. I seem to remember them having a different name signature though although I could be wrong (been a while since I was playing with that). Does it build? Does it look ok?

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #3
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts
    Yes, the top set of folders are those which contain a 'new user' registration form and the bottom set of folders - although they have the same folder names - are Visual Studios default folders. It just seems strange that both sets of folders with the same names appear under the same 'Solution Explorer'.

    Yes, thanks. My own folders look OK and the registration form stores form field data into my MS Access database via Visual Studio's built-in IIS Express server. The problem I am having is that the registration form does not store form field data into my MS Access database once I upload it to my own server. I have full server permissions according to my Web hosting service, so there must be some problem with the code even though it works locally.

    Thanks again for your message.

    Blue1

  • #4
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,806
    Thanks
    41
    Thanked 199 Times in 198 Posts
    So it's working local, but not when pushed- are your connection strings correct?

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #5
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts
    I think so. In Web config I have:

    Code:
    <?xml version="1.0"?>
    <configuration>
       <system.web>
          <customErrors mode="Off"/>
        </system.web>
    
    <connectionStrings>
    	
    <add name="students" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|students.mdb;" providerName="System.Data.OleDb" />
    
    </connectionStrings>  
        </configuration>
    I have been informed that I should not have the MS Access database for an aspx project in my normal DB folder on my server. Instead, I should reference the database (students.mdb) that is in the App_Data folder of my ASPX project and, apparently,
    Code:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|students.mdb;"
    is the way it is done.

  • #6
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,806
    Thanks
    41
    Thanked 199 Times in 198 Posts
    Not too sure as I always work with TSQL (and some Oracle). If you're not getting any errors or anything, and it works ok locally, and the issue is it seems like nothing is getting saved in database, it sounds to me then that path is pointing to wrong place (for example if the database didn't exist, you'd get a login error or something). With no errors at all, it tells me that the data IS getting stored- somewhere (or the errors are being blown over). But this is speculation without having the project and looking at it and what-not.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #7
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts
    It's odd, I know. The server would throw an error if it were a permissions issue, but my Web hosting service which seems to go beyond the call of duty has checked and double-checked my permissions.

    I'll have to go through my vb.net code line by line!

    Thanks again.


  •  

    Posting Permissions

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