|
That's actually what I'm trying to do. Making it more OOP but I had variable calls all over the place that didn't have declarations. This is that monster program where one function has over 5k of lines.
|
|
|
|
|
Oh God, I feel for you! But, Guffa is right. Start at the top and work your way down. There is no setting to change the max number of errors in the list.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
leckey wrote: This is that monster program where one function has over 5k of lines.
The largest function I ever had to deal with what where one developer created a function with about 1.5K lines. It was an override of the Render method in a web control and much of it was copy and pasted from other parts of the web control. After a few days of refactoring I managed to get the method down to about a couple of hundred lines and I'd created about a dozen other methods of a couple of dozen lines each that the main method called repeatedly. After all that I was totally exhausted and I still hate that class and am only glad that the client never asked for any modifications in that area.
|
|
|
|
|
Most of the errors that you get are probably related to other errors. If you for an example have an error that makes it impossible for the compiler to create a specific method, you will also get an error everywhere that you use that method.
Start at the top and fix the errors, and you'll see that the list of errors will quickly get shorter. If you start in the middle of the list you will only find that you can't fix most of the errors, as they are related to previous errors.
---
b { font-weight: normal; }
|
|
|
|
|
I create a txt file which name xx.txt, then I execute the WebClient.UploadFile to upload the file to the server side. The file was uploaded successfully but few lines of header and footer was added to the original context of the file. Please see the example bellow.
-----------------------8c8883ecf24ad9e
Content-Disposition: form-data; name="file"; filename="xx.txt"
Content-Type: application/octet-stream
Context of the txt file
-----------------------8c8883ecf24ad9e
if the uploaded file was jpg, ... format, the system will not be able to reopen the uploaded one because of this header, please advice
Nadia Borshek
|
|
|
|
|
I am not sure of what you are expecting. it looks like you need to set the content type properly.
well, refer to the following web links for some info on the similar topics.
Upload handling
http://support.microsoft.com/kb/323246/EN-US/
sample products handling uploads.
http://www.iisworks.com/fileman/home.asp
|
|
|
|
|
Thank you for your reply, but what I am looking for is upload a file to the server withour user inteaction, that why I used WebClient.UploadFile(), then the problem I am facing that I can not review or open the uploaded file again.
|
|
|
|
|
I want to upload file without user interaction, and at the same time i need to open the file throug the explorer
|
|
|
|
|
Urgent
How can we generate XML help file in VS 2005????
|
|
|
|
|
Please don't write whole sentences in bold.
A single question mark is all that is neaded to mark the sentence as a question. Multipe question marks have no meaning at all, other than informing everyone that you don't know how to write.
Open the properties for the project. Go to the Build tab. In the Output section you will find the "XML documentation file" property. Check the checkbox and verify that the generated file name is what you want.
---
b { font-weight: normal; }
|
|
|
|
|
hey folks,
can anyone tell me if it's possible to alter a enumeration or a class during runtime? for example adding an item to a enumeration or exchanging a method with another?
if not, what can i do to customize the host application with a 'add-in' which is loaded by the host application?
thanks for hints
bernd
|
|
|
|
|
Specify an interface for the add-in, then create a library with a class that implements the interface. Now you can load the library dynamically, and use the interface to access the object without having to use reflection for everything.
---
b { font-weight: normal; }
|
|
|
|
|
hey Guffa, thanks.
it's not that easy. i haven't the source code of the host application under my control btw. i wouldn't like to touch it.
you say reflection...is reflection able to do things we speek about? till now i used reflection just "raedonly".
regards, bernd
|
|
|
|
|
thebread wrote: i haven't the source code of the host application under my control
Then the answer is no. You can't do it using .NET.
Anything is possible. You could alter the executable file to make changes in the program, but there is no support what so ever for this in .NET. You are totally on your own to fiddle with the byte codes.
For an example, to replace a method you would either have to overwrite the code in the method, or add additional code for a method and change every call to the original method to use the new method instead.
Are you up to the task? Have you done any assembler programming, for instance? I've done a lot of assembler programming and even machine code programming myself, but I would hesitate to try what you are suggesting...
---
b { font-weight: normal; }
|
|
|
|
|
Although it is a complicated procedure you can use code dom to create/insert dynamic code, though I'm not sure of the value of this in your case.
Exchanging one method for another can be done using a pattern, possible strategy or adapter.
only two letters away from being an asset
|
|
|
|
|
uiui, sounds crazy. the pattern should be implemented in the host application i think, isn't it? if i do the step to touch the code of the host application i haven't to go the long way round doing stuff with code dom and something like that. but this could be a powerfull plug-in mechanism...i'll give it a try later.
thanks for your advice, bernd
|
|
|
|
|
Each time when I plug in USB memory stick to the pc, there is a window (file folder for the USB drive) pops out. I have an application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??
|
|
|
|
|
i am not debug my webpage its open only in withoutdebug mode.how can i set some aspnet_wp property to my page to open it in debug mode or any other solution is there.
prakash
|
|
|
|
|
Hi Friend,
You can change your Page in Debug Mode as follows
1. Select BUILD Menu.
2. And Select CONFIGURATION MANAGER.
3. Change to 'Debug' in 'Active Solution Configuration' Combo.
4. And also Change to 'Debug' in 'Configuration' column in the Grid.
5. Click Button 'Close'
Now You can Debug Your page. Otherwise the Cursor will not be allowed to Break on your Breakpoint.
With Regards,
Pandian S
|
|
|
|
|
|
Hi I have an asp page which has a button, when the button is clicked a pop-up page is generated. On some clients this is generated successfuly. The problem is that on another client the pop-up cannot be displayed (http error 500). The server uses session variables, there is a unique session ID (number) on the clients' URL for successful popups, but for this client thacan't generate a popup the session ID is not there. What might be the problem, please help.
|
|
|
|
|
If the browser is set up to not accept session cookies, the default way of handling the session id doesn't work.
Solutions:
:: Make sure that the browser accepts cookies.
:: Use cookie-less session handling instead.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All
I have a tough one (for me that is).
I have written a web service that recieve SOAP messages from an embedded device and it works fine
I now need to get this information into a service on a server running in the back ground so that I can manipulate the data and in the end save it a SQL2005 db.
I have seen that when I receive SOAP udates from my embedded device the web service "fires" on each POST from the embedded device, This can be as much as 10 000 time per second, I can see all my data. My first idea was to allow the web service to udate the SQL2005 db directly but this process is to slow.
That is why I planning a service running on the same server as a process in the background.
Regards
|
|
|
|
|
I have a C# windows form application that I developed with VS2003. The development PC has .Net Framework 1.1 installed so naturally it is used as a launch condition. A customer of mine has .Net Framework 2.0 installed, and when he tries to install my application, he gets an error.
Note: The setup project is set to install only the application (bootstrapper property is set to NONE). I leave it to the user to install the .Net Framework.
Question: If I install .Net Framework 2.0 on the development computer, will it automatically be used for the launch condition when I build the MSI setup project (I suppose it would)? I don't want all of my customers to have to install 2.0 because 1.1 seems to work fine. Is it possible for the application to use either 1.1 or 2.0? How do I specify that?
Victor
|
|
|
|
|
An application built in 1.1 must have the 1.1 framework installed on the machine that is running the application. 2.0 framework will not work for applications built in 1.1 or vice versa.
Mike Lasseter
|
|
|
|