|
Hi buddies
Thanx for your help.I really tried both the method but none of them worked.
Still when i am creating new project in asp.net, the following mess is displayed:
"Visual Studio.NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web Application or services."
When i am sending request to localhost at xplorer
http://localhost/
it is not opening the two screens of iis.but instead its opening someother page.
Can i change the port of iis.If so how can i do that.
thanx in advance again
bye
nauty
|
|
|
|
|
Hello,
I am new to this site and new to programming. I am stuck. My assignment states the following: We need to write a program that will read in a string of any length and then display the reverse of the original string, the original string in all Caps and in all Lowercase letters. When reversing the string, the letters should be reversed with the appropriate capitalization applied to all letters.
Sample output.
What string would you like to convert? John Smith
Reversed String: htimS nhoJ
All Uppercase: JOHN SMITH
All Lowercase: john smith
I figured out Uppercase and Lowercase but not reverse or even how to tie it in to the rest. We are using the console applications in Microsoft Visual Studio .NET 2003. Any Help would be greatly appreciated. Thank You!
__________________
This is hurting my Head !
Shadow Sprite
|
|
|
|
|
It's not really good form to ask for help on homework assignments.
Look into converting the string to a character array then reading the characters one at a time. I don't believe there is a String.Reverse() or anything like that.
|
|
|
|
|
This is a very simple assignment, so any code sample will give away the entire assignment! All the stuff you need has already been covered in the class.
Define a variable to hold a string
Get a string from the user (Console.ReadLine())
Output the string reversed (Console.WriteLine and StrReverse())
Output that string in Uppercase (string.ToUpper())
Output that string in Lowercase (string.ToLower())
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: Output the string reversed (Console.WriteLine and StrReverse())
StrReverse() is a VB6 function, not a .net String method. The Array and ArrayList classes have Reverse() methods, or it could be done manually with a for loop.
|
|
|
|
|
dan neely wrote: or it could be done manually with a for loop.
Yes, it could.
I looked at the overall complexity of the assignement (pretty much Programming 101 stuff) and took a guess at the language the class was in. Then, what are the simplest methods you could use to the job and would be likely covered in the class. StrReverse came to mind...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank You for your help. We just started this class a week ago out instructor believes in us just figuring it out......Then we go over how to solve the problem. Thanks Again.
Shadow Sprite
|
|
|
|
|
I know makecert.exe can create certificate file for me , but how can I create a certificate file through programming?
Thanks in advance!
|
|
|
|
|
Hi,
From an architectural perspective is it best to use the DatabaseFactory.CreateDatabase() method once at the top of a method call stack, and pass its reference to each method in the stack that needs database access, or should each method in the data-layer use the DatabaseFactory.CreateDatabase() method internally. Clearly the first approach uses less resources, as quite a lot of code is utilised by the DatabaseFactory.CreateDatabase() method, including reading the web.config file, however the second approach keeps the Data Layer tightly cohesive and loosely coupled from other sections.
For example let’s examine a web service solution. Assuming that the service document has a web method, which in-turn calls a business facade. The facade then forwards necessary information to one or more 'information managers'. These then utilise 'data managers' which provide scalar values, Datasets etc required for their calculations. Should each method in the data managers use DatabaseFactory.CreateDatabase() to get a connection to the DB for executing various commands, or should this be called once at the business facade level and a reference passed to each Info manager which in-turn pass to respective data managers?
Could anyone make a recommendation based on experience?
Thanks in advance.
|
|
|
|
|
First, you can use the Application State or the Caching Application Block to avoid going back to the Web.config file repeatedly.
Depends somewhat on whether you're doing WinForms or ASP.Net. Since you're talking about Web.config, it's obviously the latter. If you have a long chain of user controls as I do, you sure don't want every one of them creating and destroying their own database objects. I think Microsofts intention was pretty obvious when they modeled the database objects on the toolbar as something that you'd drag onto your page. Connections aren't cheap and your database server probably has a limit on the number of concurrent connections permitted so you don't want any more open at one time then necessary. Also, you stand a really good chance of deadlocking against yourself.
Will
|
|
|
|
|
Thanks for the reply Will,
The application in question is a web services project that returns data to both an ASP.NET and Windows Forms App so your recommendation won't really apply. At first I tried dragging and dropping connections and data adapters etc onto my web services file but I found the code generated to be very untidy. I instead opted to have my web service class contact a business facade, which then contacts other classes in a business layer, which finally contact a database layer where I have utilised the DAAB.
So to further define my question; do I create the Database object in the global.asax session start method, and then use the reference in each class required in the data layer? Do I create the connection each time a service is requested and pass it down to each class required in the data layer? Or do I just use the DatabaseFactory.CreateDatabase() method when it is required within each method of my data layer classes? I notice that when using a Database object supplied by the DAAB that you do not specify the connection string when you use a method such as 'ExecuteNonQuery', this suggest to me that the connection can be managed at this lower level.
|
|
|
|
|
First, you'd probably have better luck with this question in Web Development.
.
I haven't done any Web Services so I don't know the environment. However in general, if you know you're going to need the connection for five calls to the database, it's a lot cheaper if you don't build and destroy the database objects and connect and disconnect five times (although I don't have a good feel for what connection pooling buys). On the other hand, if you have any sort of volume then you don't want to tie up the database resources a moment longer than necessary. So, if a Session lasts until it times out for a Web Service(?), I wouldn't allocate the connection at the Session level.
Will
|
|
|
|
|
K,
I had a similar architecture to what you’re advocating before I moved to use the DAAB. I'm looking for advice more specific to the DAAB. For example, putting the Database object in the session will not put the connection in the session, the database object provides a method to create and return a connection based on settings in the web config file. And when you call a method on the Database object, such as ExecuteNonQuery, you don't explicitly give a connection. I assume that it creates one internally based on the config file.
So given the examples on using the DAAB that I have seen, there's no way to share a single connection between multiple queries without the use of a transaction or additional verbose code. Based on this I guess the best thing to do is put the database object in the session and then call methods such as LoadData and ExecuteNonQuery where necessary, Let the DAAB handle the connections completely.
|
|
|
|
|
M'Kay,
I see your point. I always assumed that there was a Connection object that was embedded within the Database object. That's NOT the case. If you RTFC then you'll see that each invocation of one of the wrappers "new"s its own connection (at least for SQL Server). Personally, I was happier in my deluded ignorance. I guess that means that the only way to economize is to exploit connection pooling. The various ADO.Net books seem to do a good job of covering that subject in detail. Of course, there's nothing stopping you from altering or building upon the Library except having to maintain your enhancements in future versions. In a sort of poor man's DAAB I worked on at one client site, I changed a "DatabaseHelper" class (which did have an embedded Connection object) so that it left the connection in the state it found it. If an explicit Open was performed, it stayed open until an explicit Close was performed. This runs the risk of Connection leaks if you aren't careful. Perhaps that's why the authors of the Library chose the approach that they did?
Will
|
|
|
|
|
I have made extensive use of the IList derived collections for databinding to various controls etc in several .Net projects over the last few years. I am now starting a project that could benefit from generics and would like to use them for all the obvious reason.
The question I have is can generic collections be used for databinding in the same way as the non-generic collections? In short, can I bind a generic IList derived collection to a control?
I notice that there seems to be no generic version of CollectionBase or IBindingList.
-- modified at 16:21 Thursday 30th March, 2006
|
|
|
|
|
Hello,
First, I'm french so my english isn't very good.
I must import MsProject 2000 tasks into dataTable.
I would like to use "system.reflection" (or some thing like that) to write generic code in order to call each property of COM MsProject Task object.
But it seems that system.reflection works only for .NET managed objects. I tried to find other possibilities but I found nothing.
Is someone can help me ?
Thanks in advance.
Steph
|
|
|
|
|
This my be a stupid question but here goes:
I have written a web service in .net 1.1. Am I guaranted that these functions (that are using a not 100% .net 2.0 competible API) will be run in .net 1.1 when accessed from a .net 2.0 application? The application and web service will be on the same computer.
|
|
|
|
|
|
Hi,
This is Balvardhan, i wnat to design Framework to my project,
Just give idea to how to NHibernate
I already Import that Third party Dlls but I did not understand hoe to make a prog with that
Balu
|
|
|
|
|
I have a windows sevice application developed in C# .NET 1.1 wherein a thread is running that is polling for new entries in a queue. When a new entry is found, I used Process.Start to start a Console Application to perform some task. I have tested this console application to be started from within a Windows Form Application, also using Process.Start, and this worked ok. Doing the same in the Service thread gives no result whatsover. Can anybody advice me on this ?
Walter Vanhimbeeck
|
|
|
|
|
No need for advice on this - the solution was easy, I just had to check the property "Allow service to interact with desktop" in the logon tab of the service properties.
|
|
|
|
|
Hi.
I'm writing an application in C# that runs a "cmd.exe" in another process.
I need to get the working directory of the process without having to resort to issueing "echo %CD%" to the cmd process.
Can anyone help me?
I'm going nuts trying to find a way to do this.
Cheers,
/Trev
|
|
|
|
|
Hi everyone,
I created one setup program in .NET deployment and setup project. I used VBScript program for finding existence of old version and popup the message box with Yes No button.
If i click yes this new version's installation setup uninstall the old version. At the same time i need to exit from this new installation when i click No button in that popup message box.
I wrote code for uninstalling old version under Yes button's case. I couldnt get how to exit from the installation,which codes are used under No button's case.
I need help to exit installation by clciking No button.
I saw one script code "WScript.Quit". But this is for quiting from script program. I added the script file under install of custom actions.
--------------------
currentversion="1.0.1"
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("SELECT * FROM Win32_Product")
For Each objSoftware in colSoftware
ProductName= objSoftware.Caption
ProductDescription=objSoftware.Description
ProductCode= objSoftware.IdentifyingNumber
InstallLoc=objSoftware.InstallLocation
PInstallState= objSoftware.InstallState
PName= objSoftware.Name
Pkg=objSoftware.PackageCache
SKUNo= objSoftware.SKUNumber
Manufact= objSoftware.Vendor
VerNo= objSoftware.Version
'Check the existence of the same product and then check version number.
'If older version is present then display popup message box.
if (PName="VersionUpgrade") then
If(VerNo<currentversion) then
MsgBox "The old Version Number of "&ProductName&"is: "&objSoftware.Version
set WshShell=CreateObject("Wscript.Shell")
intButton=WshShell.Popup("Do you want to uninstall the older version of this application?",10,,4+32)
select case intButton
case -1
StrMessage="You didnt click any button within the allotted time"
case 6
MsgBox "Old Version is Uninstalled"
case 7
MsgBox "Old Version is not Uninstalled"
end select
end if
end if
Next
-------------------------------------------------------
I hope that i can get idea from this group. Please help me.
Lisa
|
|
|
|
|
How are you all doing?
I am not a programmer and have not got a clue with anything related to programming. I am looking to turn a standard usb webcam into a motion detection monitor.
I would like to write a programme where, as someone walks past the camera a picture would be captured. I would then develop it further by having the picture emailed it to me, etc etc. However for now, i would require guidance on how to tackle the first part of capturing the image.
I have looked on the web, and have comne across various files including spot, but have not got a clue on how it works or what it actually is dong!!!!!
PLEASE HELP.
THANK YOU
mrbhp
|
|
|
|
|
Stop right there.
If you don't have a clue about programming then you have 3 options:
1.) google for an exsisting program
2.) pay somebody to write you this program
3.) start learning at the BEGINING
you are talking about some advanced stuff and you can't just start and program a motion-capturing program.
Start with "hello world";)
--------------------------------------------------------
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|