Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ACCESS DB in a ASPX page

ACCESS DB in a ASPX page

Scheduled Pinned Locked Moved ASP.NET
databasecsharpgraphicshelpquestion
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    evlxtc
    wrote on last edited by
    #1

    I have been using ASP pages mostly for my websites, but needed now to do some C# code to implement some GDI stuff.. This all works fine, but NOW I need to acces my ACCESS DB jsut to retrieve values. This I cannot do. To add a ACCESS DB connection etc (editing inserting etc) is easy in plain ASP and I am SURE it is just as easy in ASPX??? BUT I jsut cannot get it working in Dreamweaver MX. I keep on getting errors. A BLANK ASPX page. (RUNS) then I do a simply database connection to my ACCESS DB (Which only has one table) and immediatly I get errors and nothing works. PLEASE CAN SOMEONE HELP? this is me

    E M X 3 Replies Last reply
    0
    • E evlxtc

      I have been using ASP pages mostly for my websites, but needed now to do some C# code to implement some GDI stuff.. This all works fine, but NOW I need to acces my ACCESS DB jsut to retrieve values. This I cannot do. To add a ACCESS DB connection etc (editing inserting etc) is easy in plain ASP and I am SURE it is just as easy in ASPX??? BUT I jsut cannot get it working in Dreamweaver MX. I keep on getting errors. A BLANK ASPX page. (RUNS) then I do a simply database connection to my ACCESS DB (Which only has one table) and immediatly I get errors and nothing works. PLEASE CAN SOMEONE HELP? this is me

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      evlxtc wrote:

      and I am SURE it is just as easy in ASPX???

      Yeah, it's easy...

      evlxtc wrote:

      I keep on getting errors

      What error you are facing? << >>

      1 Reply Last reply
      0
      • E evlxtc

        I have been using ASP pages mostly for my websites, but needed now to do some C# code to implement some GDI stuff.. This all works fine, but NOW I need to acces my ACCESS DB jsut to retrieve values. This I cannot do. To add a ACCESS DB connection etc (editing inserting etc) is easy in plain ASP and I am SURE it is just as easy in ASPX??? BUT I jsut cannot get it working in Dreamweaver MX. I keep on getting errors. A BLANK ASPX page. (RUNS) then I do a simply database connection to my ACCESS DB (Which only has one table) and immediatly I get errors and nothing works. PLEASE CAN SOMEONE HELP? this is me

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Hi there, You neither posted a snippet of your sample code, nor said what is the error you got, so I guess it's hard for the people to diagnose your problem. However, you may find lots of examples[^] out there to do what you might want.

        E 1 Reply Last reply
        0
        • M minhpc_bk

          Hi there, You neither posted a snippet of your sample code, nor said what is the error you got, so I guess it's hard for the people to diagnose your problem. However, you may find lots of examples[^] out there to do what you might want.

          E Offline
          E Offline
          evlxtc
          wrote on last edited by
          #4

          The error I am getting msg: Server Error in '/GKD' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found. Source Error: Line 1: <%@ Page Language="C#" %> Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %> Line 3:

          M 1 Reply Last reply
          0
          • E evlxtc

            The error I am getting msg: Server Error in '/GKD' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found. Source Error: Line 1: <%@ Page Language="C#" %> Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %> Line 3:

            M Offline
            M Offline
            minhpc_bk
            wrote on last edited by
            #5

            + You need to make sure that the assembly DreamweaverCtrls.DLL needs to put in the bin folder of the application. + If you make this assembly as a strong-named assembly and deploy it to the GAC, you need to configure in the web.config file to load the assembly using the assemblies[^] element.

            E 1 Reply Last reply
            0
            • M minhpc_bk

              + You need to make sure that the assembly DreamweaverCtrls.DLL needs to put in the bin folder of the application. + If you make this assembly as a strong-named assembly and deploy it to the GAC, you need to configure in the web.config file to load the assembly using the assemblies[^] element.

              E Offline
              E Offline
              evlxtc
              wrote on last edited by
              #6

              Thanks for the quick responce. It sounds so simple if you say it, but unfortunitly I have not a clue what you mean. :) GAC?? What is that and what do I do with the assemblies[^] part? Where and WHAT do I do? I am SURE it cannot be difficult and I am probably acting stupid, but pelase help? This is mehis is teh web.config file and works FINE for all the otehr ASP pages accesing the DB... What needs to be added here then for teh ASPX? WEB.CONFIG FILE ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ I just cannot understand why does Dreamweaver not do this FOR me? Thanks thus far. I am thinking of going to Visual Studio and doing it in that... Just the ASPX pages in any case. Would that be sensable?

              M 1 Reply Last reply
              0
              • E evlxtc

                Thanks for the quick responce. It sounds so simple if you say it, but unfortunitly I have not a clue what you mean. :) GAC?? What is that and what do I do with the assemblies[^] part? Where and WHAT do I do? I am SURE it cannot be difficult and I am probably acting stupid, but pelase help? This is mehis is teh web.config file and works FINE for all the otehr ASP pages accesing the DB... What needs to be added here then for teh ASPX? WEB.CONFIG FILE ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ I just cannot understand why does Dreamweaver not do this FOR me? Thanks thus far. I am thinking of going to Visual Studio and doing it in that... Just the ASPX pages in any case. Would that be sensable?

                M Offline
                M Offline
                minhpc_bk
                wrote on last edited by
                #7

                Normally, the assembly consumed by the ASP.NET application should be put in the bin folder. So do you have that assembly in the bin folder of the application? By default, VS handles this thing for you.

                E 1 Reply Last reply
                0
                • E evlxtc

                  I have been using ASP pages mostly for my websites, but needed now to do some C# code to implement some GDI stuff.. This all works fine, but NOW I need to acces my ACCESS DB jsut to retrieve values. This I cannot do. To add a ACCESS DB connection etc (editing inserting etc) is easy in plain ASP and I am SURE it is just as easy in ASPX??? BUT I jsut cannot get it working in Dreamweaver MX. I keep on getting errors. A BLANK ASPX page. (RUNS) then I do a simply database connection to my ACCESS DB (Which only has one table) and immediatly I get errors and nothing works. PLEASE CAN SOMEONE HELP? this is me

                  X Offline
                  X Offline
                  xsoftdev
                  wrote on last edited by
                  #8

                  What are the errors you are getting, it will help diagnose your problem if you tell us what the errors are.

                  E 1 Reply Last reply
                  0
                  • X xsoftdev

                    What are the errors you are getting, it will help diagnose your problem if you tell us what the errors are.

                    E Offline
                    E Offline
                    evlxtc
                    wrote on last edited by
                    #9

                    Hi. If you have a look on the links.. My other responce has the FULL error msg as well as the ASPX code. (in full) PLEASE CAN SOMEONE HELP. I am not so clued up as to what was said as a solution by the previous msgs posted. Thanks. this is me

                    1 Reply Last reply
                    0
                    • M minhpc_bk

                      Normally, the assembly consumed by the ASP.NET application should be put in the bin folder. So do you have that assembly in the bin folder of the application? By default, VS handles this thing for you.

                      E Offline
                      E Offline
                      evlxtc
                      wrote on last edited by
                      #10

                      I am not using VS. I am using Dreamweaver MX. Is there NO easy way of doing this in Dreamweaver? Dreamweaver MUST in some way be able to do this? Or can I do this MANUALLY? My ASPX page is working fine and there is NO "bin" directory in my website. The ONLY aspx stuff I have on my website is the mypage.ASPX and an include file mypage.aspc.. nothing moret han that which looks at ASPX or .NET. The rest is all normal ASP pages and html pages. I cannot believe this can be so difficult :( this is me

                      M 1 Reply Last reply
                      0
                      • E evlxtc

                        I am not using VS. I am using Dreamweaver MX. Is there NO easy way of doing this in Dreamweaver? Dreamweaver MUST in some way be able to do this? Or can I do this MANUALLY? My ASPX page is working fine and there is NO "bin" directory in my website. The ONLY aspx stuff I have on my website is the mypage.ASPX and an include file mypage.aspc.. nothing moret han that which looks at ASPX or .NET. The rest is all normal ASP pages and html pages. I cannot believe this can be so difficult :( this is me

                        M Offline
                        M Offline
                        minhpc_bk
                        wrote on last edited by
                        #11

                        I'm sorry, since I'm not familiar with using the Dreamweaver to develop the ASP.NET application so I cannot tell you how easy to use the Dreamweaver MX to fix the error. However, from the error description what I can say is that the web page that currently causes the error is using the Register directive for the code defined in the assembly which is specified in the Assembly and Namespace attributes of the directive. And the ASP.NET has no idea about the location of this assembly, so it cannot load the assembly, and as a result it is causing the error. To fix the error, IMO you need to tell the ASP.NET how to load your assembly either putting it in the bin folder or using the Web.config file if this assembly is deployed to the Global Access Cache (GAC). You may find a good response from their support site: http://www.macromedia.com/cfusion/webforums/forum/index.cfm?forumid=12[^] http://www.macromedia.com/devnet/dotnet/[^]

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups