|
Virtual directory in what?
|
|
|
|
|
Hi
Check this step by step article
How to Create Virtual directory[^]
Dont know where to start. Just Click start -> Run. Type 'inetmgr' and you will list of websites.
Check the link given above and create virtual directory.
Harini
|
|
|
|
|
Hi,
These step will guide u to create a Virtual Directory in Windows XP:
1. From the Start menu, click Start, Settings, Control Panel, Administrative Tools, Internet Information Services
OR
Start - Run - type inetmgr
2. In Internet Information Services, expand your computer name, expand the websites and right click websites - select - New, Virtual Directory
3. In the first screen of the Virtual Directory Creation Wizard, type an alias, or name, for the virtual directory (such as MyWebData), and then click Next. It can be the name of the folder where you have the aspx files.
4. In the second screen, click Browse. Locate the folder where you have the aspx and cs files. Click Next.
5. In the third screen, select Read and Run scripts (such as ASP). Make sure that the other check boxes are cleared. Click Finish to complete the wizard.
6. For ASP content, you may want to confirm that an application was created. To do this, right-click the new virtual directory, and then click Properties.
7. On the Virtual Directory tab, make sure that the virtual directory name is listed in the Application Name box under Application Settings. If it is not, click Create. Note that the application name does not have to match the virtual directory alias.
8. Close the Properties dialog box
You can create an almost unlimited number of virtual directories for your service, although performance may suffer if you create too many of them. For further reading, you may refer:
http://msdn2.microsoft.com/en-us/library/zwk103ab.aspx
Regards
|
|
|
|
|
Start > Run > inetmgr and press ENTER
navigate to Default Websites folder on the left hand tree view, right click on it and select "New > Virtual Directory" and press Enter...ur VD will be created
|
|
|
|
|
I have a windows form with a rapidly updating chart and I want to use the "double buffered" setting to prevent flicker. The problem is it always gives me an Argument Exception with the message "Parameter is not valid" when the form loads. Does anyone know what I am doing wrong?
Thanks in advance for any help you can offer.
|
|
|
|
|
Richard W Allen wrote: Does anyone know what I am doing wrong?
Yes and no: here's your problem
Richard W Allen wrote: "Parameter is not valid" when the form loads.
Without some code we can't do anything else.
|
|
|
|
|
I'm not sure that code would help. The exception occurs on the line:
Application.Run(new SC226());
If I have Double Buffered set to false my application runs OK but I do get flicker on my chart. If I set Double Buffered to true, my application starts OK, but I get the exception when I open the Double Buffered form.
I am not sure how to interpret the exception details, but there are a lot of references to "System.Drawing.Graphics" and "System.Drawing.BufferedGraphics"
|
|
|
|
|
Richard W Allen wrote: I am not sure how to interpret the exception details, but there are a lot of references to "System.Drawing.Graphics" and "System.Drawing.BufferedGraphics"
Then just paste it, maybe one of us can help
|
|
|
|
|
Here are the exception details:-
System.ArgumentException was unhandled
Message="Parameter is not valid."
Source="System.Drawing"
StackTrace:
at System.Drawing.Graphics.GetHdc()
at System.Drawing.BufferedGraphics.RenderInternal(HandleRef refTargetDC, BufferedGraphics buffer)
at System.Drawing.BufferedGraphics.Render()
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SC225.Program.Main() in C:\Documents and Settings\Richard Allen\My Documents\Visual Studio 2005\Projects\SC225\SC225\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
|
|
|
|
|
Sorry, I cant seem to help you on this one
I suggest however, you try find out the 'this' context of the COntrol at 'System.Windows.Forms.Control.WmPaint(Message& m)' (just go down the callstack). Then remove that control temporarily, and try again.
|
|
|
|
|
Maybe this might cast more light on the problem:
The exception occurs in the line:-
Application.Run(new SC226());
but SC226 is my application, so shouldn't this line only run when the application starts?
If I have Double Buffering off, this line only runs at the start of my app. If Double buffering is on, it runs again straight after the paint method of the form that is double buffered. But why??!!! Is something causing my app to reset?
|
|
|
|
|
Hi
what is the property name for reading 'web page' of the user from active directory.
may i have complete list of the property for windows server 2003?
Thank you
Jayesh Talsaniya
Jayesh Talsaniya
|
|
|
|
|
how can make a userdefine collection in c# and what's delegate(c#) with example?
Thanku sir/madam
|
|
|
|
|
|
Hi,
What is the difference between Object and object?? And also String and string? Is object and string "lighter" versions of Object and String respectively?
Are there other as well?
Regards
ma se
|
|
|
|
|
ma se wrote: Is object and string "lighter" versions of Object and String respectively?
Nope, it's just one starts with a capital and the other doesn't The ones with the Upper case are actually System.Object etc, and are the objects in the base class Library. The ones with lower case are the C# aliases to those objects.
ma se wrote: Are there other as well?
Yep, int and System.Int32 etc.
|
|
|
|
|
ma se wrote: What is the difference between Object and object??
The object type is an alias for Object in the .NET Framework. Same is for string.
|
|
|
|
|
Hi,
Here is my requirement.
"writing an SDF file to decode the document (scanned image)". how can I do this in C# winforms. Please provide some samples if you have. Thanks in Advance.
AR Reddy
|
|
|
|
|
|
|
private void txtBody_TextChanged(object sender, eventArgs e)<br />
{<br />
if(tbWordwrap.Pushed)<br />
{<br />
int maxLength = 65;<br />
string[] tempArray = new string(txtBody.Lines.length);<br />
tempArray = txtBody.Lines;<br />
<br />
int Prevsel = txtBody.SelectionStart;<br />
string Op = "";<br />
<br />
bool change= false;<br />
<br />
for(int counter = 0; counter < tempArray.Length; counter++)<br />
{<br />
if (tempArray[counter].length > maxLength )<br />
{<br />
string[] Words = tempArray[counter].split(' ');<br />
int currentLineLength = 0;<br />
string currentLine = "";<br />
foreach(string currentWord in Words)<br />
{<br />
if(currentWord.length > 0)<br />
{<br />
if(currentWord.length >= maxLength)<br />
{<br />
Op += curreentWord.Insert(maxLength, "\r\n");<br />
break;<br />
}<br />
if (currentLineLength + currentWord.Length + 1 < maxLength) <br />
{ <br />
<br />
currentLine += " " + currentWord;<br />
currentLineLength += (currentWord.Length + 1); <br />
} <br />
else<br />
{<br />
<br />
Op +=currentLine.insert(currentLineLength,"\r\n);<br />
currentLine = currentWord;<br />
currentLineLength = currentWord.Length ; <br />
} <br />
<br />
}<br />
}<br />
if(currentLine != "")<br />
Op += currentLine;<br />
<br />
<br />
Prevsel++;<br />
change= true;<br />
}<br />
else<br />
{<br />
Op += tempArray[counter] + "\r\n";<br />
}<br />
}<br />
<br />
if(change)<br />
{<br />
txtBody.Text = Op;<br />
txtbody.SelectionStart = Prevsel;<br />
}<br />
}<br />
}<br />
<br />
<br />
Above code is for text editor in which a user can fix no. of characters in single line. If user fix to 65 char then in single line 65 character will appear.
Its working but having some problem,if user types a line
like: "This is trial message."
Now suppose the above character count are equal to 65, the code now supress the spaces in above line,
i.e it modify the line
like: "This is trial message."
It omits the spaces. How can i modify this code that it would also count the spaces, maxLength is variable for the no. of char in a line.
|
|
|
|
|
humdumof wrote: string[] Words = tempArray[counter].split(' ');
This removes the spaces. So, add one for every word you add, obviously.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
I am developing C# form application.
I want to pass some user editable command line data to application before execution. So that i can read it before main() gets execute.
How can i pass these data and read it from my application.
Thanks.
Gajesh
|
|
|
|
|
static void Main(string[] args)
{}
where args is a string aray that has the command line arguments in it split by spaces.
Heres one of the articles you'll find right here on codeproject if you search ...
http://www.codeproject.com/csharp/Command_Line.asp[^]
|
|
|
|
|
thanks originSH,
But how end user will pass data from application exe?
I thought of editing the application properties(RClick on application icon -> propertry) but i couldn't find command line editor in any of the tab.
Thanks.
|
|
|
|