Thymen's Q&A profile
Windows Forms ClickOnce Fails with "Value does not fall within the expected range."
I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All
Visual Basic Limit on Events??
I'm trying to setup events in a Sudoku game and some of then keep dissapearing. some subs have 81 events for 81 boxes but the ones I am having trouble with only have 9 each in 9 boxes like so Private Sub Row_3(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles c9.TextChanged, c8.TextChanged, c7.TextChanged, _ b9.TextChanged, b8.TextChanged, b7.TextChanged, _ a9.TextChanged, a8.TextChanged, a7.TextChanged Private Sub Row_2(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles c6.TextChanged, c5.TextChanged, c4.TextChanged, _ b6.TextChanged, b5.TextChanged, b4.TextChanged, _ a6.TextChanged, a5.TextChanged, a4.TextChanged Private Sub Row_1(ByVal sender As System.Object, ByVal e As System.Event ...Show All
Visual C# how to use switch to judge range values
How to use switch to judge range values like if(a>10&&a=15) ... if(a>15&&a<20) .... how to change if statement above to switch statement Hi You can also use Ternary operator to minimze your code like ((a>10) && (a > 5)) "True" : " False"; "True" means the stamente here will be executed when the condition is true other wise the staments in False will be executed. ...Show All
Visual Studio 2008 (Pre-release) Hosting WCF Service in IIS ( X509 Keyset does not exist)
Hi, I host my service in IIS ( machine running XP ) and try it : http://localhost/RentSoftware/Rentsoftware.svc I receive this error : CryptographicException: Keyset does not exist System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) +1460764 System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle) +55 System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair() +79 System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize) +291 System. ...Show All
Smart Device Development new e-mail notification
Hi, is there a way to receive a callback to my application whenever a new incoming mail is received to the windows mobile (CE)'s inbox in outlook or other mail client application thanks, Ofer. You can catch incoming SMS messages in WM2003 http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/ReceivingSMSMessages.asp ...Show All
.NET Development DataColumn.Expression Property
Below is an example from the .NET Class Lib. My question is about the lines of code using expression = " " They always reference another column in the table. How do you reference another variable in your code. For example: I want to call my function mySUM(x,y) that sums two numbers instead of using the line below that I marked. DataTable table = new DataTable (); // Create the first column. DataColumn priceColumn = new DataColumn(); priceColumn.DataType = System.Type.GetType("System.Decimal"); priceColumn.ColumnName = "price"; priceColumn.DefaultValue = 50; // Create the second, calculate ...Show All
.NET Development Error while trying to debug
Hi I am having trouble in visual studio 2003. i am getting a message when i try to debug an asp project i am doing which says "Error while trying to run project: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the internet zone." I tried right clicking on my computer > manage and setting the permission for myself but nothing happened. The laptop i am working on is mine with me as the administrator. I can launch the project in the internal browser but i cannot debug or launch in internet explorer 7 I found the solution and the trouble was with intenet explorer 7. What i had to do was that to right click on the f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. lame....
Well....finally downloaded it about 30 min ago and all its good for is making u mad.....doesnt know how to do anything but crash.....biggest disappointment ever. i know i was dealing with that a**hole........anyways......i cant run spacewars for example..if i run it with debugging it says nosuitablegraphicsdevice which i dont understand cause im pretty sure my graphics card supports shader model 2 or whatever.....and if i run without debugging it just says spacewars has encountered an error.... ...Show All
SQL Server Currency formatting: how to change to use another locale... or is US format hard coded?
How to I change the formatting of my currency based members according to the actual currency that they are defined in rather than the default US format (in my case GBP). FYI: Direct link to answer: http://sqljunkies.com/WebLog/mosha/archive/2005/10/13/mdx_format_currency.aspx Am I right in thinking that I should create a Script Command in the Calculuations tab to set the appropriate languages for my measures eg: Language ([Measures].[GBPEQUIV-SENSITIVIES]) = 2057; Language ([Measures].[GBPEQUIV-STRESS]) = 2057; BTW: I also changed the server locale to English-UK to get a default setting. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Exception throw by GraphicsAdaptor???
Hi, I am getting a weird exception throw from 4 PCs that have the XNA 1.0 redist installed. I have a development PC that is executing the game perfectly, but the other 4 PCs (Windows 2003, Vista and XP SP2 based) throw this exception: The type initializer for 'Microsoft.Xna.Framework.Graphics.GraphicsAdapter' threw an exception. Is anybody else having this problem The project I am distributing is just a WindowsGame project, unaltered. Peter D. wrote: do these machines have .net 2.0 installed as well as the xna redist All of them do. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How similar is this to DirectX?
I started Windows programing two days ago...but I'm used to programming on other systems. Anyways, the lack of docunation for the xna framework sucks and I was wondering how similar it is to another doc so I can work with that Could I be able to read tutorials online dealing with DirectX and apply them to XNA Managed DirectX wasn't always quite as .Net like as some of us would have liked but thsi actually helped becuase the API was very similar in places to native DirectX so it wasn't too hard to follow c++ code. However XNA has made big changes to simplify and and make more .Net like which means that, though the priciples are the same, the APIs look very different in places. So there may be confusion ...Show All
Visual Studio Help I cant out/input
I have visual studio 2005 and i cant ourput or input anything. I tried ::std and namesapce and regular cout << doesnt work, can any of you help me ! ! #include <iostream> int main (){ cout << "hello"; } errors: error C2065: 'cout' : undeclared identifier I know you said that you already tried namespace, but with the code you have above you left out the namespace, and it will always throw up 'cout' : undeclared identifier. It is meant to be: #include <iostream> using namespace std; int main() { cout << "hello" << endl; return 0; } Or you could just access the input and output buffers using ReadFile and WriteFile. #include <windows.h& ...Show All
Visual Basic cannot start application
hi when i publish my VB application via remot server , i get the followin message : cannot start application , check your network connection or contact your system administrator or network service provider , i get the following errors page: + Downloading http://www.pmlearn.com/pmp1/EXAM1TRY.application did not succeed. + The remote server returned an error: (406) Not Acceptable. COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected. WARNINGS There were no warnings during this operation. OPERATION PROGRESS STATUS * [8/27/2006 8:10:25 AM] : Activation of http://www.pmlearn.com/pmp1/EXAM1TRY.application has started. ERROR DETAILS Following errors were detected during this operation. * [8/27/2006 8:10 ...Show All
Visual C++ DDK functions link error (error LNK2019: unresolved external symbol )
Hello. I have new other link errors due to probably ddk functions... Please see below the link errors. I made sure that files containing the declarations are included in the project, but no definitions in the project because they are ddk functions. Also, I included <ntddk.h> and <header_file_having_declarations.h> in the file and set the path in Additional Include Directories as well as Additional Library Directories. What is problem I hope your help... Thank you. System Environment: Windows XP Prof. SP2 MS Visual Studio 2005 Errors: A few Warnings... ... Compiling resources... Linking... Detect.obj : error LNK2019: unresolved external symbol __imp__ZwClo ...Show All
Visual Studio 2008 (Pre-release) Initial call to web service is slow
Hello, I have a WSE 3.0 ASMX Web service that runs on the same machine as the clients. When the client calls a method in the web service for the very first time, the response time is very slow. Almost 7 seconds. Subsequent calls to the web service are extremely fast. Just under a 1/2 second. I feel as though this is because the web service is getting initialized in IIS What actually is occuring here Would there be a way to, perhaps, waken the web service while the computer is booting, or shortly thereafter Any help would be greatly appreciated! -Mat we try to JIT compile managed code on very first request,we may be taking more time for JIT compilation,after first request,we will try to use ...Show All
