Dmitriyy's Q&A profile
Windows Forms Click Once: Creating .appref-ms manually is not valid
Hello All, To get around firefox we are sending firefox users .appref-ms files. This is fine. For security reasons the application URL is pointed to a Download.ashx ... allowing dynamic creation and removal of the application for the authenticated user. This all works fine in IE For firefox of course .application extensions don't work because fire wont let you run the .application extension from its real location. Hence the .appref-ms approch. Again this works fine if the .appref-ms is copied from the start menu and sent to someone or downloaded but it appears there are some undocumented elements in the .appref-ms process. Creating a text file with content http://localhost/downloads.ashx user=AB2F11B1B5E96100E3EE1F247EE ...Show All
Visual C# Interface & Class Discrepancy with Java
Discrepancy with Java In java if I have interface with 5 methods & if I am not interested to override all the 5 methods then I can create an abstract class and I can implement only few methods. Later I can inherit the abstract class to my original class to override those abstract methods. This is the simple way to use the required function from the interface. When I tried the same logic with C# or J# it doesn’t work. I declared a class as abstract and avoid to implement few methods it throwing a compiler error. &n ...Show All
Visual Studio 2008 (Pre-release) WPF Application Caching
Hi, I am looking for a way to cache data in a WPF application. The process works like this: I make a call to a web service, and retrieve customer information. I want to be able to store this information at the application level so that the user has the option of retrieving it from the cache, rather than having to call the web service each time. Before calling the web service, I want to be able to check the cache to see if the information exists. If it does, the information is retrieved from the cache. If it doesn't, then the new infomation is added. I was thinking of doing this using a Dictionary or Hashtable, but I'm not sure how to make this object available at the application scope. Is this a good approach, or is there a ...Show All
.NET Development Going crazy updating database
I'm about to go crazy about this. I have a database with a couple of tables. I have inserted all tables into a dataset. The data is modified partially by databound fields and partially by manual adding/deletion/modifying. The problems come when i try to transfer dataset to database. I have tried a shitload of different ways but it won't work. This last time i tried OleDbCommandBuilder mybuilder = new OleDbCommandBuilder(MyAdapter); MyConnection.Open(); DataSet ch = MyDataSet.GetChanges(); MyAdapter.Update(ch, "Currencies"); MyConnection.Close(); where Currencies is a table in my database. I have also tried OleDbCommandBuilder mybuilder = new OleDbCommandBuilder(MyAdapter); MyConnect ...Show All
Visual Studio Express Editions How do I add page numbers to a group set in the Report Viewer Control?
Hello, I've managed to add page numbers to my report viewer control, and when I run the report, the page number shows up as 1 of 120. However, In my report there are groups of pages. So what I am looking for is for my report to show page 1 of 5, then the next set would show, page 1 of 8 etc. for each group. Is this possible Here is the code that I currently have in a text box field listed in the footer of my report viewer... =Globals.PageNumber & " of " & Globals.PageNumber Thanks in advance. The ReportItems!text1.value is the textbox in the body that contains the grouping expression. The (grouping) line is just telling you this. Drop this and it should work. Make sure ...Show All
SQL Server Interactive sorting & Asyncrendering = "false" doesnt work
Hi, I am using report viewer 2005 control to display remote reports which contain interactive sorting. I have observed that when Asynrendering = true, sorting works and when it is false, sorting just reloads the unchanged report again. Is this a known issue with report viewer control Any work around for it I do want to use Asynrendering=true as it gives me ASP Session expired error on web server. TIA Tanmaya ...Show All
Visual Studio 2008 (Pre-release) Dependency Property's
this is a follow up post about my problems with custom controls. essentially i am creating a graph custom control, however the graph must display any number of lines, consequently i cannot say (in generic.xaml) <Canvas> <Polyline.............../> <Polyline.............../> <Polyline.............../> ................... </Canvas> because i never know how many lines to create. this means that i need to change my CS code to allow for any number of lines. this will mean i have a situation whereby either the company who uses this software can say <lineChart......................> <linePoints................/> <linePoints................/> <linePoints................/> ....... ...Show All
Internet Explorer Development Auto Complete Problem with IE6
Dear All For some reason I seemed to have lost Auto Complete in my IE6 I've carried out the following:- "Tools" - "Internet Options" - "Content" - "Auto Complete" - "Ticked all the Boxes" - and still nothing, I have recently uninstalled IE7 could this be the problem, what can I do Regards ...Show All
Smart Device Development deploy with the .exe file
I have finished an application with c# .net cf 2.0 And I build it with the setting is "release" "any cpu", then I send the application's .exe to my user, and the exe file be in the application\bin\release . the user's handset is windows mobile 5 handset. Can the .exe run at the user's handset Is it right of my deploy way Please tell me, Thank you hi CBuilder yes, I will create the cab file. when I deploy my software to a phone which has windows mobile 5, should I add the .net cf 2.0 to my cab project Thank you ...Show All
Visual Studio Trying to create a NEW DATABASE Project - but the word "database" doesn't show
Hello and Thank you for you support Within Visual Studio 2005 IDE, I've been trying to create a new VB.NET "database project", but when I expand the Visual Basic node, the only items that show up are ==> Windows and the Starter Kit items. I don't see anything for Database How can I create a new "Database Project" when I cannot see the database item showing up in my "new project" list Is it a configuration setting I am using the "General Configuation Settings", and changed it to Visual Basic Configuration setting , but that didn't make any difference. Please and thank you for any advice on this. Donna ! Unfortunately this is not something ...Show All
.NET Development Detecting a router's external IP
Hello everybody, I'm just getting started in the realm of networking w/ the .NET framework. I'm coding my app in C#, it's just a simple command line server that will listen for commands from an external client. Right now, I'm just trying to get the server, when started, to print out the local machine's IP. However, I want it to print out the address as seen by computers not on my network. So, instead of 192.168.1.XXX, I want it to give me what a website like http://whatismyipaddress.com/ would return. Thanks in advance! If you have a web server yourself, the easiest way for one of your programs to get its WAN IP address is to do what Aymaneez suggests, but to load the address from your own web server. The ...Show All
Smart Device Development is it possible to copy an already installed certificate?
Hello, I was wondering if it's possible to copy a certificate in one of the store of the device. If so, how Regards I mean I would like to know if it's possible to replicate completely a certificate in one of the device store I'm just affraid that hackers may be able to do that to run their programs on our devices or using our program on their device. ...Show All
Visual Studio 2008 (Pre-release) Memory Issues
Hi everyone!!! I have develop a service the acts as a bussiness layer, I never noticed that it consumes a large memory amount, but I was testing with a little concurrent client number (12) not too much, well 2 o 3 hours later I have seen one of my nightmares comes true: the service process grown up to 900MB!!! Yes belive me!! Well first at all I think: "I'm really a bad programmer and I'm not using well the Framework, let's review the code", I found 2 or 3 issues but nothing critical, then I tried again and guess what The same result, I was investgating the memory issues debugging with windbg and I noticed that no a lot of objects where maked to get collected, specially wcf related objects, and well the GC is working but real ...Show All
Visual Studio Team System Configuration of TFS
IS there documentation about best practices or suggestions about how best to configure TFS for a particular development environment. What I am referring to here is a discussion about the use of Team Projects, Areas, and the likes and thigns to consider. For example at my compnay we have a TFS installed and will be used by three departments. Each department has about 5 applications that will be managed with TFS and we are wondering what the best approach is. Is each department a Team Project or is each application regardless of department a Team Project. Questions like this. Thank you Jim - There are many factors that determine when to create new projects. I would suggest that you check out these docs about projects. http:// ...Show All
SQL Server Importing Excel "Reports"
I'm trying to import data which from Excel which has been "prettied up" to make it readable to users. The report has a fixed number of columns and the data itself is well structured, but there are blank lines etc. The problem I'm having is unless the first row of the spreadsheet contains or headers, SSIS fails with error "External table is not in the expected format." and the exception below is thrown. So I thought I'd be clever and create a template spreadsheet with the same number of columns and set the first row to strings - I made all columns DT_WSTR thinking I could extract the numeric and datetime data from the actual rows which contain data and convert using a script. But SSIS simply ignores the numeric ...Show All
