Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

EnkelIk

@EnkelIk
About
Posts
97
Topics
53
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error 5151 creating Word document
    E EnkelIk

    After placing a number of printouts down in the class using the Word.Application objekt I found out that the error occured doing Documents.Add(@"\\path\OurTemplate"), there seems to be some filetype association missing on the server which is in place on the other servers where the same code works fine. Changing to Documents.Add(@"\\path\OurTemplate.dot"), i.e. explicitly specifying the file suffix solved the problem. Why the suffix was not supplier from the begining I can't say - this code was written long before my time here...

    C / C++ / MFC help c++ sysadmin windows-admin question

  • Error 5151 creating Word document
    E EnkelIk

    By the way - the application can create and open Excel-documents without problems on the same server and the application is run interactively by a logged on user. The error occurs no matter whether the user has administrator rights or just "normal" user rights to the server.

    modified on Monday, February 22, 2010 10:11 AM

    C / C++ / MFC help c++ sysadmin windows-admin question

  • Error 5151 creating Word document
    E EnkelIk

    From what I can tell there is no connection to a specific version of Word. The same version of Word is running on the server where I get the error as on my computer and on the other server where I don't get the error...

    C / C++ / MFC help c++ sysadmin windows-admin question

  • Error 5151 creating Word document
    E EnkelIk

    Hello! I have an older C++ application that uses the Word.Application object to create and open a Word document from a template. I have installed my application on a new server running Windows server 2008 (32bit) and now the Word-connection gives me trubble, Word starts an instance but no document is created and I recieve the error: 5151 Word was unable to read this document. It may be corrupt. Try one or more of the following: * Open and Repair the file. * Open the file with the Text Recovery converter. The application works fine when I run it on my computor (XP 32bit) as well as on a Win 2008 64bit server (and various Win 2003 32-bit servers). I think there is some problem when creating and loading the Normal.dotm-file but there is no problem opening the template in Word nor opening the Normal.dotm-file that is created. I tried Repair as well as uninstalling and reinstalling Office 2007. Any ideas? Thanks!

    C / C++ / MFC help c++ sysadmin windows-admin question

  • Visual Studio panel problem
    E EnkelIk

    Ah! You set me on the right track - turns out all the windows were "Tabbed document", setting Find, Output e.t.c. to dockable instead solves my problem. Thanks!

    Visual Studio help csharp visual-studio collaboration question

  • Visual Studio panel problem
    E EnkelIk

    Hi all! A week ago I executed "devenv /ResetUserData" at the command prompt to repair the Build node in Team Explorer. My build node now works but unfortunaly it had some unwanted side effects: In my Visual Studio (2008) I like to keep some windows, like the build Error list and Find symbol result in a smaller panel in the lower left part of the main Visual Studio window, below the bigger code file window. Now for some reason when I start Visual Studio the "Start page" opens in the small panel, no matter if I move it to the bigger upper panel, save all, close down Visual Studio and starts it again - Start page is again in the lower panel. And if I doubble click a file in the find symbol window the file opens in the same panel as the result window (i.e. the lower panel). I can't find where to configure my Visual Studio to make the bigger upper panel the "first" panel to open new windows in. Can anyone help? Naturally if I only have one panel in the left part it all works but then I can't see the error list and the code file at the same time... Thanks EnkelIk

    Visual Studio help csharp visual-studio collaboration question

  • MaskedTextBox mask problem
    E EnkelIk

    Thank you Alan! You've made the day for our whole project team! :-) /Chris

    C# question help

  • MaskedTextBox mask problem
    E EnkelIk

    Hi All! I have a problem that I can't find the solution of: In an application I'm using MaskedTextBox controls for dates (displaying current value and letting user change value). Default language for application is Swedish and mask is 0000-00-00 (for yyyy-MM-dd). This works fine. The application is also to be run in Finnish and then I set the mask to 00.00.0000 (for dd.MM.yyyy), this does not work at all! The mask is correct but for a reason beyond my comprehension in the text-property of the control the "." (dot) is replaced with "," (comma). I have tried to replace the comma, to overwrite the text property and a number of other things but without success. Is the problem that the control interpretes the date as a number and replaces the dot with the NumberGroupSeparator and NumberDecimalSeparator of the MaskedTextBox.Culture? If so how do I get the control so interprete the date as a date? What can I do to make the MaskedTextBox to work with my Finnish dates??? Thanks! Chris

    C# question help

  • Custom principal "replaced" by GenericPrincipal
    E EnkelIk

    Hi all! I just converted a .net 1.1 web project to .net 2.0 and now I'm getting a strange problem: I have a custom class implementing IPrincipal to store the user identity in Context.User, sample code below. After storing the Principal i redirect from the login-page. When I retrieve the Context.User on the next page it is of type GenericPrincipal????? The user information is still there but of course not with my custom methods. I guess I could rewrite the code to use GenericPrinfipal instead, but why does this happen??? It did not happen before the conversion (and as far as I can think of I didn't make any other changes to the code). I use Forms-authentication (using Windows authentication gives me the WindowsPrincipal when retrieving Context.User - i.e. the useridentity of the useraccount running the app, not of the user logged in to the web app). I feel there has to be a logical explanation for this and I am grateful for any help! Thanks! /*******************************/ CustPrincipal newUser = CustPrincipal.ValidateLogin(TxtUsername.Text, TxtPassword.Text); // Create the authentication ticket FormsAuthenticationTicket authTicket = newUser.GetAuthenticationTicket(); // Now encrypt the ticket. string encryptedTicket = FormsAuthentication.Encrypt(authTicket); // Create a cookie and add the encrypted ticket to the // cookie as data. HttpCookie authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket); // Add the cookie to the outgoing cookies collection. Response.Cookies.Add(authCookie); // Add user to context Context.User = newUser; System.Threading.Thread.CurrentPrincipal = newUser; /********************************/

    ASP.NET help question csharp security learning

  • serverside form not responding in IE
    E EnkelIk

    Hi again. Found the answer: the requiredfieldvalidators does not behave correctly in the form on that server in Internet Explorer. Changing them to custom validators solved the problem... Ciao /EnkelIk

    ASP.NET sysadmin question

  • serverside form not responding in IE
    E EnkelIk

    Hi all. I have a page with a server side form (runat=server) that contains one button. When this button is clicked the form changes to display several buttons. When either of these buttons is clicked the form is to be posted and some action taken. This worked fine until recently but I must have changed something because now, when there are several buttons in the form they does not respond to being clicked, when the page is run in Internet Explorer at a particular server. The page still works fine in Firefox (which on the other hand does not support showModalDialog) and it workes fine on my test-webserver in Internet Explorer. When there is only one button it works fine everywhere. Does anyone have a clue to what might cause the form to behave this way? The form has both name and id. Thanks /EnkelIk

    ASP.NET sysadmin question

  • TreeView/ListView item selection and context menu
    E EnkelIk

    Hi all. I have a feeling there is a very simple solution to my problem, but I just can't figure it out. Here goes: I have a form with a treeview (and a listview with the same problem), where I present different items. I have a context menu connected to the view giving the user the option to, for instance, edit or delete the selected item. The problem is that if the user has selected an item and then right clicks on another item and choose to edit, it's the first item that 'opens' to be edited. I would want the right click to FIRST select the item that was being clicked and THEN popping up the context menu so that the user edits or deletes the item that was being right clicked. Any tips? Thanks /EnkelIk

    C# help question

  • Problem inheriting form
    E EnkelIk

    Thanks! That may very well be a solution to some of my problems; I'll try that. I restarted my computer and that helped on the most frustrating thing (the textbox now keeps it's size even after saving and compiling the project), so maybe I just really need to reinstall my computer, but hopefully your tip can solve the other properties being lost (which I have had since I started with the inherited forms). Thanks /EnkelIk

    C# oop help tutorial question

  • Problem inheriting form
    E EnkelIk

    Hello all. I'm having a problem letting one form inherit another. I have a simple wizard implementing the base functionality and then I have a couple of wizards that inherit from the base wizard, where I add the necessary textboxes, comboboxes and so on. I saw it called "Visual inheritance" at one place... At first it worked relatively well but now it is all a mess. My problem is this: if I add for example a textbox to an inherited form in the designer and I change a couple of properties on the textbox (AllowReturn set MultiLine to true, set some default text e.t.c.), I save the form (usually goes well) and then I compile and suddenly the textbox looses all the properties I have set -except for the ID, and moves up to the upper left corner of the form!?! Or I don't compile but I add an eventhandler for some other control, goes into the code and then returns to the designer and KABOOM! The textbox is in the upper left corner without the properties I gave it! What have I missed? I had minor problems before, that the controls occasionally lost the properties overriding the basewizard properties, but not like this. I don't know if it is related but it seems that since I moved to WinXP servicepack 2 about a week ago, it has stopped working alltogether. Any ideas? Getting a bit desperate as my project is due soon! Thanks /EnkelIk

    C# oop help tutorial question

  • Can't include file in aspx-page
    E EnkelIk

    Thank you so much. A custom web control turned out to be a pretty nice solution ;) Thanks /EnkelIk

    ASP.NET csharp asp-net com sysadmin windows-admin

  • Can't include file in aspx-page
    E EnkelIk

    Hi all. I have a web site on an IIS written in ASP.net (C#). I want to keep the top, the left side menu and the bottom of the page in separate files, and then just include the pages into my aspx-pages, so that the menu only needs to be changed once. I have tried and it works if I'm refering to a page in the same virtual directory, but I just can't find a way to include files into my aspx-pages, when the files are placed at another server than the aspx-page. I tried using a component from http://www.apnsoft.com/?LM=Include\_Main&MD=Include\_IncludePageFromURL and it works but apart from the fact that it now takes like 2 years to load the aspx-page (ok that may have other reasons though I don't know which), there is no "encoding" property on their webcontrol so the swedish letters å ä and ö doesn't come out right. Does anyone have any suggestions? I'm getting a bit desperate as the website is to be launched next week... Thanks /EnkelIk

    ASP.NET csharp asp-net com sysadmin windows-admin

  • custom sectionGroups in web.config?
    E EnkelIk

    Hi all. I have a webservice coded in c#. I would like to add some custom sectiongroups to the web.config file, and I manage to do so in a normal application (to the App.config file), but have run into problems with the system.web part of the web.config file. I try to declare system.web as another sectiongroup (as I have seen on some pages on the net) but the web.config file below gives me this error: "Section or group name 'sessionState' has already been defined" If I on the other hand does not declare sessionState (or some other "entry" in the system.web sectiongroup) I get this error when trying to consume the service "Could not load type System.Configuration.NameValueSectionHandler from assembly System.Web"

    ASP.NET csharp help question workspace

  • How do I dump the raw xml in call to webservice?
    E EnkelIk

    After hours of testing and searching the net I think I found the not very encouraging answer. I wrote a client in php and let it print out the request and response to and from the webservice ($soapclient->request/response using nusoap v 0.6.7). Finally I even got it to work and discovered that there are some small differenses in the syntax of the request. My guess is that the main problem is that the client (in java on Axis -not latest version) and the webservice (c#, win2000 -latest .net framework) is not running the same version of soap and therefore the communication is not working. I have talked to the 'servermanager' but since there are other stuff running on the Axis-server it will not be upgraded in the near future. Conclusion? Well we will probably not use soap for the communication after all... /EnkelIk

    ASP.NET question csharp help wcf xml

  • How do I dump the raw xml in call to webservice?
    E EnkelIk

    ...or if anyone have ideas about what might be wrong -why my webservice only recieves empty strings eventhough I know I don't send them empty (works when calling from a .net program but not from java or php), that to would be very helpfull ;) Thanks /EnkelIk

    ASP.NET question csharp help wcf xml

  • How do I dump the raw xml in call to webservice?
    E EnkelIk

    Hi all. I'm writing a webservice in c#, and I have no problem in consuming it from another .net application, but the webservice seem not to be able to accept the incoming argument (a string) from calls that are not made from .net projects. I want the webservice to dump the raw xml, to a file or something, so that I can tell what the call looks like and hopefully also what is wrong. For example if I send (which does not work): osdcm2rn562 I want to be able to look at what is recieved by the webservice (that way I can compare the .net thing that works with the other that doesn't). The wsdl looks like this: Any help is greatly appreciated! Thanks /EnkelIk

    ASP.NET question csharp help wcf xml
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups