Dot Net

Diagnosing “Application Error”

Posted in Dot Net, Uncategorized on July 4th, 2010 by Saba – Be the first to comment

I’m responsible for a web site for my non-0profit academic group. I’ve been doing this abuot eight months, and scrambling to learn ASP.NET 3.5 as I go. My site was dong fine two weeks ago. Now, if you try to go there, www.ibr-bbr.org, it gives me an application error. I don’t know, however, how to debug this. I can only assume that it was introduced by the ISP doing something (my experience of several years with Java web apps that I’ve written and maintain suggests that web apps don’t simply break for no reason) ) but I don’t know how I’d determine that, since I’m the only person who modifies the site besides anything the SIP might do. How can I go about figuring out the cause of the problem? It’s ocurring, apparently, in the sub-directory that is the root of the application (not the physical root “/” directory but farther down). Thanks.

Ken

Retrieving same results with or without special chars

Posted in Dot Net on July 1st, 2010 by Saba – Be the first to comment

Hi all

I would like to know how can I retrieve the same result for a search engine using special char and without using special char like ‘ ç ‘ e.g : ’serviço’ or ’servico’ they are the same meaning, but in my country the correct form to write is the first one.

In my web application im using index server + asp.net

Best Regards, Danilo Cecilia

Fwd: It’s Very Urgent……….

Posted in Dot Net on July 1st, 2010 by Saba – Be the first to comment

On Wed, Jun 30, 2010 at 12:55 AM, Jagadish kumar wrote:

get UNC name of a network share

Posted in Dot Net on June 29th, 2010 by Saba – Be the first to comment

HI Guys.

I have a problem.

I want to list all shared network folders in my program. Thats working fine, code below.

BUT I would like to show also the UNC name of the share (like \serverfolder ) This is not working.

Does somebody can help me, and show to get this information. Volume Label is showing me the label of the drive volume, but not the share name.

current code (short version)

*public* *void* listNetworkFolders(*ref* DataTable dt)

{

dt.Rows.Clear();

System.IO.DriveInfo[] allDrives = System.IO.DriveInfo.GetDrives();

*foreach* (System.IO.DriveInfo d *in* allDrives)

{

*if* (d.DriveType.ToString().Contains(“Network”))

{

DataRow row = dt.NewRow();

row[0] = d.Name + ” ” + d.VolumeLabel.ToString();

dt.Rows.Add(row);

}

}

}

Thanks in advance.

Michael

calendar in which past date disable…

Posted in Dot Net on June 29th, 2010 by Saba – Be the first to comment

Hi All, This is Gourav. Actually i wanna a calendar in which past date automatically disable.Currently i am using Calendar with J query but it not work with Ajax…If any one have some idea or code for this type of calendar then please share with me..

i am also use Ajax calendar extender..its work good but in this past date not disable i put java script that user can’t select lower date ….but i want to disable past date..pls suggest me what can i do for this……..I’ll waiting for your reply…..

i wanna like….. 1. http://air.irctc.co.in 2. http://www.ixigo.com/ 3.www.Cleartrip.com any of these one….

Thanks,

{“Index was outside the bounds of the array.”}

Posted in Dot Net on June 29th, 2010 by Saba – Be the first to comment

I got an error called {“Index was outside the bounds of the array.”}

my code is looks like this…..

using System; using System.Collections.Generic; using System.Linq; using System.Text;

namespace Switch { class SwitchCaseExample { static void Main(string[] userInput) { int input = int.Parse(userInput[0]);

switch (input) // what is input { case 1: //if it is 1 Console.WriteLine(“You typed 1 (one) as the first command line argument”); break; // get out of switch block case 2: // if it is 2 Console.WriteLine(“You typed 2 (two) as the first command line argument”); break; // get out of switch block case 3: // if it is 3 Console.WriteLine(“You typed 3(three) as the first command line argument”); break; // get out of switch block default: // if it is not any of the above Console.WriteLine(“You typed a number other than 1,2 and 3″); break; // get out of switch block

} } } }

fix grid headers problem !!!!

Posted in Dot Net, Uncategorized on June 26th, 2010 by Saba – Be the first to comment

more information please….

On Wed, Jun 23, 2010 at 11:40 PM, Yogesh Dige wrote:

Need help in SSRS

Posted in Dot Net on June 25th, 2010 by Saba – Be the first to comment

you need to install SSRS on the machine you want to build the report on. Then you can deploy to a production server by changing the web.config file to reflect the credentials of the live server. Here is the info on the .rdlc file http://msdn.microsoft.com/en-us/library/ms252067(VS.80).aspx

On Wed, Jun 23, 2010 at 12:39 AM, ravindraee24 wrote:

UdpClient is mixing my udp packets

Posted in Dot Net on June 25th, 2010 by Saba – Be the first to comment

Hello,

I’m using the UdpClient (.net 3.5) class to comunicate 3 devices with the pc. The pc asks and the devices send the answer to pc by UDP protocol.

My problem is that PC receives mixed packages. That is to say, the PC receives a datagram from one ip that has sent another ip.

Summarizing, the “bytesReceived” and the “sRemoteHost” on the “callback function” does not correspond to the packages seen in a sniffer.

Any help?

Thanks.

Here is a code snippet:

private UdpClient m_udpClient;

public bool Open(int iLocalPort) { try { m_udpClient = new UdpClient(iLocalPort, AddressFamily.InterNetwork); } catch { m_bOpened = false; }

return m_bOpened; }

public bool SendAndWaitResponse(bool bWait, Dictionary colIpsToWait, int iMaxRetries) { bool bIsOk; int iRetries = 0, iIpsToWait;

do { iIpsToWait = 0;

foreach (EthernetHost host in m_colIps.Values) { if (colIpsToWait.ContainsKey(host.IP) && host.BytesSend != null && (host.BytesSend = null) && host.BytesSend.Length > 0) { //añadir Ip to wait iIpsToWait++;

try { m_udpClient.Send(host.BytesSend, host.BytesSend.Length, host.IP, host.Port); } catch (Exception ex) { Debug.WriteLine(ex.ToString()); host.Error = EthernetError.UdpConnectionError; }

} }

m_udpClient.BeginReceive(new AsyncCallback(ReceiveCallback), null);

//WaitResponse() is waiting for all devices to answer bIsOk = WaitResponse(colIpsToWait, iIpsToWait);

iRetries++; } while (!bIsOk && iRetries < iMaxRetries);

return bIsOk; }

private void ReceiveCallback(IAsyncResult ar) {

IPEndPoint remoteHost = new IPEndPoint(IPAddress.Any, 1000); string sRemoteHost; byte[] bytesReceived;

bytesReceived = null;

bytesReceived = m_udpClient.EndReceive(ar, ref remoteHost);

sRemoteHost = remoteHost.Address.ToString();

//to receiving the new packet… m_udpClient.BeginReceive(new AsyncCallback(ReceiveCallback), null); //Xatruch

}

Hw to downlod Ajax tool kit

Posted in Dot Net on June 25th, 2010 by Saba – Be the first to comment

On Wed, Jun 23, 2010 at 12:00 AM, kuldeep patel wrote: