I thought the crossdomain xml files had to be at the root of the site?
Ian McCaul
Posts
-
Web Service Method Call Fails -
Using Sharepoint Object Model in Visual Studio Windows ServiceThis is not true. SharePoint web applications can be set to use any available port. 80 is the default, but you can create web applications and site collections on different ports as well. When constructing the SPSite object then you need to specify the correct url (with port unless its 80 then you dont need to include the port). The problem I think the user is facing is he is not compiling as 'Any CPU', I have also seen this happen when UAC is turned on and you dont run VS as Admin.
-
How to implement gmail like video chat in asp.net.Off the top of my head I dont believe there is anything built into asp.net that will do this. However if your interested Silverlight 4 will have this functionality and it should be out in the next couple of months.
-
where are SQL server database files located?First and foremost. Never add tables to the master database. Create a new database and add it there. For express the default data location is usually C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data. Also, you cannot see specific tables in Windows Explorer, only the databases.
-
Failed to create the configuration databaseThis looks like it is possibly a permission issue. Make sure the account you are running this as has local admin rights on the server and that the account you use to connect to SQL server has db creator rights.
-
Access WMP Playlist without WMP Player [modified]Does anyone know how to access a media player playlist and its songs without having to instantiate the AxWindowsMediaPlayer? [EDIT] I am aware of the wpl location and parse the xml, but doesnt help with the auto playlists.
modified on Tuesday, September 1, 2009 5:19 PM
-
Using two or more Where in a query in EFTry this
var docs = Documents.Where(c=>c.Title.Contains("string") || c.Subject.Contains("string"));
-
SCSF Smart Client application takes time to loadSCSF uses reflection very heavily. Because of this reason performance is hit when trying to do what would seem the simplest of things. It is a very heavy framework and unless you really need it and are concerned about performance I would suggest an alternative.
-
How to copy assembly from GAC to local drive ?Yes through the command prompt.
-
Dynamically Creating WebServicesThe CodeDom will allow you to compile the code into an assembly, that assembly should contain the webmethods. What you will need to generate is the asmx or svc file associated with the service, this could be done via a template. The posters approach could work, but it could generate a lot of problems without an accurate code checker on the server. The codedom can generate the necessary code files and those could be stored in the DB to be assembled at any time possibly. I have never used the codedom but I know it has these capabilities. As for System.Web.Host, I have no idea about this as I have never used it.
-
Dynamically Creating WebServicesI am wondering maybe using CodeDom to create the web service assembly and then creating the svc file. Then it would need to be posted to iis?? Just a quick thought I had about this subject the other day actually. I maybe wrong but this could possibly be an approach.
-
How to Change ConnectionString to an "ADO.NET Entity Data Model" at runtimeI believe this can be done in the constructor of the context when its used. Take a look ObjectContext Constructor[^]
-
How to make sure that collection doesn't contain a particular element?Ahh, ok try this
var items =
from c in collection
where ?? && ??
select c; -
How to make sure that collection doesn't contain a particular element?!CollectionName.Contains(object);
-
Cannot Edit DataGridView when bound to custom LINQ queryThe DataGridView will be in ReadOnly mode when you use anonymous types. So what I recommend is defining only those 2 columns in the DataGridView and set AutoGenerateColumns to false and go ahead and use select p;
-
join query with group and conditionTry this.
var sumEDA =
from a in context.accounts
join ed in context.entriesdetail on a.Acode equals ed.acode
join e in context.entries on ed.eid equals e.eid
where e.edate > Convert.ToDateTime("1/1/2009")
group g by ed.acode
select new { g.Sum(ed.EDAmount) }; -
To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiakpath = directory + @"\something.bat";
StreamWriter sw = System.IO.File.CreateText(path); -
Stored Procedures or queriesPerformance wise stored procedures will usually have the best performance because its query is actually being ran on the database server, as opposed to linq where the query is ran on the client.
-
Query from using a ListYou may just be able to do a .Contains() i.e.:
List[int] matchingParams = GetMatchingParams();
MyDataTable data = GetMyDataTable(); //Has an integer column we want to match to, lets call it intMatch
var results = from rows in data
where matchingParams.Contains(rows.intMatch)
select rows; -
Linq query to get all the recordsFrom what I can see there is nothing wrong with that statement. You should be getting all records. Are you sure the GridView isnt within a fixed height table/div? Once the gridview fills with rows it may be rolling off the bottom of the table/div and is basically being trimmed.