Hi folks,
i have a simple xml file in a wcf service that i am trying to load using Xelement.Load("sample.xml") which is not reading the file. What's the right way of doing this?
The service is supposed to return an xml to an asp.net application.
TIA
I am using Entity Frameowrk 4.0 and I am calling a stored procedure which returns an ObjectResult and I tried to use MOQ and have not been able to mock ObjectResult. Has anybody been able to mock ObjectResult using moq?
TIA
Yaz
I've currently got a ASP.NET MVC 2 application on .NET 3.5 and I want to migrate it over to the new .NET 4.0 with Visual Studio 2010.
Reason being that it's always good to stay on top of these things - plus I really like the new automatic encoding with <%: %> and clean web.config :-)
So, does anyone have any experience they could share? Looking for gotchas and the likes.
I guess this could also apply to any ASP.NET Forms projects aswell.
TIA,
Charles
Hi.
I am trying to write an NSData object to a directory like so;
[myData writeToFile:[NSString stringWithFormat:@"%@/%@.txt", path, filename] atomically:YES];
I receive no errors or warnings but I am assuming the write fails because the path variable has the format of afp://10.0.0.20/username/Desktop. I am connected to the networked share.
Do I need to modify the string or take a different approach here?
TIA,
Ricky.
I want to add a external third party jar file in the inbuilt android app.
I've added the LOCAL_CLASSPATH variable in Android.mk due to which the compilation goes fine. But during runtime, it is not able to find the class definiation which is in the JAR.
Which is the variable I need to set to add the third party JARs in the .dex/.apk ?
TIA.
I created a Web Application called testwebapp and then a site collection (testsite). When I try siteCollection = new SPSite("http://localhost"); in Visual Studio 2008 it throws an error Web Application is not found. Of course, the localhost works in IE and I don't know why testwebapp doesn't work. Any ideas? TIA!
David
hi, all
Is there anyway to ask Fuzzy Finder plugin for VIM search subdirectory as well? It appears to me that no matter what mode I am in, it either search current directory, or I have to be explicit on subdirectory name for it to dive in.
Another plugin folks here mentioned in fuzzy finder textmate plugin. Unfortunately, this plugin doesn't work with current version of vim-fuzzy finder, or so it appears to me.
Any suggestions?
TIA
Oliver
We have been happily creating automated FAULTY backups of SVN repositories!!
It turns out that we were not backing up the file 'format' in each of the repositories.
Is there a way of recreating the file (and hence our repository and history)
I think (hope!) that this is the only file missing.
TIA
Ivan Vernot
Hi folks,
what's the proper way to display an image stored in sqlserver database as an varbinary(max) datatype in CrystalReports for .NET?
I have added a 'blobfieldobject' item in crystal reports & it is bound to a datatable with the column of type 'varbinary(max)' but the image won't show up instead a dark background is diplayed.
TIA
I have a combobox which i am binding to a sortedDictionary list, so it displays in ascending order. My question is, I need to display "--Select--" as the first option. Is there any way to either:
1) add another item besides for the datasource
or
2) add an unsorted item to the top of the sortedDictionary
any other ideas welcome as well :)
TIA
I've currently got a ASP.NET MVC 2 application on .NET 3.5 and I want to migrate it over to the new .NET 4.0 with Visual Studio 2010.
Reason being that it's always good to stay on top of these things - plus I really like the new automatic encoding with <%: %> and clean web.config :-)
So, does anyone have any experience they could share? Looking for gotchas and the likes.
I guess this could also apply to any ASP.NET Forms projects aswell.
TIA,
Charles
Hi, I'm going to build a web app. I need some CMS that can be integrated with ASP.NET MVC.
The possible solution list is:
1) Oxite
2) MVC CMS
3) AtomSite
4) N2.
Sorry for obvious question, but can the DotNetNuke be used with ASP.NET MVC? TIA
If I do a query (I plan to use SDS.P) against the global catalog, what should the starting path be so I can search the entire GC?
I want to enumerate all users in GC, for example.
Let's say my gc has users for 3 domains (one parent, two children):
TEST.COM
ONE.TEST.COM
TWO.TEST.COM
and i'm on a computer in ONE.TEST.COM. I do not want to hardcode DC=XXX,DC=yyy, I would like to determine that at runtime.
TIA!
-Will
Hi folks,
In SQL Server 2008, how do i update fields in a table only if their values differ with the values in the update statement ?
For ex:
I have TableA with column FirstName whose value is 'Roger Moore' with an unique id of '007'.
Now, i am calling an update statement but it should update the 'FirstName' field only if value is something else other than 'Roger Moore'.
TIA
Hi folks,
When calculating a golf handicap differential you are supposed to truncate the answer to 1 decimal place without rounding. No idea why but...
I know how to do this using TRUNCATE() in mySQL
SELECT TRUNCATE( 2.365, 1 );
// outputs 2.3
but I was wondering if sprintf() could do this? The only way I know to work with decimal places in a float is ...
echo sprintf("%.1f", 2.365);
// outputs 2.4
TIA
JG
Hi folks,
I have a query that takes too long to respond when the search parameter happens to be a varchar datatype with date. However, if i convert varchar to datetime variable, the query runs fine.
For ex:
This takes too long.
select count(id) from names
where updateddate '1/5/2010'
This runs fine.
declare @dateparam datetime
set @dateparam = convert(datetime, '1/5/2010',102)
select count(id) from names
where updateddate @dateparam
What's the reason one runs fine but the other doesn't?
TIA
I have a System.Windows.Forms.Webbrowser control hosted in a Winforms app and am loading up a html document that has various elements with the contentEditable attribute set to true. How do I enable multi-level undo and redo for the document?
TIA.
MB
I want to use WatiN with IE in a parallel setting, i.e. work with dozens/hundreds of pages at once. I've tried sticking it into a Parallel.For loop only to see the whole thing crash, so I'm thinking opening multiple tabs in the browser is the way to go. Can someone suggest how this can be done using WatiN (or just some IE-related API) or whether there's a better way? TIA!
I'm using perl cron, and I want to make a rule like this
run every xx min/hours starting at yy:yy time (until the end of time)
How would I put this into a cron string? perl:cron seems to use the same syntax as regular cron so a regular cron string should work
TIA!
Hello all, I am looking for a way to permanently delete a MailMessage from Outlook 2000 with VBA code. I'd like to do this without having to do a second loop to empty the Deleted items.
Essentially, I am looking for a code equivalent to the UI method of clicking a message and hitting SHIFT+DELETE.
Is there such a thing?
TIA!
I have a table (innodb) that will have billions of records eventually. Every 2nd week I expect ~ 500K records to get dropped into the table. I would want to partition this table based on the date on which the data is imported - luckily this is a field in the table that is of the format yyyy-mm-dd - Is it possible to partition it based on this date column ? I tried looking at the 18th chapter of mysql docs but couldn't figure out if this is possible.
-tia
Hello folks,
as a developer,i am constantly on the look out for new productivity tools for UI development like this Ten Must Have Tools list from Microsoft.
While i use these, what are some of the newer tools that's a must have?
TIA