ACCESS DB in a ASPX page
-
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
-
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
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? << >>
-
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
-
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:
-
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:
+ 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. -
+ 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.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?
-
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?
-
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
-
What are the errors you are getting, it will help diagnose your problem if you tell us what the errors are.
-
Normally, the assembly consumed by the ASP.NET application should be put in the
bin
folder. So do you have that assembly in thebin
folder of the application? By default, VS handles this thing for you.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
-
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
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/[^]