|
Hi Vidya,
Even i m new to MessageQueuing.I have not even taken a single step towards MessageQueuing...but i m interested and need to do it.Could u suggest me any tutorials or any other good sources for MessageQueuing..
Or else u atleast share ur views about exploring MessageQueuing...
Thanks in advance
Do not wait to strike till the iron is hot; but make it hot by striking.
|
|
|
|
|
Hello,
i need to download, upload, create directory and move files on a FTP server
I'm at work, so i have to use the proxy (USER@HOST mode)
When i get the ftpwebresponse i have the following error :
The server committed a protocol violation. Section=ResponseStatusLine
Can you help me.
This is the code i use :
<br />
FtpWebRequest myFtpRequest = (FtpWebRequest)WebRequest.Create("ftp://ftpUrl");<br />
myFtpRequest.UsePassive = false;<br />
myFtpRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails;<br />
myFtpRequest.Credentials = new NetworkCredential("ftpLogin", "ftpPass");<br />
myFtpRequest.KeepAlive = true;<br />
WebProxy myProxy = new WebProxy("proxyUrl", "proxyPort");<br />
myFtpRequest.Proxy = myProxy ;<br />
<br />
FtpWebResponse ftpResponse = (FtpWebResponse)myFtpRequest.GetResponse();<br />
Thanks a lot
CutKemist
|
|
|
|
|
Hi
I'm trying to create my own ListView Control that looks like this.
I've tried to make the Items as a Panel, but I don't know how to make the container.
Can someone give me an approach?
thanks
|
|
|
|
|
What do you mean by 'container'? If you mean that which holds the items, you could use a Panel. If not, (or if using a Panel doesn't suit your needs) then what do you mean?
Josh
|
|
|
|
|
in VS2003, it was possible to add reference to a windows class library project in a mobile project by adding reference to this DLL, but now, with framework 2.0, i got error when trying to add a reference to windows DLL project. Windows DLL and mobile project are in the same solution. Does any body have an idea about this?
-- modified at 5:16 Wednesday 7th June, 2006
|
|
|
|
|
perhaps the dll you used was compatible with the compact framework, and the one you try to use now is not?
You could try reflector[^] to learn more...
|
|
|
|
|
i can reference this DLL as an externel DLL, but i can't add reference to its project in the same solution. ok, may be i will use it as external. thanks
|
|
|
|
|
i want to get the file size of an NTFS encrypted file. GetFileSize gives non encrypted file size that windows show in file properties. Is there any solution to get the actual encrypted file size ??? SDK facilitate us only in case of compressed files as it can tell bout compressed and uncompressed file sizes us GetCompressedFileSize() ans GetFileSize() but there is no such information about encrypted files. Can anyone help me in this regard?
Regards
-Zeeshan
|
|
|
|
|
Got this question - I am working in a company that has been using VS2003 and the older .NET framework for all its projects; I want to experiment with web-development, ASP 2.0 but I am wary of any compatibility problems. If I install the 2.0 SDK and continue to use VS2003 and projects developed in previous .NET, should everything work fine, or should I expect some issues?
Thanks in advance..
|
|
|
|
|
You can't compile against v2.0 of the .NET framework from within VS2003. You need to use VS2005.
I can't give any advice regarding ASP.NET 1.1 -> 2.0 conversions (I'm a WinForms guy). Moving from .NET 1.1 to 2.0 in general, however, should not pose any problems for you. I do find VS2005 to be rather slow, though. Then again, I pretty much only use it for WinFx dev (which is still beta bits!).
Josh
|
|
|
|
|
You shouldn't have any problems. However, if you try to upgrade a web project from 2003 to 2005 expect lots of problems. Where I work a colleague has been experimenting with that to see what the isues will be when they eventually try and upgrade their projects. It appears to be a hard slog!
Kevin
|
|
|
|
|
It works just fine.
I have both VS 2003 and VS 2005 installed, and never experienced any problems with it. I can have them both running at the same time even.
---
b { font-weight: normal; }
|
|
|
|
|
I need to store some user seetings and wonder how to do that...
Of course I was thinking to mix XML serialization with IsolatedStorage IO.
BUT
I believe it exists an API for that, I even used it (and forget about it).
However in my somewhat hazy memory it was abusively complex to use properly.
Any tips?
|
|
|
|
|
I think you are looking for Application configuration file and API that supports reading/writing to it.
What version of .NET are you using?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I watched a tutorial (and even tried it!) where you could databind the position of your windows to some user settings and the windows position is automatically save and restored any time you leave & start the application!
That's the thing I'm looking for!
I have .NET 2.0.
Anyway I wrote a nice and simple ConfReaderWriter class which take care of all the IO & persistent aspect using Isolated storage and XML serialization.
But that doesn't automatically save ↦ restore my windows position but I manage to make it work
|
|
|
|
|
You reinvented the wheel by that one, becouse it is already implemented in the .NET framework (I can't remember the name right now).
As for that automatic saving I really don't know. Try google.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I might have reinvented the wheel, but it was a small and well hidden wheel
But I would be happy to know about it!
|
|
|
|
|
Hi
I am using .NET component to execute a Biztalk 2004 rules policy which takes an input xml message and returns me updated xml message, as explained in Case A.
Case A:
Input xml with ID value:
<Emp>
<ID>1002</ID>
<Income/>
</Emp>
Output xml with ID and Income value:
<Emp>
<ID>1002</ID>
<Income>50000</Income>
</Emp>
Case B:
Input xml with IDs of multiple employees:
<Employees>
<Emp>
<ID>1000</ID>
<Income/>
</Emp>
<Emp>
<ID>1001</ID>
<Income/>
</Emp>
<Emp>
<ID>1002</ID>
<Income/>
</Emp>
</Employees>
Output desired:
<Employees>
<Emp>
<ID>1000</ID>
<Income>40000</Income>
</Emp>
<Emp>
<ID>1001</ID>
<Income>50000</Income>
</Emp>
<Emp>
<ID>1002</ID>
<Income>60000</Income>
</Emp>
</Employees>
My question is: How can I acheive the desired output using .NET components? I want to execute policy only through C# code and get back the result.
Please advise. Thanks in advance.
Pankaj
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
I have a repeater control to display thumbnail pictures. The itemtemplate is made of a web image control. When user clicks on the thumbnail picture, I want it to display a larger image in a web image control and display the image description in a label control( the image description is saved in database).
My current code is :
I have a getPhoto function which will get the thumbnail pictures through IhttpHandler and bound to the repeater control.
Then I have a repPhotoG_ItemDataBound function, here I add the javascript to the image html control and call a javascript to pass the thumbnail imagename as parameter and show the large image.
Now, I can get the thubnail picture and display the large images, but I just don’t know how to get and display the image description. Please help!!
private void repPhotoG_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
{
//finding repeater item Image
System.Web.UI.HtmlControls.HtmlImage img=(System.Web.UI.HtmlControls.HtmlImage)e.Item.FindControl("iPhoto");
//create a relative path for image and add onclick function
img.Src=img.Src.Replace('\\', '/');
string Description="";
string Image;
Image=IMGpath(img.Src);
img.Attributes["onclick"]="showImg('"+Image+"')";
}
function showImg(imgName)
{
imgOn = ("" + imgName);
document.imgLarge.filters[0].Apply();
document.imgLarge.src = imgOn;
hdr.innerHTML=imgName;
document.imgLarge.filters[0].Play();
-- modified at 17:29 Monday 5th June, 2006
|
|
|
|
|
I have written a program that runs fine when launched from a PC with
VS2005 installed, but crashes when launched on a PC with just the
redistributable installed.
The message is the standard dialog box '..has encountered a problem and
needs to close'. Please tell microsoft about this problem.
There is no exception shown.
I can't install the compiler to track it down cause then the problem
will go away.
It's not a security setting because the tester fixed the problem by installed VS2005 without changing any settings.
Any ideas?
|
|
|
|
|
Neil_Scales wrote: standard dialog box '..has encountered a problem and
needs to close'. Please tell microsoft about this problem.
You should be able to click on Show Error Data or a button that's labelled something like that, if I remember correctly you click several links through different dialog boxes and you will receive a text box which has the exception details in it, in the middle of details of all the loaded dlls and version information.
Neil_Scales wrote: It's not a security setting because the tester fixed the problem by installed VS2005 without changing any settings.
Are you referencing a DLL that might only be used in VS.NET (the only example I can think of at the moment is envdte.dll which is the interface libarary for writing VS.NET add-ins (you probably won't be using that but it was the only example I could think of).
Best bet is to wrap your Main routine inside a try...catch block and dump any error message out to the screen or a file. E.g.
static void Main(string[] args)
{
try
{
}
catch (Exception exception)
{
Console.WriteLine(exception.ToString());
MessageBox.Show(exception.ToString());
System.IO.File.WriteAllText(@"errorlog.txt", exception.ToString());
}
}
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
How will u load dynamic assembly? How will create assemblies at run time?
|
|
|
|
|
|
You can use reflection to load the assembly dynamically.
Kanumilli
|
|
|
|
|
I downloaded the gdWrapper, and wrote some code to draw a part on the fly. I want to save the png file as a file, and I want to stuff the PngStream into a SQL Server Image Table Column.
The instructions for the gdwrapper are kind of vague, can't figure out what the call is for writing the file to the disk drive.
Here is what I have so far , This is my first time using JScript
I call the file 'RenderPart.asp'
<%@language=jscript%>
<%
//Gather all the data needed to make the drawing
//var TX = Request.QueryString("TX") * 3
//var TY = Request.QueryString("TY") * 3
//var AX = Request.QueryString("AX") * 3
//var AY = Request.QueryString("AY") * 3
//var BX = Request.QueryString("BX") * 3
//var BY = Request.QueryString("BY") * 3
//var BV = Request.QueryString("BV") * 3
//var CX = Request.QueryString("CX") * 3
//var CY = Request.QueryString("CY") * 3
//var JobNumber = Request.QueryString("JN")
var TX = 120
var TY = 90
var AX = 18
var AY = 44.7868
var BX = 39.2132
var BY = 45.2132
var BV = 30
var CX = 80.7868
var CY = 24
var JobNumber = "CF1"
// Write image/png header
Response.ContentType = "image/png";
// Set 'dynamic' content to expire immediately (depends on situation)
Response.Expires = -1000;
// Create variables
var gdImage = Server.CreateObject("GDLibrary.gdImage");
// Create a new paleted image in memory ... or ...
//gdImage.Create(250, 200);
//Calculate the image size if it gets real big
var CTX;
var CTY;
if(TX > 480) {
CTX = TX + 50;
} else {
CTX = 480;
}
if(TY > 320 ) {
CTY = TY + 40;
} else {
CTY = 320;
}
gdImage.Create(CTX, CTY);
// Add/Return RGB True Color values
var White = gdImage.ColorAllocate(255, 255, 255);
var Black = gdImage.ColorAllocate(0, 0, 0);
var Red = gdImage.ColorAllocate(255, 0, 0);
var Blue = gdImage.ColorAllocate(0, 0, 255);
var Green = gdImage.ColorAllocate(0, 255, 0);
//Calculate TotalBox First, Then Draw it
//gdImage.Rectangle(0, 0, TX, TY, Black);
//Caluclate PartB, then Draw it
//(sX, sY, fX, fY, color)
gdImage.Line(0, 0, 0, BY, Red); //Verrical
gdImage.Line(0, 0, BX, 0, Red); //Horzontal
gdImage.Line(0, BY, AX, BY, Red);
gdImage.Line(BX, 0, BX, CY, Red);
gdImage.Line(AX, BY, BX, CY, Red); //Vortex
//Calculate PartA Next, then draw it
//(sX, sY, fX, fY, color)
gdImage.Rectangle(0, BY, AX, AY+BY, Red);
//Calculate PartC, then Draw it
//(sX, sY, fX, fY, color)
gdImage.Rectangle(BX, 0, CX+BX, CY, Red);
// Label the Drawing now
//gdImage.Chars(gdImage.FontGetMediumBold(), 75, 10, "Horizontal Y-Axis", Black);
//gdImage.CharsUp(gdImage.FontGetMediumBold(), 460, 225, "Vertical X-Axis", Black);
//gdImage.Chars(gdImage.FontGetTiny(), AX / 4, (BY / 4), "Part B", Black);
//gdImage.Chars(gdImage.FontGetTiny(), AX / 4, AY, "Part A", Black);
//gdImage.Chars(gdImage.FontGetTiny(), (CX / 3) + BX, (BY / 4), "Part C", Black);
gdImage.Chars(gdImage.FontGetMediumBold(), 10, TY + 20, "Scale: 3 Pixels Per Inch", Black);
gdImage.Chars(gdImage.FontGetSmall(), 10, TY + 35, "Job Number: " + JobNumber, Black);
// Before output, if we want a Palleted Png (256 color), run the next command!
gdImage.TrueColorToPalette(false, 256);
// For Gradients, Dithering will help but increase the file size!
// Return a Png data stream
Response.BinaryWrite(gdImage.ToPngStream().Read);
gdImage = null;
%>
|
|
|
|
|