Thursday, July 30, 2009

VB.Net project?

So I am doing with my web project in VS 2005 I clicked the build-publish site. And save it to my desktop so I can open it in my web browser and see what it looks like totally done and compiled with a dll. I have ran it plenty of times on my computer while developing it I just want to see it as the final project. So i build to publish and when i click on the icon default.aspx and choose open with Internet explorer i get an error message on the page





The XML page cannot be displayed


Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.





A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/Administrator/De...


%26lt;%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_gip8cbnp" %%26gt;





But if I dubble click on the icon and open it in VS and then choose view in browers in works? How do i just view it in the browser without open up the VS first

VB.Net project?
You should probably move past all the wizards and crap, which just hides the complexity of IIS from you, and then butchers the configuration.





Instead, xcopy your project to the IIS server, open the "Internet Information Services" snap-in from the "Administrative Tools" item in Control panel on the machine that has IIS, and add a virtual directory for your application.





Then - you have to set up an Application Pool (under Application Pools in the folder tree on the left.) For Framework 2.0, you have to have a separate application pool, so call it "Net20AppPool" or something like that.





Go to the virtual directory you set up, and right click on Properties. In the "Directory" tab, set the drop down labelled "application pool" to your newly created app pool. Then go to the asp.net tab, and set the asp.net version to 2.0.5.027 (or whatever the 2.x version is).





If you don't see an asp.net tab, you do not have Framework 2.0 installed on the machine, and will have to add it.





But those wizards are crap... you can't rely on them for a serious deployment.


No comments:

Post a Comment