|
Hi All,
I have a case that i need to browse through the directories and files of a unix server through C#.NET or VB.NET Code. Can anyone help me out???
Exact scenario of the problem is:
i need to ftp a file to unix server from windows machine through VB.NET Code. But Before that i need the check the unix server whether the file already exist or not in a particular directory of the unix server. If the file already exist in the unix server, i have to wait until the file to be removed in the unix server and then ftp the file to unix server.
gokulnath
|
|
|
|
|
Dear all,
I had crystal project which exports on demand subreport data to any format in vs.net 2003. It is working fine for both main report and sub report.
Now i am converting to vs.net 2005, it gives error. for the code :
CRD = crSubreportObject.OpenSubreport crSubreportObject.SubreportName)
Exp_stream = CType(CRD.ExportToStream(ExportFormatType.Excel), MemoryStream)
This code gives "Not Supported within subreports"
Pls help to export on demand subreport. Then only i will move to vs.net 2005.
by
Suresh Kumar
|
|
|
|
|
Hi,
I uploaded site in one folder of the ftp location. When i open url, it is giving me following error.
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
=================
I tried to change all 3 modes of customErrors but same problem.
Can anyone help me please?
Thanks.
|
|
|
|
|
Make sure it is case sensitive
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
|
|
|
|
|
Is this running on IIS? If so, it may be an application name setting.
|
|
|
|
|
Yes it is running under IIS. I will not be able to change setting of IIS as it is remote server somewhere.
|
|
|
|
|
you have to find out if the "application" setting was set, or it may never work.
|
|
|
|
|
i have one .swf object how i have to call that flash to asp.net page
|
|
|
|
|
If you mean how do you put it on a web form, you add it using the <object tag. For instance:
<object width="200" height="150" >
<param name="movie" value="myFlash.swf" />
<embed src="myFlash.swf" width="200" height="150" />
<object>
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Include that .swf file in a page and include that page in ifram in that page where u want to use this swf file.
|
|
|
|
|
Safecom wrote: ifram
iframe is usually For including flash it's always
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
My Dear dnh
Read my Answer. I told that include that flash in a page and then include that page in ifram. I have used this. If u do not believe then go to www.arif.etradehouse.com and place an order
|
|
|
|
|
Server Error in '/' Application.
Could not use ''; file already in use.
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.Data.OleDb.OleDbException: Could not use ''; file already in use.
Source Error:
Line 26:
Line 27: 'Try
Line 28: Conn.Open()
Line 29: 'select cart_default_prod.pos from product,cart_default_prod where cart_default_prod.prod_id=prodid.prodid"
Line 30: If Not Me.IsPostBack Then
Source File: c:\domains\etradehouse.com\wwwroot\arif\code\ui\right_column\right_banner.ascx.vb Line: 28
Stack Trace:
[OleDbException (0x80004005): Could not use ''; file already in use.]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054657
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
right_banner.Page_Load(Object sender, EventArgs e) in c:\domains\etradehouse.com\wwwroot\arif\code\ui\right_column\right_banner.ascx.vb:28
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hi all,
I have developed a shoping card. In which there are different Payment Methods. There is a method Card Payment. When some place Order it rediret him to World Pay Secure Payment pages. The problem is that it doesnt give any error on Internet Explorer. When Some one use Mozilla then It does not redirect to World Pay Pages and also does't gave any error. Can any one explain and give me suggesion.
Thanks in Advance
with Best Regards
|
|
|
|
|
how are you redirecting them to the new page?
|
|
|
|
|
I m redirecting that with javascript code.
js_script_w = "document.frmworld.submit() ;" & Chr(60) & "/script>"
Page.RegisterStartupScript("Redirect", js_script_w)
Where frmworld is the name of a Form
|
|
|
|
|
There may be your problem. Do a redirect or transfer on the server side.
|
|
|
|
|
The problem is in your JavaScript. for Mozilla the HTML objects are retrieved using document.getElementById(OBJECTNAME).
i.e. document.getElementById(OBJECTNAME) is equal to document.OBJECTNAME .
The getElementById method will also works fine in IE.
|
|
|
|
|
I have run into a slight problem in some VB6 code called from 'classic' asp page. The VB6 code does a bit of processing and then proceeds to insert a series of rows into a DB table within a loop, e.g.
<br />
<br />
do<br />
<br />
'call generic insert function to DB, connection opened and closed<br />
<br />
'increment counter<br />
<br />
loop<br />
<br />
And this has been working fine for many years. One client has found a problem - I debug in here and when the counter gets to around 3950 rows (changes each time), i get the following error when performing the insert:
DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Anybody any ideas as to why this would be happening?
|
|
|
|
|
Take a look at the event log on the server where SQL Server sits to see if any events have been raised (such as the database shutting down).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It's a development machine i'm testing it on, with a local sql server - nothing of note in the event logs.
|
|
|
|
|
In that case - connect Query Analyser to this instance and take a look at all of the messages that it fires when the connection *closes". Just a thought there - you are closing the connection between saves aren't you?
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'll give that a go. And yes, they should all be closed...
|
|
|
|
|
Ok. Just got back to this now. We are using a single connection object that is opened at the start and then closed after performing all the inserts...
My trace just shows many Audit Logon messages rather than connection open messages.
|
|
|
|
|
Hi,
I have created a web page, where the user sees a list of all the available reference files present on the server.
The List is shown as
C:\XYZ\News\Ace & Star Awards.pps
C:\XYZ\Current\Bravery Awards.doc
C:\XYZ\Latest\Humanitarian Rules.txt
I have given hyperlinks to the user for each of this link by creating a hyperlink dynamically like
for (int Counter = 0; Counter < lbFiles.Items.Count; Counter++)
{
HyperLink hLink = new HyperLink( );
hLink.Text = lbFiles.Items[Counter].ToString( );
hLink.NavigateUrl = lbFiles.Items[Counter].ToString( );
Page.Controls.Add(hLink);
}
Now how do i make the webpage open the appropriate actual word/ pps or txt file as per what the link is clicked ?
Do I need to replace the C:\XYZ\News with something else ?? How do I do that ?
Pls guide me.. I have never done this before.
Thanks and best regards
Omkar Ghaisas
|
|
|
|