teemuh's Q&A profile
Visual Basic VB
Hi, I want to use vb to save a file which I have downloaded using a http request, however it keeps confusing the characters chr(0) and chr(32) how do i stop this or is there a better way to use the 'put' statement to avoid this Thanks in advance Rob ah! VB question should be posted here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us these forums are for VB.NET - I would also suggest upgrading if possible ;-) ...Show All
Visual Studio 2008 (Pre-release) Morphing headers to claims
I have a web site that accesses (via WCF) a content provider web service. The web site is behind a Unix-based portal that adds a number of "X-Blah" headers to the HTTP request. The headers contain identity and role data to be forwarded to the content provider web service as SAML claims. Is there an example of a WCF local issuer STS that could be modified / extended to map the "interesting" X-Blah headers into SAML claims that are forwarded to the content provider service Thanks I have an example that has an STS in it here: http://www.dasblonde.net/PermaLink,guid,0de3e38e-a516-4a33-a85d-3027a505f7b8.aspx At the MediaServicesFederation sample. You will have to pull out the ...Show All
Visual Studio Team System Updating default 'MSF for Agile' banner on project home page
Hi all, I am attempting to update the banner on my TFS Project Portal Home Page. I have successfully customized the project template to our requirements but would like to update the home page banner. Note I am not trying to update the banners displayed on the Process Guidance pages, but the banner on the project Home page. I have already made a number of changes to the default SPS Site, saved it as a template and loaded this new template so it is used with my new project template. I expected to be able to also do this with Frontpage simply by uploading some new images, however when I attempt to upload the new gif files into the sites 'images' directory I get the following error: 'Server error: The Web site that is referenced ...Show All
SQL Server how to: render faster when exporting a file to pdf?
hello everyone, I have a report with 8800+ pages. when i export the file as a pdf it takes 1. a lot of time 2. When the file gets saved it is corrupt and there is no data. How do i get the above situation solved. any suggestions. (I am using reporting services default rendering mechanisms available.) schedule it to run late at night when no one is on the server. I have observed the following. I have a report with tons of data and tons of subreports. I recommended the client not develop this report, that we do it a different, way, after the report was developed, it took 20 minutes to run, however, when scheduled it takes 1 minute. I suspect, again suspect, that more memory and cpu is allocated to scheduled tasks vs ones that are run b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 360 question.
So far with all ive read i just have one question. When we get the pro version and i make my whole game using 3d files in the .swm format wioll i just be able to open the project in XNA pro and basically play it on the 360 or will i have to redo alot of my code with the pro version Of course - be aware, this is Beta code, you cannot assume that anything will stay the same througout the beta process. Because this is being developed right now, the next update could behave differently or certain classes or methods could change their names. But as far as, when you develop your game for Express (post release) and then upgrade to Pro (post release) there should be few changes that you have to make. ...Show All
SQL Server Generic calculated measure
Hi I have to create a calculated measure which is applicable for 16 measures. How can i specify it in a generic manner for eg: create member currentcube.ytd as sum(ytd(),[measures].[sales units]; here my scenario requires the calculation of YTD for many other measures also other than sales units so can i have something instead of [measures].[units], so that it will be generic. Thanks in advance. The standard SSAS Time Intelligence enhancements provide this type of capability: http://msdn2.microsoft.com/en-us/library/ms175440.aspx >> SQL Server 2005 Books Online Defining Time Intelligence Calculations using the Business Intelligence Wizard T ...Show All
Visual C# hi,
I am not able to kill a process running on a remote machine where i am a administrator. also i am not able to view the name of the process running on a remote machine. error: Feature is not supported (when i am attempt to kill a process) ConnectionOptions options = new ConnectionOptions(); options.Username = "userid"; options.Password = "pwd"; ObjectGetOptions opt = new ObjectGetOptions(); ManagementPath path = new ManagementPath(" \\\\remote m/c name\\root\\cimv2:Win32_Process "); //Make a connection to a remote computer using these options ManagementScope scope = new ManagementScope(path); scope.Connect(); ManagementClass processClass = new ManagementClass(scope,path,opt); Ma ...Show All
.NET Development DCOM got error "RPC server unavailable"
Hi, I got the above error on the client when I tried to invoke a COM+ enterprise service on the server. I checked the RPC service is started. I could ping the server with out issues. Any idea Try going to the remote machine and seeing if RPC is being allowed through the firewall. I've had a lot of problems in the past where the firewall was getting in the way of my DCOM calls. As test I usually temporarily disable the firewall just to get it out of the equation. ...Show All
.NET Development System.Transactions issue
I have been trying to run the following piece of code : using ( TransactionScope txRequest = new TransactionScope ( TransactionScopeOption .Required)) { using ( SqlConnection conn1 = new SqlConnection ( "Data Source=XXXX;Initial Catalog=ULTIPRO_USG;uid=dev;pwd=pass;" )) { conn1.Open(); } using ( SqlConnection conn2 = new SqlConnection ( "Data Source=XXXX;Initial Catalog=ULTIPRO_USG;uid=dev;pwd=pass;" )) { conn2.Open(); } } The SQL server 2005 is in a different machine. Due to the fact that there is a second connection inside the transactionscope DTC is necessary and is enabled for Network Access on both machines. Whenever we run this piece of code we are ab ...Show All
SharePoint Products and Technologies Site Template Query
Hi, I am new to SharePoint Technologies. I have a very basic question about templates. Say we select a template and create a site. When we want to create sub sites, the template list becomes subset (reduced options) as compared to the original set. E.g if I create a Publish Portal (Either Internet facing or Intranet) and then want to create a subsite like say Wiki or Blog under it I will not be able to as the only option that will be available is Publishing Site with WorkFlow. I am sure this will not be an unusual requirement. May be my undertstanding is wrong/missing something. Can somebody enlighten me with the right concept or give right pointers Thanks in advance Regards Shyla You should b ...Show All
Visual Basic Array of Buttons
I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. Here's a mod to the previous code that demonstrates the AddHandler: p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;font-size:11.0pt;font-family:'Calibri","sans-serif';} .MsoChpDefault {;} .MsoPapDefault {margin-bottom:10.0pt;line-height:115%;} @page Section1 {size:8.5in 11.0in;margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} Dim modelbuttons(4, 4) As Button Dim row As Integer = 1 Dim column As Integer = 1 Private ...Show All
Windows Search Technologies Windows 2003 Indexing Service Custom Properties (PDF Files)
Greetings, I am using DSOFile obj to save/retrieve custom file property (MyCustomProperty) information to PDF files (Works Great!) I’d like to now include the MyCustomProperty to MS Index Service Catalog… I changed the following reg setting as follows… [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\MyIndex\Properties] "B725F130-47EF-101A-A5F1-02608C9EEBAB MyCustomProperty"="31,128,1,1" Then Stopped MIS and deleted the catalog files and restarted MIS… When you view the property list from MMC the MyCustomPropery doesn’t show up… Is this not possible I thought MIS was able to accept Custom Properties… What am I doing wrong ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What does creators club include right now?
I'm a little puzzled about what the creators club actually includes, I've checked the FAQs and can't really find an answer. I have however managed to find the following: "The XNA Creators Club is available on Xbox LiveR Marketplace for $49 (U.S.) for a four-month subscription, or $99 (U.S.) for an annual subscription. Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." I signed up for a year because it sounds like quite a good package, however there seems to be no information provided on ...Show All
Smart Device Development SQL Ex ,Data conversion failed. [ OLE DB status value (if known) = 2 ] ?
public void CreateOrderRow(int productid, int quantity) { string identity = "@@identity"; conn = new SqlCeConnection(connstring); cmd = conn.CreateCommand(); cmd.CommandType = System.Data.CommandType.Text; cmd.CommandText = "insert into orderrow (Productid,Orderid,Quantity)values('" + productid + "','" + identity + "','" + quantity + "')"; try { conn.Open(); cmd.ExecuteNonQuery(); } catch (SqlCeException ex) { throw ex; } finally { finallymethod(); } When using this question i get an exception saying: [ OLE DB status value (if known) = 2 ] What is this My b ...Show All
Visual C++ Enabling Low Fragmentation Heap fails with GetLastError()=31
Sorry, another novel here. I'm writing a templated collection class that stores objects by string index as a potentially very wide and deep tree representing all the characters used in all the indices. The class is a rework of one I already have in my project that has been a candidate for optimisation for a while now, and now it's essential because of a significant increase in load through my app. The main problem will be that one of these trees is going to be grown and pruned across a wide range of indices on a very fast basis - probably up to 100-200 times a second at the normal rate of activity, whilst in highly volatile conditions it could go up to 500 or 600 times a second. I ran tests of my original code against std::hash_map ...Show All
