Showing posts with label copy. Show all posts
Showing posts with label copy. Show all posts

Wednesday, March 28, 2012

The best way to update a site?

Hello!
I currently have a site online. I added more features to my datagrid page,
so users can update and stuff. I though I could just copy the aspx, aspx.vb
and the server page including the web config, and paste then on the server.
At c:\intepub\wwwroot\website.
But now I get a runtime error when I go to that page. What is the best way
to update a site after maiking modifications on the developer machine?
TIA
Rudy"Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...

> I currently have a site online. I added more features to my datagrid
> page,
> so users can update and stuff. I though I could just copy the aspx,
> aspx.vb
> and the server page including the web config, and paste then on the
> server.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best
> way
> to update a site after maiking modifications on the developer machine?
1) What exactly do you mean by "the server page"?
2) Why are you trying to copy the .vb files?
3) Are you using Visual Studio.NET?
Typically, you do not have to move the files containing source code to the
web server (eg .cs, .vb, etc.), you only need to move the content files
(.aspx, .htm, .css, .config, etc.).
When you make updates to the code, you need to rebuild the project and then
copy the content files and the new dll over to the webserver. When you buil
d
the project, your "code files" are compiled into the dll
(yourapp/bin/youapp.dll).
Hope this helps. You may also try google to get a better understanding of
the deployment process and why certain files are needed on the webserver and
others are not.
"Rudy" wrote:

> Hello!
> I currently have a site online. I added more features to my datagrid page
,
> so users can update and stuff. I though I could just copy the aspx, aspx.
vb
> and the server page including the web config, and paste then on the server
.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best wa
y
> to update a site after maiking modifications on the developer machine?
> TIA
> Rudy
> But now I get a runtime error when I go to that page. What is the best
way
> to update a site after maiking modifications on the developer machine?
Sounds like you are using VS.net and, as such, you are likely compiling all
your vb pages into a DLL before uploading.
So, if that is the case, you don't want to upload your .vb files, but,
rather, recompile the project, upload your ASPX pages, and then upload your
project's dll file (in the BIN folder).
-Darrel
As a result of what everyone has suggested, please note that re-deploying
your website will cause all session state information to be lost (that is if
you do use In-process state). So, if this is a very busy website, I
wouldn't want to tick your user's off by killing their session information
when you update. So, do you updates at a time when it is not that busy
"Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...
> Hello!
> I currently have a site online. I added more features to my datagrid
> page,
> so users can update and stuff. I though I could just copy the aspx,
> aspx.vb
> and the server page including the web config, and paste then on the
> server.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best
> way
> to update a site after maiking modifications on the developer machine?
> TIA
> Rudy
Thank you all who replied! I got my site up and running. I forgot about the
dll, and just put the vb files because i thought it couldn't hurt. But is
there harm put those files in, they are not very big.
Anyway, I dumped my entire site and just loaded in a new one. When I moved
the project file from my home to my office developer computer, and named the
project diffrent, off by one letter. So my new project was a little diffrent
then what I had on the server. It's a intranet site, so I just sent a memo
about the new name. Not sure how that happened, but I do remember I had a
heck of a time moving the project over and getting it to work again. Thanks
again!
Rudy
"Tampa.NET Koder" wrote:

> As a result of what everyone has suggested, please note that re-deploying
> your website will cause all session state information to be lost (that is
if
> you do use In-process state). So, if this is a very busy website, I
> wouldn't want to tick your user's off by killing their session information
> when you update. So, do you updates at a time when it is not that busy
> "Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
> news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...
>
>

The best way to update a site?

Hello!

I currently have a site online. I added more features to my datagrid page,
so users can update and stuff. I though I could just copy the aspx, aspx.vb
and the server page including the web config, and paste then on the server.
At c:\intepub\wwwroot\website.
But now I get a runtime error when I go to that page. What is the best way
to update a site after maiking modifications on the developer machine?

TIA

Rudy"Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...

> I currently have a site online. I added more features to my datagrid
> page,
> so users can update and stuff. I though I could just copy the aspx,
> aspx.vb
> and the server page including the web config, and paste then on the
> server.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best
> way
> to update a site after maiking modifications on the developer machine?

1) What exactly do you mean by "the server page"?

2) Why are you trying to copy the .vb files?

3) Are you using Visual Studio.NET?
Typically, you do not have to move the files containing source code to the
web server (eg .cs, .vb, etc.), you only need to move the content files
(.aspx, .htm, .css, .config, etc.).

When you make updates to the code, you need to rebuild the project and then
copy the content files and the new dll over to the webserver. When you build
the project, your "code files" are compiled into the dll
(yourapp/bin/youapp.dll).

Hope this helps. You may also try google to get a better understanding of
the deployment process and why certain files are needed on the webserver and
others are not.

"Rudy" wrote:

> Hello!
> I currently have a site online. I added more features to my datagrid page,
> so users can update and stuff. I though I could just copy the aspx, aspx.vb
> and the server page including the web config, and paste then on the server.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best way
> to update a site after maiking modifications on the developer machine?
> TIA
> Rudy
> But now I get a runtime error when I go to that page. What is the best
way
> to update a site after maiking modifications on the developer machine?

Sounds like you are using VS.net and, as such, you are likely compiling all
your vb pages into a DLL before uploading.

So, if that is the case, you don't want to upload your .vb files, but,
rather, recompile the project, upload your ASPX pages, and then upload your
project's dll file (in the BIN folder).

-Darrel
As a result of what everyone has suggested, please note that re-deploying
your website will cause all session state information to be lost (that is if
you do use In-process state). So, if this is a very busy website, I
wouldn't want to tick your user's off by killing their session information
when you update. So, do you updates at a time when it is not that busy

"Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...
> Hello!
> I currently have a site online. I added more features to my datagrid
> page,
> so users can update and stuff. I though I could just copy the aspx,
> aspx.vb
> and the server page including the web config, and paste then on the
> server.
> At c:\intepub\wwwroot\website.
> But now I get a runtime error when I go to that page. What is the best
> way
> to update a site after maiking modifications on the developer machine?
> TIA
> Rudy
Thank you all who replied! I got my site up and running. I forgot about the
dll, and just put the vb files because i thought it couldn't hurt. But is
there harm put those files in, they are not very big.
Anyway, I dumped my entire site and just loaded in a new one. When I moved
the project file from my home to my office developer computer, and named the
project diffrent, off by one letter. So my new project was a little diffrent
then what I had on the server. It's a intranet site, so I just sent a memo
about the new name. Not sure how that happened, but I do remember I had a
heck of a time moving the project over and getting it to work again. Thanks
again!

Rudy

"Tampa.NET Koder" wrote:

> As a result of what everyone has suggested, please note that re-deploying
> your website will cause all session state information to be lost (that is if
> you do use In-process state). So, if this is a very busy website, I
> wouldn't want to tick your user's off by killing their session information
> when you update. So, do you updates at a time when it is not that busy
> "Rudy" <Rudy@dotnet.itags.org.discussions.microsoft.com> wrote in message
> news:9FB474C1-0B6A-4216-BCD8-5248826FC1EE@dotnet.itags.org.microsoft.com...
> > Hello!
> > I currently have a site online. I added more features to my datagrid
> > page,
> > so users can update and stuff. I though I could just copy the aspx,
> > aspx.vb
> > and the server page including the web config, and paste then on the
> > server.
> > At c:\intepub\wwwroot\website.
> > But now I get a runtime error when I go to that page. What is the best
> > way
> > to update a site after maiking modifications on the developer machine?
> > TIA
> > Rudy
>

The compiler failed with error code 128

I have a C#.NET application running perfectly on my notebook but when I copy it up to our development server I get the above error message. The Compiler Output has "C:\Program Files\SAP\ITS\6.20\WGATE\traces> ...

SAP\ITS is an ISAPI Filter that runs to provide Web access to SAP. My application not using SAP for anything.

We found one Weblog that mentioned a rogue ISAPI filter and moving it's priority below ASP.NET fixed their problem. We tried moving the ITS ISAPI filter below ASP.NET, rebooted the machine and it worked. We don't know if the reboot fixed it or the moving of the ISAPI filter.

After I made a change to the C# application and re-copied the .DLL to the server it died again with the same message.Check out this discussion on GotDotNet:

http://www.gotdotnet.com/community/messageboard/Thread.aspx?id=139158&Page=1

Saturday, March 24, 2012

The default page is only showing HTML when copied to Host.

Hi Guys,

I'm working on a little site for a friend (my first!) I've been viewing in browser and everything is going fine, but when I copy the site to the hoster for further development all I'm seeing is html. I'm usingwww.streamline.com as the host, I have all the settings correct (I think), and I have set the webconfig file debug to false.

So, what am I doing wrong.

below is the code from the masterpage. (yes, I'm sure it's messy, but I haven't done the css yet).

<%@dotnet.itags.org. Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body bgcolor="#bdd8ea"> <form id="form1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 60px; width: 850px; position: absolute; top: 13px; height: 370px;"> <tr> <td align="left" style="background-color: #ffffff; width: 850px; height: 3px;" valign="top"> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center"> <span style="font-size: 24pt; color: #3300ff; font-family: Arial;"></span> </p> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center">  </p> <p align="center" class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: center">  </p> </td> </tr> <tr> <td align="left" style="background-color: #ffffff; width: 850px; height: 31px;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 1px; width: 99.5%; position: absolute; top: 137px"> <tr> <td align="left" style="width: 109px; background-color: #099ccf; height: 30px;" valign="bottom"> </td> <td align="left" style="background-color: #099ccf; height: 30px; font-weight: bold; font-size: 15pt; color: #ffffff; font-family: 'Microsoft Sans Serif'; vertical-align: middle; width: 554px; text-align: left;" valign="bottom"> <asp:Literal ID="Literal1" runat="server"></asp:Literal></td> <td align="left" style="background-color: #099ccf; height: 30px;" valign="bottom"> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 101; left: 0px; width: 100%; position: absolute; top: 168px; border-left-width: thin; border-left-color: #ffffff;"> <tr> <td align="left" style="border-top: #099ccf 2px solid; width: 3px; height: 288px; background-color: #ffffff" valign="top"> </td> <td align="left" style="border-top: #099ccf 2px solid; width: 122px; height: 288px; background-color: #ffffff; text-align: right;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 3px; width: 100%; position: absolute; top: 5px; height: 189px;"> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="default.aspx" onmouseover="document.images.pic1.src='Images/Home_Over.gif'" onmouseout="document.images.pic1.src='Images/Home_Out.gif'"> <img src="Images/Home_Out.gif" name="pic1" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Services.aspx" onmouseover="document.images.pic2.src='Images/Services_Over.gif'" onmouseout="document.images.pic2.src='Images/Services_Out.gif'"> <img src="Images/Services_Out.gif" name="pic2" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="CurrentProjects.aspx" onmouseover="document.images.pic3.src='Images/CurrentProjects_Over.gif'" onmouseout="document.images.pic3.src='Images/CurrentProjects_Out.gif'"> <img src="Images/CurrentProjects_Out.gif" name="pic3" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="FutureProjects.aspx" onmouseover="document.images.pic4.src='Images/FutureProjects_Over.gif'" onmouseout="document.images.pic4.src='Images/FutureProjects_Out.gif'"> <img src="Images/FutureProjects_Out.gif" name="pic4" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Gallery.aspx" onmouseover="document.images.pic5.src='Images/Gallery_Over.gif'" onmouseout="document.images.pic5.src='Images/Gallery_Out.gif'"> <img src="Images/Gallery_Out.gif" name="pic5" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="Testimonials.aspx" onmouseover="document.images.pic6.src='Images/Testimonials_Over.gif'" onmouseout="document.images.pic6.src='Images/Testimonials_Out.gif'"> <img src="Images/Testimonials_Out.gif" name="pic6" border="0"></a> </td> </tr> <tr> <td align="center" style="border-bottom: #ffffff 2px solid; background-color: #ffffff" valign="middle"> <a href="UsefulLinks.aspx" onmouseover="document.images.pic7.src='Images/UsefulLinks_Over.gif'" onmouseout="document.images.pic7.src='Images/UsefulLinks_Out.gif'"> <img src="Images/UsefulLinks_Out.gif" name="pic7" border="0"></a> </td> </tr> <tr> <td align="center" style="background-color: #ffffff" valign="middle"> <a href="ContactUs.aspx" onmouseover="document.images.pic8.src='Images/ContactUs_Over.gif'" onmouseout="document.images.pic8.src='Images/ContactUs_Out.gif'"> <img src="Images/ContactUs_Out.gif" name="pic8" border="0"></a> </td> </tr> </table> </td> <td align="left" style="width: 10px; height: 288px; background-color: #ffffff; border-top: #099ccf 2px solid; border-left: #099ccf 1px solid;" valign="top">  </td> <td align="left" style="width: 473px; height: 288px; background-color: #ffffff; border-top: #099ccf 2px solid; font-size: 10pt; color: buttonshadow; font-family: 'Microsoft Sans Serif';" valign="top">  <br /> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> <td align="left" style="width: 10px; height: 288px; background-color: #ffffff; border-right: #099ccf 2px solid; border-top: #099ccf 2px solid;" valign="top">  </td> <td align="left" style="width: 155px; height: 288px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" style="width: 3px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf;" valign="top">  </td> <td align="left" style="width: 122px; height: 20px; background-color: #ffffff; text-align: right; border-top-width: 2px; border-top-color: #099ccf;" valign="top"> </td> <td align="left" style="width: 10px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf; border-left: #099ccf 1px solid;" valign="top"> </td> <td align="left" style="border-top-width: 2px; width: 473px; border-top-color: #099ccf; height: 20px; background-color: #ffffff" valign="top"> </td> <td align="left" style="border-right: #099ccf 2px solid; width: 10px; height: 20px; background-color: #ffffff; border-top-width: 2px; border-top-color: #099ccf;" valign="top">  </td> <td align="left" style="width: 155px; height: 20px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" height="3" style="width: 3px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 122px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 10px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 473px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 10px; background-color: #ffffff" valign="top"> </td> <td align="left" height="3" style="width: 155px; background-color: #ffffff" valign="top"> </td> </tr> <tr> <td align="left" style="width: 3px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 122px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 10px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 473px; background-color: #bdd8ea; text-align: center;" valign="top"> <span style="color: dimgray"><span style="font-size: 8pt"><span style="font-family: Arial"><span style="color: dimgray; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-GB; mso-bidi-language: AR-SA"><strong style="vertical-align: middle">? </strong></span>T and S Wilson 2007/2008</span></span></span></td> <td align="left" style="width: 10px; background-color: #bdd8ea" valign="top"> </td> <td align="left" style="width: 155px; background-color: #bdd8ea" valign="top"> </td> </tr> </table> </td> </tr> </table> </div> </form></body></html>

Most likely ASP.NET is not setup on the site. Check with the host to be sure the site is on an IIS server running the version of ASP.NET (2.0|3.5) that you have built the site with. Most likely they have not setup ASP.NET on the server.


Thanks. They only open 10am til 4pm gmt so I'll ask them tomorrow.


I don't think you host provides .Net, or if they do .. most probably not 2.0/3.5


Looks like Streamline is a merchant company, not a hosting company.


What is the difference, they offer hosting?


Yes, they charged me an extra 35 quid for the ASP.NET framework, still only 4.5 quid a month though, so not bad.

Ta!


Sorry for my ignorance, but what is a quid in relation to a pound? I know a pound is a little more than a US $ and a pence is similar to our penny.


'Quid' is slang for 1 pound sterling (roughly $2), and a penny is roughly 2 cents.

Everybody says quid, and it's easier on a computer in case the reader's browser doesn't support the Libre 'pound' symbol. For instance, in the british civil service, I believe it is common practice to use a small i instead of the pound symbol.

You learn something every day!


Cool! I was watching the office on BBC America last night and they were talking about Quid. The manager paid the secretary 100 quid to help him in a motivational speaking event.

The dreaded asp.clipboard

Hello all

I have the need to copy something to the clipboard via 3rd party type library and then pick it up on the .NET side via the clipboard (all server-side). To complicate the issue, the application needs to be web oriented (ASP.NET)

I have a console version that work, but I can't seem to get the ASP side working. I have included the Forms assembly and I'm able to write to the clipboard via the 3rd party, but the clipboard is always unassigned (null) in ASP.NET when in fact the clipboard can be pasted into PhotoShop

I've searched a lot of articles about this issue. Some suggest that it's a permissions issue. To rule out permissions, I have the site impersonate. The impersonating identity is myself and since I can past into Photoshop, I can only assume my identity has access to the clipboard

Any insight is appreciated

Thanks
Bilthis is a permissions issue. your aspnet account needs permission to
manipulate system resources on the desktop

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Bill Belliveau" <anonymous@.discussions.microsoft.com> wrote in message
news:06D644D5-E7C1-47D1-97AC-826157A1BFA2@.microsoft.com...
> Hello all,
> I have the need to copy something to the clipboard via 3rd party type
> library and then pick it up on the .NET side via the clipboard (all
> server-side). To complicate the issue, the application needs to be web
> oriented (ASP.NET).
> I have a console version that work, but I can't seem to get the ASP side
> working. I have included the Forms assembly and I'm able to write to the
> clipboard via the 3rd party, but the clipboard is always unassigned (null)
> in ASP.NET when in fact the clipboard can be pasted into PhotoShop.
> I've searched a lot of articles about this issue. Some suggest that it's
> a permissions issue. To rule out permissions, I have the site
> impersonate. The impersonating identity is myself and since I can past
> into Photoshop, I can only assume my identity has access to the clipboard.
> Any insight is appreciated.
> Thanks,
> Bill
Alvin,
Thanks for the response

Maybe I'm missing something else then. Before impersionation I tried setting the processModel user to SYSTEM, and had the same problem. I have also added the ASPNET account to the 'run as part of the operation system' policy with no luck

When I call, clipboardData.GetDataPresent(DataFormats.Bitmap) the exception being returned is null object (Object reference not set to an instance of an object.). The most likely cause is permissions, but as far as I can tell I've tried giving the adequate permissions - or am I missing something

Thanks again
Bill
can you impersonate to an authenticated user and see if this works?

Otherwise post your code and i'll work with you on it

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Bill Belliveau" <anonymous@.discussions.microsoft.com> wrote in message
news:C8A65D45-FCD3-4871-A822-79EA22F5E7A7@.microsoft.com...
> Alvin,
> Thanks for the response.
> Maybe I'm missing something else then. Before impersionation I tried
> setting the processModel user to SYSTEM, and had the same problem. I have
> also added the ASPNET account to the 'run as part of the operation system'
> policy with no luck.
> When I call, clipboardData.GetDataPresent(DataFormats.Bitmap) the
> exception being returned is null object (Object reference not set to an
> instance of an object.). The most likely cause is permissions, but as far
> as I can tell I've tried giving the adequate permissions - or am I missing
> something?
> Thanks again.
> Bill