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
F

FinishedOnTime

@FinishedOnTime
About
Posts
9
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Get path in DLL rather than from ASP.NET
    F FinishedOnTime

    Try taking a look at the System.Environment class. It has a method CurrentDirectory() which returns the current working folder. You can also try Application.StartupPath.

    ASP.NET question csharp asp-net sysadmin xml

  • How to stop delay on first call to consume a webservice?
    F FinishedOnTime

    The first time any application I write tries to consume a webservice I always encounter a substantial delay. Typically the delay is about 15-20 seconds. Any subsequent calls are very fast. It seems as if under the hood there is some sort of initialization process perhaps? Can anyone tell me what is going on here and if there is a way to speed thus up? If it helps, I'm using C#, VS2005. I have this problem on any machine I develop on and any machine I run my compiled app on. Thank you!

    ASP.NET question csharp performance help tutorial

  • How can I start an app with window hidden?
    F FinishedOnTime

    Thank you Pete, I did this and it works but I have a question: public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SecurityClass sec = new SecurityClass(); if (DialogResult.Ok == sec.ShowDialog()) { if (sec.AuthenticateUser()) { Application.Run(new MainForm(/* pass in sec if necessary */)); } } } If we can open windows before we call Application.Run what does Application.Run do for us? Why do we need it at all? Online reference says this: Application.Run: Begins running a standard application message loop on the current thread, and makes the specified form visible. How is the application message loop different from the windows message queue? What happens to my app if I don't have one of these 'standard application message loop's? Thanks if anyone can explain!

    Windows Forms csharp help question c++ css

  • People Suck
    F FinishedOnTime

    You see.... the best part of waking up IS the goddam folgers!

    The Back Room help

  • How can I start an app with window hidden?
    F FinishedOnTime

    Hi Everyone, I'm a log time fan of CodeProject, former C++ guy, now C# guy. Here's what I need help with if you please: I have a Windows Forms app (C#, VS2005, .NET 2.0) with a grid control on it, the grid control will be populated with information collected from a call to a SOAP WebService. The workflow is: 1. App starts up - main window is hidden 2. App pops up a dialog asking for logon / password 3. Logon dialog hits webservice and gets back a token 3a. If user cancels login, exit application 4. Main window appears with a grid control on it that is empty 5. Main window uses token from web service to make calls to get data from webservice and display on the grid Here is my problem: I don't want the main window to appear before the user completes the process of logging on with the login dialog. However, I can't figure out how to get my application to start with my main window hidden except to launch the login dialog from the main form's constructor (gross!!). I try to use the Windows Form methods I can find like Hide() which will hide the window, but the problem is you'll see it before it gets hidden. I don't want it to appear at all until the user is done with the login window. I've tried modeless dialog for the login dialog, modeless etc. The desired effect that I can't achieve (without putting login form's instantiation and execution in the Main Form's construtor) is that you never see the main form until after login successfully completes, and if login is cancelled the program exits and you never see the main window at all. Thanks a lot for any help!

    Windows Forms csharp help question c++ css

  • Problem with VS 2005 Development Server
    F FinishedOnTime

    Since you told me that the name of the web server is Cassini it gave me new google-fodder. I found some articles which helped me to find a work-around. I had setup my solution to include my website by using direct file access. When I changed this to use local-iis I am now able to debug using IIS. Now that I can debug using IIS I don't need to use Cassini any more. At this point I am able to get back to work. The clues you gave me helped me to find a solution to my problem. Thank you very much! Do me a favor and download my software from www.sen.us Its free.

    ASP.NET visual-studio help question csharp javascript

  • Problem with VS 2005 Development Server
    F FinishedOnTime

    Thank you minhpc_bk for your reply. Yes, brands/default/images and /scripts are subfolders ..myproject\website\brands\default\images and ..myproject\website\scripts respectively. The are just subfolders off of the root of my project. If I open my site using iis (http://localhost/mp/) then my site appears properly, all images visible. However, if I try to access the site using Cassini (http://localhost:/myproject) then images and scrips do not get served in the html source. (I had to use mp on IIS because the alias myproject was detected to be declared already, as it is used for the development web server). The debug attribute of the compilation entry is set to true. (see web.config contents pasted below) I think that it is likely a security issue but as it should be running under my user account Cassini should be able to access the files in My Documents, and therefor access the project folder which is nested in my documents\visual studio 2005\projects... with inhereted permissions. I also added the EVERYONE account and that did not help. I do not get any errors in the web browser either. Is there a log file somewhere I could check for clues? Here is the web.config if it helps to provide clues: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings> < ... custom key values are in here ... > </appSettings> <connectionStrings/> <system.web> <compilation debug="true" defaultLanguage="c#" /> <authentication mode="Windows"/> <customErrors mode="RemoteOnly" ></customErrors> <trace enabled="true" pageOutput="true" /> </system.web> </configuration> Thank you again for your help. I'm REALLY stuck here!!! -- modified at 21:39 Wednesday 29th March, 2006

    ASP.NET visual-studio help question csharp javascript

  • Problem with VS 2005 Development Server
    F FinishedOnTime

    Thank you both for attempting to help. My project structure is like this: The root folder of my project on my hard disk is in: My Documents\Visual Studio 2005\Projects\myproject\website\ From this root folder: / - Maps to http://localhost:/myproject using Development server, or http://localhost/mp using IIS /brands/default/images/ - location of my images files /scripts/ - location of my javascript files The images and javascript files do not get served using development server. They are not outside the root and they aren't in a subproject with another web.config or virtual folder defined to point to them. If I access the site using the IIS virtual folder then the site is served correctly, but if I try to debug against it using Visual Studio 2005 I get an error that the server isn't configured for debugging. (However, I can debug against this server using VS 2003). When I use the development server, the images and scripts aren't served properly but I can debug against that. As far as I can tell, the virtual folders for both IIS and development server are the same. For security, I tried giving the EVERYONE account full access to My Documents\Visual Studio 2005\Projects\myproject\website\ and all subfolders but that doesn't seem to help. Does anyone know what user process the development server runs under or anything else I can try to change its configuration? I have the same problem when viewing the site with either internet explorer or firefox. Also I verify that the paths to the images is correct in the html source from browser view source command. Thank you again for any insight you may have.

    ASP.NET visual-studio help question csharp javascript

  • Problem with VS 2005 Development Server
    F FinishedOnTime

    Hi, I'm having a problem with Visual Studio 2005 Development Server. I've recently upgraded from 2003 to 2005. I used to develop and debug against IIS, so I still have it installed on my workstation. When I run my app using Development Server, files in subdirectories don't get rendered. For example, images in ~/supportpages/images/ appear as broken links. I get the same thing for things like references to .js files where the script doesn't seem to get served. It looks like non-.aspx/.ascx pages outside the root folder of the site don't get served. However, if I open up IIS on my workstation and make a virtual path to the same folder (using a different alias), the site appears just fine, with all images and scripts working as they should. How can I fix this problem so I can just keep working with development server, but still see my site properly? (It's bad if my development environment doesn't work as closely as possible to my production environment). Thank you very much for any insight you may have.

    ASP.NET visual-studio help question csharp javascript
  • Login

  • Don't have an account? Register

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