Showing posts with label back. Show all posts
Showing posts with label back. Show all posts

Wednesday, March 28, 2012

Sudden VS2003 Error

I was going along just fine developing an ASP.NET application using IIS on
my own machine. I had to reboot. When I came back, VS started acting
flakey. It would not reload my project claiming that it could not connect
to the url on my machine (something like http://localhost/myApplication).
"A connection with the server could not be established"
I tried this:
1) backed up all files
2) deleted the project folder from wwwroot
3) created a new web application in visual studio using the same name
4) copied all the source code files (no project or solution) into that
folder and added them to the new project
Worked fine at first and built just fine, but when I exited VS and came back
it would no longer load either.
Caveat 1: When I rebooted I changed my network password, but I don't expect
this should matter in any way.
Caveat 2: I am running McAfee Anti-Virus (required by the site whose machine
this actually is).
Tried to google the error for a solution, but nothing seems to fix it.
Any takers?Hi
There are known problems with McAfee and VS.NET.
If you are forced to use McAfee make sure the "buffer overload" option
is off.
Good luck.
Regards,
Daniel Roth
MCSD.NET
Dan,
I'll disable it, but can you tell me what effect it had on you, or how you
figured out that it was the problem?
<dan.c.roth@.gmail.com> wrote
> There are known problems with McAfee and VS.NET.
> If you are forced to use McAfee make sure the "buffer overload" option
> is off.

Sudden VS2003 Error

I was going along just fine developing an ASP.NET application using IIS on
my own machine. I had to reboot. When I came back, VS started acting
flakey. It would not reload my project claiming that it could not connect
to the url on my machine (something like http://localhost/myApplication).

"A connection with the server could not be established"

I tried this:
1) backed up all files
2) deleted the project folder from wwwroot
3) created a new web application in visual studio using the same name
4) copied all the source code files (no project or solution) into that
folder and added them to the new project

Worked fine at first and built just fine, but when I exited VS and came back
it would no longer load either.

Caveat 1: When I rebooted I changed my network password, but I don't expect
this should matter in any way.
Caveat 2: I am running McAfee Anti-Virus (required by the site whose machine
this actually is).

Tried to google the error for a solution, but nothing seems to fix it.

Any takers?Hi

There are known problems with McAfee and VS.NET.

If you are forced to use McAfee make sure the "buffer overload" option
is off.

Good luck.

Regards,
Daniel Roth
MCSD.NET
Dan,

I'll disable it, but can you tell me what effect it had on you, or how you
figured out that it was the problem?

<dan.c.roth@.gmail.com> wrote
> There are known problems with McAfee and VS.NET.
> If you are forced to use McAfee make sure the "buffer overload" option
> is off.

Saturday, March 24, 2012

Suggestions for best Development Environment??

Any input would be greatly appreciated…HELP ME!!!...to get back to coding comfortably!!!!

I'm trying to decide which development environment would be best for me…I haven't been coding for about a year and need to get back and rolling!

I've used FrontPage and Visual Interdev. (I prefer the Interdev coding environment…but FrontPage was always easier to use at home with Personal Web Server….wasn't crazy about Personal Web Server but it did the trick…and never could stand the 'web bots' in Front Page!)

Originally bought FrontPage98 and upgraded to FrontPage2000. I own VisualStudio6. Took some ASP.net classes and have a trial version of Visual Studio.net Pro (but it's version 2002)…, which I never did install because of my old PC.

When I code sites, I manually code HTML (don't use WYSIWYG functionality) and like to use tables, asp code for includes (very important to me), and code to pull data from Access databases. And I like the intellisense feature.

I just purchased a new laptop which is running TabletPC. I decided to purchase the latest FP2003 thinking it must have great updates. I pretty much assumed that this new OS (TabletPC) would have IIS and anything else I needed. I installed FP2003 and upon trying to code up some ASP pages, I see that the Help pages are pointing me in the direction of, I think, SharePoint, etc. I don't really want to go in this direction…would prefer to go more the developer route than the design route…and I'm thinking should go more toward ASP.net or latest Visual Studio route or maybe Macromedia Dreamweaver would be my best bet?

Ya know, I just want to code up some sites locally (my laptop only…no servers involved, except for IIS or PWS)(basically just moving from my antiquated desktop to the laptop), with the intention of copying the sites up to my ISP for hosting (these would be small company sites….no big frills…).

I've spent a fair amount of time searching through MS (including forums) for answers…and just decided I should ask since I can't seem to find any definitive information.

1. Will TabletPC OS support coding of ASP…(well, I know it will, but what do I need to do (without going the SharePoint route))? When I look in Administration Tools on my laptop, I do not see IIS.

2. Please give me good suggestions for which development environment you suggest for coding my sites if my main preferences are manual HTML, ++include files, coding for access to Access db's (and a local server).

Wondering if I should start fresh with latest version of ASP.net or maybe Macromedia Dreamweaver, but have not used either. Since I haven't been coding in a corporate environment for awhile, I'm not sure of the best configuration and I need a good starting point so that I'm technically up to date without a lot of complication. I'm looking for the right environment that is not overly complicated but does have the capabilities going forward to accommodate me as I grow and am able to take advantage of advanced features. I can work my way through some problems, but don't want to consistently have to be going to MS site to find answers to simple functionality….or be consistently faced with problems! And don't want to load up my PC with lots of products just trying them out…and spending soooo much time sorting through them. And don't want to load old software…want to start fresh and go forward!

On this site alone I see ASP.net 1.1, ASP.net 2.0, Visual Web Developer 2005 Express…i..yi..yi!!!!! …Web Developer Express?...

Looks like Web Matrix might give me what I need…but looks like it might be going bye-bye…(see what I mean!), can I use Javascript and VBscript, what shortcomings do you see, how would it compare to Dreamweaver?

I love coding sites and learning this technology!!!!! Need to get some sites coded up. Right now feel like I'm stuck at GO! Please help me get my party started!!!!

simpleone--
Regarding this...

simpleone wrote:

...1. Will TabletPC OS support coding of ASP…(well, I know it will, but what do I need to do (without going the SharePoint route))? When I look in Administration Tools on my laptop, I do not see IIS...


...I am sorry; but, I do not know. I do know, however, that this is probably the most important question that you are asking.
Actually, if you are serious about development, I suggest that you exchange the TabletPC and get a notebook running Windows XP Pro or Windows 2003 Server. That would be the way to go. If you cannot do that, then you may have trouble running IIS or ASP.NET 2.0 on the TabletPC; so, you will then be stuck.
Also, note that you want to make sure that you make the distinction between ASP and ASP.NET when you are researching this. In short, you want to forget about ASP entirely and simply address ASP.NET because ASP is certainly dead.
In short, the primary web development approaches today are ASP.NET, Java, and (maybe) PHP.
Regarding this...

simpleone wrote:

...2. Please give me good suggestions for which development environment you suggest for coding my sites if my main preferences are manual HTML, ++include files, coding for access to Access db's (and a local server)...


...it sounds like Visual Web Developer Express 2005 (VWDE) would be great for you. Note that a Microsoft site,http://lab.msdn.microsoft.com/express/readme/ , basically states that VWDE will run on Windows 2000, Windows XP, and Windows 2003 Server. Again, it gets back to the choice of the TabletPC. It looks like you MAY be in luck because according to a Microsoft site,http://www.microsoft.com/windowsxp/tabletpc/default.mspx , states that the TabletPC runs "Windows XP Table PC Edition". Will that run Visual Studio 2003? Will that run VWDE? One way to find out is to simply try. Try installing VWDE. It is free. If it installs, then you are all set. If not, then you might need to pick something else, like a pure-HTML tool.
Regarding this...

simpleone wrote:

...On this site alone I see ASP.net 1.1, ASP.net 2.0, Visual Web Developer 2005 Express…i..yi..yi!!!!! …Web Developer Express?...Looks like Web Matrix might give me what I need…but looks like it might be going bye-bye…(see what I mean!)...


...you are absolutely right. Pre-marketing ASP.NET 2.0 (for well over a year now) is a big mistake (IMHO). Microsoft should not publically release products in beta. It just makes matters too confusing. However, since it is done, and since you are starting out more or less fresh, then VWDE is probably a good choice (if you can get it to run on the TabletPC).
Finally, forget about "includes" and (if you dare) JavaScript. Why? Well, "includes" are replaces by classes and user controls and other features. JavaScript can be turned off by the enduser so it is not reliable as a critical path technology. (Caveat-- JavaScript is hard to get away from entirely; but, web developers would do well to avoid it as much as feasible.)
Note that this is all just my opinion; so, read it as such, please.
HTH.

Thursday, March 22, 2012

Support for partial updates in Whidbey.

I know that ASP.NET Whidbey supports partial updates and does not require a complete post back but does this work on Unix. I was told during PDC that IE uses XMLHttp to do the partial updates. How does this work on Netscape in Unix?I think your browser should support XMLHttp. I read the book A First Look to ASP.Net 2.0 and there are some examples about this. They also show that it works with Netscape 7 on windows. So maybe it will work on Unix too, i don't know if the netscape version is supporting this on unix.
Since XMLHttp is Microsoft's COM object available on Windows, Netscape on Windows can also use it and it will work. Now what does Netscape do in case of Unix? Has anybody tested this functionality on Unix. I have asked this question to the ASP.NET folks at Microsoft but have not received the answer yet.

Tuesday, March 13, 2012

Swiching between .NET version

How do I go around swiching from say .NET 2.0 back to .NET 1.1 and vice versa. By default .NET 2.0 is running, however I only want to use that at times, not always. Can I switch it without uninstalling it ? Thanks.In the framework directory for each of the versions, you'll findaspnet_regiis.exe. If you run this program with the -i switch,it'll install that version of the framework with IIS. If you usethe /? switch you can see all of the options, including what you can doto install v1.1 for some of your ASP.Net applications, while using v2.0for others.

Hello,

there′s a "ready-to-use" application out there which I can recommend to switch between different .Net versions.

From the Official Site:http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

"The ASP.NET Version Switcher is a little utility that can be used to quickly switch the .NET Framework version that the ASPX pages are compiled against. This is helpful for developers who often have to test their web applications for compatibility with different version of the .NET Framework"
Internally, it uses the command line tool called ASPNET_REGIIS that is included in the Microsoft.NET Framework.
Additional features:
toggle if only selected vroot should be version switched or child vroots recursively (-s or -sn command line parameter)double click on node opens explorer in respective directoryquick link to IIS Manager

Switch Image

How do i switch an image after a user select/browse another image. I'm able to save the image back in the server database. but is not able to switch to the selected image. Please help...Could you please give us more information on what you are trying to do, and perhaps some code?

Ok, a user in the system which profile has been stored in the database including the path of his photo is viewing his particular. ie: name, address, phone number, his picture, etc. This user wish to change his current photo posted before. Thus, a HTML FileField is provided for him to browse the image and save it into our server. What i want to do is, when a user click on the Update button. The older picture shown in the page will be replaced with his newly given picture. The path of the picture stored in server is successfully updated. And I set the code to retrieve this user's profile including his picture from the database again after the Update button is clicked. I've tested the code by Updating picture and certain information, i noticed that all information can be updated and replacing the old information on the screen except that the picture did not change to the newly added picture in the database. Any idea...?
Try to add this to your page:
<meta http-equiv="Expires" content="0" />

Thanks PaaB. But it's not working. Where do i put that line anyway. I put it in between <HEAD> and </HEAD>. Am i right?

Yes it is the right place.
Can you show the source code.
When user chnege the image, is then changed path and name of the picture? I think about that when would be changed only path and not name of the picture then IE possibly use picture saved on client computer?


As i mentioned earlier. I have a HTML FileField where user can browse image and update it. the system will then saved the image into the server and update the directory stored in database. Finally, the system should display the latest image newly added by this user, but it is not. The path and directory of new image is updated in the database. same goes to the image saved in the server. I don't know if i'm right. if wrong, please correct me. i think that the system take the same image downloaded previously in temp folder. and if i'm right, is there any method that i can call client computer to download the image again? Please advise...Thank u


What object do you use for display picture - Image Web Control or Image Html Element? Do you update the ImageUrl/src parameter on the "uploading" postback?


I'm using Html element. After the new image has been saved on the server and its directory in the database. User can choose to view the same info again by a single click. Thus, i recall the sub that display the information once again. the code for image is like this.

myCommand =New SqlCommand("SELECT * FROM User_Profile WHERE ([User_ID] = '" & userid & "' AND [Company_ID] = '" & compid & "')", myConnection)

myReader = myCommand.ExecuteReader

myReader.Read()

imgUser.Src = myReader.Item("Photo")

thats it.. any mistake on this one?


This isn't related to your image issue, but you should be using Parameters with your SQL statement:

myCommand =NewSqlCommand("SELECT * FROM User_Profile WHERE ([User_ID] = @.user_id AND [Company_ID] = @.company_id ')",myConnection)
myCommand.Parameters.Add(New SqlParameter("@.user_id",SqlDbType.Integer)).Value = userid
myCommand.Parameters.Add(New SqlParameter("@.company_id",SqlDbType.Integer)).Value = compid




tried your suggestion, but it's not working. And even other information also is not displaying. i know the usage of parameters, usually i used it with stored procedure. there's nothing wrong with plain sql command compare with 1 that using parameter right?

nickless1 wrote:


imgUser.Src = myReader.Item("Photo")


You might try this to see if it makes a difference:
imgUser.Src = myReader.Item("Photo") & "?" & System.DateTime.Now().ToString()
Also, see this KB article:IIS: How to Disable Caching of Specific MIME Types

nickless1 wrote:


tried your suggestion, but it's not working. And even other informationalso is not displaying. i know the usage of parameters, usually i usedit with stored procedure. there's nothing wrong with plain sql commandcompare with 1 that using parameter right?


Sorry, I shouldn't have confused the issue. To protect yourself fromSQL injectionyou should always use parameters in SQL statements; you should neverconcatenate user-supplied data to a string to be executed. Ididn't meant to introduce another problem, however. Once you havesolved your image caching problem you can post another question aboutthe parameter problem.

Yes...It works. Thanks a lot. I couldn't open the page u gave. Would u mind to explain how it works? Thanks again...
I'm glad that approach worked for you. (And I've now corrected the link that I posted.)

Hi,
Im having kind of the same problem you have. Could you explain how you managed to solve it? as you might now, this issue is a brainbuster! :S