|
Nevermind. I just changed it to a USER setting and went into each dataset and changed where it looked for the connection string
|
|
|
|
|
Hi.
How can I convert a XDocument variable to string ?
Using ToString() method is the true way ?
xDocument.ToString();
Thanks.
|
|
|
|
|
Well, in XDocument, ToString() is overloaded to give you the XML string representing the document, so I think the answer is yes.
If you want to remove unnecessary white spaces and carriage returns, you should use xDocument.ToString(SaveOptions.DisableFormatting);
You should also have a look to the Save() method, that can write the XML on a more general target (a file or a stream).
|
|
|
|
|
Great, Thank you Mirko1980
|
|
|
|
|
I'm looking for a simple tool to replace MSMQ, mainly because of the centralized, single point of failure nature of MSMQ. Currently, we have a web server farm and some of the sessions will have to communicate through MSMQ. The problem with this is that if the machine where the queue is defined is down, the messaging stops. Can anyone recommend a tool that is distributed among the servers so that I can send a message to a queue and if a session on another server is listening it will receive the message? The idea is not to be sending a message to a machine based queue such as in MSMQ, but more of a virtual queue that is alive as long as something is listening on it. I was hoping to find something like this so we don't have to write one ourselves.
Thanks
Brian
|
|
|
|
|
Hi,
I don't know if it's the right forum but it seems to me the most appropriate.
I have an application developed in C# (VS 2005) that work fine on Windows XP.
The application used the TFTP.exe installed on Windows.
now I moved to Vista and discovered that TFTP.exe is not installed by default and some configuration are required.
My question is:
Is it possible to detect (when application setup is running) that the TFTP.exe is not installed and to install it during the setup of my application (to avoid the user to do this manually)?
If yes, how can I do that?
Regards,
Lune
|
|
|
|
|
lune12 wrote: Is it possible to detect (when application setup is running) that the TFTP.exe is not installed and to install it during the setup of my application (to avoid the user to do this manually)?
You could prolly check whether the executable exists. Are you thinking of distributing the TFTP.exe with your application?
If it's part of Vista, wouldn't the user need his original installation CD, in order to add the extra features?
I are troll
|
|
|
|
|
|
Seems that it's a part of Windows itself. Windows XP would require the user to have his/her installation-media at hand - because your changing the configuration of the Windows-installation. I don't know if Vista has the same requirement.
In short; it's not a setting (it's not comparable to the screen-resolution setting) but a feature that may or may not be installed.
I are troll
|
|
|
|
|
I am developing a C# application to send SMS using SMPP server and SMPP port that I took before from an sms service provider. I am looking for a API or a dll file. Can anyone help me? It is really important. It must also send sms to multiple recipients.
|
|
|
|
|
|
hi all
i have an xml file as:
<?xml version="1.0" encoding="utf-8" ?>
<Pages>
<Page>
<Name>ManageUser.aspx</Name>
<User>
<ID>Admin</ID>
<ID>WebMaster</ID>
</User>
</Page>
<Page>
<Name>Traders.aspx</Name>
<User>
<ID>Admin</ID>
</User>
</Page>
</Pages>
my query as:
var result = xmlDoc.Descendants("Page").Select(s => new { Name = s.Element("Name").Value, User = s.Element("User").Value }).Distinct().ToList();
and finally result as:
result |Count =2
+[0] {Name="ManageUser.aspx",User="AdminWebMaster"}
+[1] {Name="Traders.aspx",User="Admin"}
My problem is that how i can sub divide "User" into "ID"
like
result |Count =3
+[0] {Name="ManageUser.aspx",User(ID)="Admin"}
+[1] {Name="ManageUser.aspx",User(ID)="WebMaster"}
+[2] {Name="Traders.aspx",User(ID)="Admin"}
actually i want IDs against Pages
thanks
|
|
|
|
|
Try this:
var result = (from page in xmlDoc.Descendants("Page")
from id in page.Descendants("ID")
select new
{
Name = page.Element("Name").Value,
ID = id.Value
}).Distinct().ToList();
|
|
|
|
|
I have a problem, I have created app in Visual Studio 2008 in XP windows, with framework 3.5 but when I launch it on Windows Vista it dosent start. I get the Application Recovery screen. On XP is no problem, everything works.
|
|
|
|
|
Does your Vista machine contains .Net FW 3.5?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Yes, that is why I am so confused. Dont know what to do.
|
|
|
|
|
Do you get any useful message?
Does it work if you right click and select 'Run as administrator'?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Oo need to check that thx
|
|
|
|
|
If it does work then you may need to create a manifest[^] file for your application. Do a search for 'C# vista manifest' for more information.
It's not always needed for every application, I think it is dependent on what the application actually does as to if you need one or not. Not 100% thou
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
HELLO.......
I want to split a byte[].....
Suggest me with code sample...
Thanx
|
|
|
|
|
gauravems wrote: I want to split a byte[].....
It's an array of bytes - I'm not sure how you could split it any further.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
i have a byte[]of image and i want to break them in multiple parts so that i can store them in to blocks of smart card which have usually less memory(1k).
suggest me some c# code
|
|
|
|
|
gauravems wrote: i have a byte[]of image and i want to break them in multiple parts so that i can store them in to blocks of smart card which have usually less memory(1k).
Array.Copy(sourceArray, sourceStartIndex, destinationArray, destinationIndex, length)
|
|
|
|
|
Dear All,
How to open ms excel file in C#. And How to read and Write the data in the Xl Sheet.
Please kindly needful.Thanks in advance
With Regards
Mahesh
|
|
|
|
|
Common sense.[^]
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|