|
After i install the files in remote server, i jsut run thru browser
mean while i am getting this error
Server Error in '/ezei2002net' Application.
--------------------------------------------------------------------------------
File or assembly name ADODB, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name ADODB, or one of its dependencies, was not found.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true">
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'ADODB' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///D:/Inetpub/wwwroot/ezei2002net
LOG: Initial PrivatePath = bin
Calling assembly : Ezei2002net, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (D:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from D:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/ezei2002net/a78c0475/f3699740/ADODB.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/ezei2002net/a78c0475/f3699740/ADODB/ADODB.DLL.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/ezei2002net/bin/ADODB.DLL.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/ezei2002net/bin/ADODB/ADODB.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/ezei2002net/a78c0475/f3699740/ADODB.EXE.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/ezei2002net/a78c0475/f3699740/ADODB/ADODB.EXE.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/ezei2002net/bin/ADODB.EXE.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/ezei2002net/bin/ADODB/ADODB.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name ADODB, or one of its dependencies, was not found.]
Ezei2002net.WebForm1..ctor() +0
ASP.CH_childinfo_aspx..ctor()
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +277
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +109
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +175
[HttpException (0x80004005): Failed to create page of type 'ASP.CH_childinfo_aspx'.]
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +349
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +14
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +174
System.Web.MapHandlerExecutionStep.Execute() +77
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
i am struck up in this
if any one know any clues for this
kindly help me
Jude
------------------------------------------
Regards,
Jude Asis Prabhu
Chennai,India.
Email:rjaprabhu@lycos.com
|
|
|
|
|
I'm currently buidling an ASP.NET application that requires custom HTML emails be sent. I was going to use "Sever.Execute" to capture the result of an aspx template execution and use it as the body of an HTML email. This works, but it only works if it is called from the "Page_Load" Sub. As soon as I call it from an event sub it fails and returns a "Corrupt ViewState" Error. Is this normal? Does "Server.Execute" only work in Page_Load? Is there another/better way to do this? Help is appreciated.
Code:
**** This Works ****
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
SendItDude()
End Sub
**** This Doesn't Work ***
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
SendItDude()
End Sub
Public Sub SendItDude()
Dim EM As CarSystem.Emailer = New CarSystem.Emailer()
Dim writer As New StringWriter()
Dim x As Integer = 1
Dim List(x) As Integer
List(0) = 3332
List(1) = 3332
Server.Execute("../Assignpreview.aspx?car_id=7", writer)
Response.Write(EM.Email_it(8, List, 3332, "This is a test", writer.ToString()))
End Sub
|
|
|
|
|
Thanks for nothing, I solved it myself, well sort of. First of all Server.Execute is an ugly little function. If you don't have to use it don't.
You can't use it unless it is in the Page_load. This might seem obvious to some, but I couldn't find any documentation on this fact. There is viewstate conflict. For some reason you can't have more than one viewstate field on a page at one time. Who knew? If there was a way to not place that field on the page being executed it might work, but simply "disabling" it doesn't remove the field, it only disables the controls from saving to it.
So what I did was, on Page_load execute the aspx page that I was trying to use as an email and saved it to a viewstate variable. So when the user decides to send it, it sends that variable as the message to my emailer class. Its an internal app so the extra page weight shouldn't have to much impact on performace.
Its not perfect by any strech but It will work for now. I just find it hard to believe there isn't a function that allows you to capture the HTML from a local or remote website. If there is please let me know. I could have done this in Cold Fusion in 10 minutes or less.
-Tom
|
|
|
|
|
Hey all -
so, does when does this control raise the ServerValidate event?
I have:
<asp:CustomValidator id="CustomValidator1" runat="server" ErrorMessage="David Custom Validation Bitatch" ControlToValidate="txtDate" Width="278px" Height="17px">
</asp:CustomValidator></P>
And I have:
private void CustomValidator1_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args){
/* validate */}
It all works, I just can't figure out how the event is raised. Thanks much,
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
I have a DataGrid that will always spit out one row of data.But that row has about 50 columns or so.
Could somebody tell me how can i get a landscape view of this datagrid (ie invert the datagrid) so that the data that i want is clearly presented in my page??
Regards
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
I don't think there is built-in support for that, so you might have to build your own DataGrid control by deriving a class from .NET's DataGrid
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|
|
I have built an alphabetical list of items in a database for a web page but for each letter of the alphabet I have to open and close the connection.
It seems there should be a more efficient method to accomplish this. (There are too many items in the database(s) to list them all together. It makes the page very tiresome to read and scroll through.)
Does anyone have any ideas that may help? I am new to ASP so I may have overlooked something obvious.
Terrie
|
|
|
|
|
Sounds vague - are they not all in one table? Querying with the 'order by' would solve that immediately.
You could also populate a sorted collection with the resultsets and it would automatically do the sorting for you. I know in java there is a Treeset, I'm sure there is an equivalent in .NET...
http://www.c-sharpcorner.com/Code/2002/June/CollectionObgOrdering.asp
--> is a URL you may find useful.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
I've been hearing a lot of buzz lately about the XQuery language, and how it's supposed to be the next "Big" thing. My question is why? Why learn yet another XML language that, from what I've seen of it, is just as cryptic as XSL, when I can quickly import XML to a .NET DataSet, and run SQL query's against it? It seems to me that XQuery is just going to be one of those buzz words that non-technical people look for when posting technical job requirements.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Jamie Nordmeyer wrote:
Why learn yet another XML language that, from what I've seen of it, is just as cryptic as XSL, when I can quickly import XML to a .NET DataSet, and run SQL query's against it?
Couple of reasons.
You may not want the overhead of having to use a DataSet and the whole SQL parser.
The DataSet is not a public standard as such, so using it locks you down to MS. XQuery at least is an open, public standard.
XQuery is wonderfully suited to XML, as it should be. You can do things with XQuery to an XML file that you cannot do through a DataSet and SQL.
How many versions of SQL do we now have? Quite a lot with each having it's own idiosyncracies. XQuery is a strict standard.
XQuery can be run on the client side with compliant browsers. Can't do that with SQL.
And many more.
Really you should not be comparing XQuery and SQL. They are different tools for different jobs.
And yes, it is a big buzzword, just as XML is. But at the same time it is a lovely query language to work with IMO.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"Winning an argument on the internet is like winning a gold medal at the Special Olympics -- even though you're the champ, you're still a retard." - Kuro5hin.org Wrong but still funny
|
|
|
|
|
Hey, thanks for the reply, Paul. 2 points that you mentioned sealed the deal for me to learn it: 1. The DataSet is not a public standard as such, so using it locks you down to MS. XQuery at least is an open, public standard. 2. XQuery can be run on the client side with compliant browsers. Can't do that with SQL. As for the DataSet being tied down to Microsoft, that should hopefully change soon with MONO. Of course, from what I've seen of it thus far, MONO still has a ways to go before completion.Again, thanks for the pointers.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
I am attempting this function:
IF tellere = "1" AND modelID <> "%HT" THEN mIDe2="error"
I assumed that the "%" would act as a wild card, allowing me to take what the user inputs, look to see if it ends in "HT" and if it does, OK, and if it doesn't, return an error. I was wrong, the "%" doesn't work as a wildcard here. How would I accomplish this?
|
|
|
|
|
Robby wrote:
I assumed that the "%" would act as a wild card,
* Someone correct me if I am wrong but...
I think you are confusing SQL with ASP. As far as I know there is no wildcard for IF statements in ASP.
So in SQL you could do: SELECT * FROM [table] WHERE tellere = 1 AND modelID <> '%HT'
What you could do in ASP though is to use the INSTR func to return whether the specified string is in the var.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"Winning an argument on the internet is like winning a gold medal at the Special Olympics -- even though you're the champ, you're still a retard." - Kuro5hin.org Wrong but still funny
|
|
|
|
|
Using the history object, I can navigate "back" and "forwards". BUT what I'd like to do is just to find the URL of a page in the history and NOT navigate to it. Is it possible please?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
This violates security policies set by JavaScript. NS will let you have it; however, if requested. With IE, AFAIK you're out of luck when getting URLs more than one deep unless you invisibly track this with fames or something.
In NS...
<script>
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
history.previous[1];
history.previous[2];
...
</script> BTW, you better not use this info for anything malicious!
Jeremy Falcon
Imputek
<nobr>"C# is the answer to a question nobody asked." - Chris Losinger
|
|
|
|
|
Thanks. That's what I thought the answer would be. I just writing some CGI programs, and wanted to cut down on the parameter list. Ahh well.....
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
|
I am developing a Web Image Viewer so that our customers can view images that we have scanned for them from anywhere.
I am trying to access the image (jpeg) files that are stored on another machine on the network from my ISAPI extension but I cannot.
I have shared the Image folder, giving permissions to everyone, and have mapped a drive letter to it on the local machine, so the path to the Images looks like:
V:\Images\Archived\fiename.jpg
I have trapped the System error message, using FormatMessage( )and get "Access Denied".
If I have the Images on the same machine as the Web Server, it works OK e.g. D:\Images\Archived\filename.jpg
Any ideas??? Any help would be greatly appreciated.
Many thanx.
code dope.
|
|
|
|
|
|
thanx...I'll give it a go.
code dope.
|
|
|
|
|
Hi,
I'm writing a ISAPI program for a company project. The project requires that I don't use a database to save the user input. Instead I want to write the user data into a disk file on the server using CFile, is this possible?? I tried using CFile and writing it into a directory on the server that has write permissions, however all I get is a Exception in filecore.h.
Thanks for your help!!
|
|
|
|
|
Hello,
I have a rather nasty problem. I have an aspx page. This page loads an web user control using LoadControl. The control that is loaded also does a loadcontrol to load another control. And then this Control does again a loadcontrol. The Controls contain tables. By using findcontrol I can find the right tablecell to add the control to. On of the controls that is loaded by antoher control contains a checkbox, and when this one gets loaded I get an error saying that I must have a form with runat-server attribute. This is ofcourse present in the aspx page that starts all the dynamic loading.
so, summarized:
I have ControlA, ControlB, and ControlC
My aspx page loads ControlA, ControlA then loads ControlB and finds the right cell to add to the control colletion of that cell. Then ControlB loads ControlC and does also a findControl, but since ControlC has a <asp:checkbox runat="server"/"> the error "Control '_ctl0__ctl0__ctl1__ctl0' of type 'CheckBox' must be placed inside a form tag with runat=server. " occurs.
Is there a solution to this problem?
grtz
Henk
|
|
|
|
|
This is not really a strictly topical question, but this seemed the most appropriate forum to use.
I need a regular expression that would fail if a string:
a) contains white space
b) contains any non-textual character or 0-9 (i.e. not a-b, ê..., etc)
I have figured it out for white space, 0-9, and a-b, but cannot for the life of me figure out the last part. I have read more documentation than most people read books in a month and I just don't get it. How?
Is the only way to use a really long [abcde....êçå...]?
One 18yrs male, red and white, good condition; daily servicing required. £500 collect ono.
|
|
|
|
|
Can't you simply do the following?
[a-zA-Z\xC1-\x259]+ , or whatever range you need? I'm not sure I'm understand the question entirely, but I think this is how you'd do it. Don't know what Regular Expression parser you're using, but Javascript only supports the standard ASCII set (0x00 - 0xFF).
Hope this helped.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Where is that darned :idiot: iocn when you need it?
Thanks for slapping me into gear!
One 18yrs male, red and white, good condition; daily servicing required. £500 collect ono.
|
|
|
|
|