We are having problems on one machine, with the error message:
"MSDTC on server XXX is unavailable."
The code is using a TransactionScope to wrap some LingToSql database code; there is also some raw Ado.net inside of the transaction.
As only a single sql database (2005) is being accessed, why is a distributed transaction being used at all?
(I don’t wish to know how to enable MSDTC, as the code needs to work on the server with their current setup)
Hi,
I have an application in asp.net.I configured it in IIS.When i running this application in IIS i getting an error;
Server "/" error:
Resource Cannot be Found
Error:404
Some of pages only produce this issues.Other forms are working perfectly.Without running application in IIS Its working perfectly.
If any one can answer plz send the answer immediatly.
Thank you
I'm going to be writing a small app based on the .NET SerialPort class.
Is there a generic dialog available for setting the port settings, ala baud rate, data bits, stop bit, parity bit, flow control, etc? I didn't see one in the MSDN documentation, but I would think that one exists, since that stuff doesn't change.
I have virtual hosting with SQL Server. I don't have physical access to SQL Server. I want to make backup and download it. How can I do it from asp.net page?
Hi,
I'm just thinking if there is any way how to get information about element in HTML in my .NET application.
The input is HTML page and path to CSS files etc. I want to take e.g. H1 tag and found what will be the CSS for it. Is there any code or can I use IE and try to take this information from it automatically inside of my application?
I am looking at various options to implement a spellchecker in our ASP.NET 3.5 application. This applicaition is to be used worldwide so a wide language support is important.
Can you guys suggest the best possible controls for this purpose? Currently, we are evaluating Obout and Telerik suites. Are there better alternatives, given that spellcheck is our primary goal?
thanks
I wonder how long will an ASP.NET (MVC) application run, when no new requests come in? Lets say I'm using an IOC Container ans have a Singleton Object serving to the clients. As far as I know it will serve different page requests. But how long will it live when no new request come in? Is there any timeout (maybe configured through IIS) that says when my app will shut down?
I'm looking for a .Net implementation of a multiset. Can anyone recommend a good one?
(A multiset, or bag, is a set that can have duplicate values, and on which you can do set operations: intersection, difference, etc. A shopping cart for instance could be thought of as a multiset because you can have multiple occurrences of the same product.)
Hi folks,
I need to print PDF's generated in an asp.net application using crystal reports. Upon printing, a database table gets updated with the status 'printed'. How do we handle situation where let's say, the printer runs out of paper?
I know this is on client-side, so what's the right way to handle issues like this?
TIA
Hi,
I have a custom class declared as follows (in vb.net)
<Serializable()> _ Public
Class NumInfo Public n As String
Public f As Integer Public fc As
char() Public t As Integer
Public tc As char() Private
validFlag As Boolean = True Public
Sub New() End Sub 'I also have
public properties(read/write) for all
the public variablesEnd Class
In my service.asmx codebehind class I have a webmethod as follows:
<WebMethod()> _
<XmlInclude(GetType(NumInfo))>
_ Public Function ConvertTo(ByVal info As NumInfo) As String
Return mbc(info)'mbc is another
function defined in my service.asmx
"service" class End
Function
The problem is that when I start debugging it to test it, the page that I get does not contain any fields where I could input the values for the public fields of numInfo. How do I initialise the class? There is no "Invoke" button either. All I see are soap details as below:
ConvertToTestThe test form is only
available for methods with primitive
types as parameters.SOAP 1.1The
following is a sample SOAP 1.1 request
and response. The placeholders
shown need to be replaced with actual
values.POST /Converter/BC.asmx
HTTP/1.1Host:
localhostContent-Type: text/xml;
charset=utf-8Content-Length:
lengthSOAPAction:
"http://Services/ConvertTo"<?xml
version="1.0"
encoding="utf-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ConvertTo xmlns="http://Services/">
<info>
<n>string</n>
<f>int</f>
<fc>
<char>char</char>
<char>char>/char>
</fc>..etc..
What am I doing wrong? For the record I tried replacing char() with string to see if it was the array causing problems but that didn't help either. I'm fairly new to web services. I tried replacing the custom object parameter with a primitive parameter just to check how things worked and it rendered a page with an input field and invoke button. I just can't seem to get it working with custom object. Help!
Hey,
I'm developing an blog using ASP.NET, and I want that the user can be able to add comments.
So I want to implement the idea of facebook on adding comments.
The comment will be stored in the database, so I will be able to load it with the page if the user goes to another web page.
You have any idea how can I do this thing ( Ajax, Javascript, jQuery, Ajax Toolkit ) ?
Is there an add-in for the VSIDE that allows you to visually construct ASP.NET MVC solutions? Back in my struts days there were a number of options that made hooking together Views/Models/Controllers easy and interactive.
Is it possible to convert Xaml into a .Net Compact Framework UI (dll, exe, etc...)? In fact any XML based representation would be nice (QT, GTK, etc...).
Hi,
I am creating an ASP.NET custom control.
I want to set the body onload event of the ASPX page where the control resides.
Please note I cannot rely on the body tag in the ASPX page having runat="server".
any ideas??
Cheers.
Greetings,
I have an asp.net mvc application. When button is clicked (submit button) i would like to results to be displayed inside some div. I know how to do it. I have some action where I return a partial view. But when button is submitted then I get some multiple objects from db and I would like to display them all in div. How can I achieve it?
I have a pretty slick website and I wanted to add a simple blog system to it, without too much work. I've looked into a few blog systems, but none of them seem to be simple almost control like systems.
So anyone have any recommendations for a simple asp.net blog engine?
I have tried both the .net FileUpload control and the ajax Asyncfileuploadcontrol to upload a file less than 500kb.
It seems that when I tried to go through my wireless router (att.bellsouth) that the uploads always fail, however when I plug my droid into my laptop and use my pda connection it works perfectly fine.
I'm wondering if the network connection from my house to my server could be causing this issue, and if anyone had any solutions to this problem. Tomorrow I'm going to try and upload from other networks and pray it works.
I am using VS2008 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use svn checkout commands to insert data into a folder, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2008 build-in ASP.NET Development Server(http://localhost:2999/MyServices/MyServices.asmx). but when I use IIS normal URL(http://developer/MyServices/MyServices.asmx) to run Process.Start on the web service, it just haunlted and not doing anything.plz send one sample program.
Hello,
I'd like to start with TDD in ASP.NET NVC. Getting links pointing me to some ressources for absolute beginners on that matter would be helpfull. (why, when, how to write tests).
Also, some advices on how to tackle the subject are welcomed.
Thanks for helping
First let me thank you all for your help.
What I need is a function that takes in a EPOCH time stamp, like 1452.235687 and converts it to a readable timestamp like '01-01-1970 00:00:00'. More specifically I only need the time not the date.
If at all possible I would prefer a .NET function instead of a SQL stored procedure. However an SQL stored procedure would work fine as well.
Thank you again,
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
I'm looking at creating a simple URL shortening service for our corporate intranet, and I'm curious if anyone knows if there's a maximum length for URLs returned by ASP.NET's Response.Redirect method?