Configuration :: VS 2010 Works On Server / Download 4.0?
Nov 11, 2010
I have a website created with vs 2008 using 3.5 framework.When i do any changing int he code I used to do build website,add webdeployment,then build soultion.I go to deployment folder / release/bin/ .dll and use this file to update the previous dll file i have on the server. Now i am migrating to .net 4.0 on vs 2010. I opened my project in vs 2010 and by itself it migrated it.Then i created webdeployment. I noticed in the deployment folder i have an "obj" folder that also contains the dll file other than the one in "Release" folder.
Now what do i have to do?Can i do the same?take the dll that is under release/bin or or the one under objReleaseTempBuildDirin ? And on the server do i have to install vs 2010 so it works?or downloading .net 4.0 framework is enough?
View 1 Replies
Similar Messages:
Jan 6, 2011
i have a site that will enable users to download an ebook file.i have successfully built architecture to enable users to download pdf and txt files, but it won't work when i try with a .mobi file, even though i know the file exists.the site works by allowig users to upload their work as .doc, .docx or .odt. once it's verified, the site publishes it as .pdf, .txt and .mobi and makes it available for download. the download code is...
string mstitle = title.ToUpper();
string dlpath = [the server path] + msid + mstitle + ".mobi";[code]....
(there are also versions with .txt and .pdf) the file definitely exists at the location in .txt, .pdf and .mobi extensions. however, the .mobi version simply won't work i get an error 404 resource not found. mystifyingly, the pdf and txt versions work perfectly.
View 8 Replies
Aug 27, 2010
I have two web servers plus my desktop. I use Visual Studio 2008 to generate asp.net pages. I put a statement like:
response.write("Testing if function: " & if(0>1,"true","false") & "<br />")
in a code-behind file (test.aspx.vb). When I type it, Intellisense clearly recognizes the IF function and gives me guidance on the two overloaded versions. When I Build the page, it gives no errors, but when I View in Browser, I get an error: "BC30201: Expression expected." with the compiler details pointing to the IF. When I run the page on my test server, I get the same result, but when I run it on my production server, it works just fine.
View 5 Replies
Oct 8, 2010
I have a menu that uses a sitemap. The menu works locally, but not on the server. Below is my code for the menu, data source, and the sitemap. why I can run it locally and use the menu, but I cannot use the menu on the server?
[Code]....
View 9 Replies
Jun 22, 2010
i got this error on live server after uploading. On local server it's working fine Unable to validate data.ource:
System.WebTargetSite: Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32, Int32 ByRef)
StackTrace: at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString
View 6 Replies
Jul 14, 2010
I have used a dll named MARCEngine, which is used to read Marc data. I use a method named MARC2MARC21XML which converts a normal marc file to an XML file.
The problem is it works great on my local IIS, but when I upload it to the production server, it only generates the root node and not the child nodes.
Here is a snippet of my sample page :
[Code]....
Asp.net has the permissions to access the files geneated.
View 1 Replies
Apr 8, 2010
I have made a Website in Vs2008 on XP.Did the Url rewriting for this website by using Intelligencia.UrlRewriter.dll.It works fine locally.in my webconfing i did it like this ->
<rewriter>
<rewrite url="~/MstDealer/(.+).aspx" to="~/MstDealer.aspx?nTableKey=$1"/> <rewriter>
View 9 Replies
Nov 5, 2010
I can't believe the number of issues that seem to work fine on test but completely crash and burn on production.I have a situation where the code works fine in the test/development environment, but when you press a button in production, it crashes with:
[Code]....
Its just a button push, that is suppose to rebind a quantity change back to the database that the user has changed in a textbox in Gridview Edit.
[Code]....
[Code]....
View 3 Replies
Nov 15, 2010
I have a page which uploads a file from server A to server B. The user first uploads the file to server A, where it's saved into a diretory, then once the file is safely stored there, I'm transferring it to a second server, server B, using the following code:
[code]....
So, in summary, the only difference I can see between the working case and the non-working case is the server that'ssending the file.
View 4 Replies
Oct 12, 2010
I'm using MS Visual Web Developer 2010 Express to build a website that connects to a SQL server 2000 database. Is it possible to connect to SQL 2000 using providerName="System.Data.SqlClient"? I'm guessing not. Or am I limited to using providerName="System.Data.OleDb" ? And seems both connections are under this ADO.NET umbrella. confirm one way or the other ... I'm a bit confused.
From web.config:
<connectionStrings>
<add name="SubscrTypeConnectionString" connectionString="Provider=SQLOLEDB;Data Source=my-server-host;Persist Security Info=True;Password=123abcde;User ID=test;Initial Catalog=Apps"
providerName="System.Data.OleDb" />
</connectionStrings>
So I believe I need to use OleDbCommand calls. I've seen many examples to do gridview select/edit/delete using SqlClient but not OleDb calls in VB code. Links to sample code would be great.
View 2 Replies
Oct 29, 2010
I have created a basic horizontal menu in MVWD 2010 which works when I debug it on my own machine. But as soon as I upload to a ASP.net 3.5 sever online, the dynamic aspect doesnt work. Are there some major differences in frameowrk 3.5 to 4?
View 3 Replies
Mar 21, 2010
I have a gridview with a Download button that serves a download to a user. I put it in App_Data so its secure so people can't try to download it. However, when I use this code, the save as dialog box pops up, and when i hit save as, the file immediately finishes loading - and it's just 0 bytes. The file is 5 Megabytes.
[Code]....
View 3 Replies
Mar 20, 2010
here's the code so far:
[Code]....
[Code]....
mov is a quicktime file, my server has the mimetype: video/quicktime .......... but as I read, this code forces the save as download box which is exactly what i want :) now, here's the catch, i the file I am fetching is NOT on the physical path... it is on a completely different server:Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Response.Clear()
Response.ContentType = "x-msdownload"
Response.AppendHeader("Content-Disposition", ("attachment; filename=mydownload.mov"))
Response.TransmitFile("http://myOTHERserver.com/files/mydownload.mov")
Response.End()
End Sub
Obviously this doesn't work since TransmitFile requires that the file be on your physical path, so how do i do this? Someone said you must use the stream method. Do you have any sample code I could try? I've tried the HTTPStreamReader object but it's giving me issues, so I would love to find out if there is anyway this might work. Now here's some more important information: this are HUGE video files.. we are creating a downloads page... written in asp.net -- so you create an account using the .net membership class, then you select the file you want, go through a form where you enter your billing info and then after you pay a certain fee (this is already implemented), you go to your "downlaods" area in your account... there you have access to the files......... the reason i'm doing this is because i want to hide the download link, which will be something likehttp://myOTHERserver.com/2340987sdfkjhalsdlkjh23 ... (something really crazy)....... we don't want people seeing this on the status bar (Therefore hiding the download link is ESSENTIAL)........ the files are a good 500MB each approximately; so i would love to hear all of your suggestions as to making the streamreader work for me and how long would it take for the streamreader to READ the file........
View 7 Replies
Mar 30, 2011
I am installing MS Visual Studio 2010 on my PC and will develop website on it. I have developed my old asp.net websites on MS Visual Studio2005.Our webserver where we publish our websites on Windows Server 2003.I want to know that whether we can publish websites develop in MS Visual Studio 2010 on Windows Server 2003?
View 4 Replies
Jul 6, 2010
Ok, this might sound as a silly question, but I am a newbie without experience, and I am curious how stuff works, I am not for the "just works".
The default website generated by VWD2010 is documented somewhere? I searched in MSDN but no luck.
If i understand how it works, it would be better, to understand how login is implemented, the master page, and so on.
View 2 Replies
Sep 22, 2011
I'm binding data from a SQL table to a GridView. The data looks like this:
During the initial bind, all I'm pulling is the raw data and adding it. As each row is bound, I convert the latter two columns into the hyperlinks like so:
VB.NET Code:
'Get the second link text Dim lnktextBOM As String = e.Row.Cells(2).Text 'Create link Dim lnkBOM As New HyperLink lnkBOM.NavigateUrl = getSqlData.getBomURL("notebooks", e.Row.Cells(0).Text, e.Row.Cells(1).Text) lnkBOM.Text = lnktextBOM 'Add the link to the cell e.Row.Cells(2).Controls.Add(lnkBOM)
Which all works great. However, if I'm using Chrome and I click on the URL, nothing happens. On FireFox, a 404 is thrown. But on IE, it works perfectly.
what I'm doing wrong here? Below is an example of the URL:
CTSFS01SharedOPERATIONDWURBOMAdamo__PROJECT A.xls
View 6 Replies
Jan 4, 2010
i am using amazon s3 service. now i want to show download dialog box in my asp.net application when user come on download page. i am using amazon sdk.
View 1 Replies
Jul 31, 2010
I'm having an issue that has made me loose too many hours already. My site works fine in VS2008 with SQL Express 2008. However, when I try to deploy the site following these steps:
1. Create a new site IIS 7.0
2. Copy all the files from my code folder to IIS 7.0, (I was planning to delete the code latter)
3. Browse to my Index.aspx
The error message I receive is Cannot open database "AnimalSafe" requested by the login. The login failed. Login failed for user 'NT AUTHORITYNetwork Service'. I've already changed the application pool to use Network Service to authenticate and have made sure that SQL is running under this account.
View 3 Replies
Apr 8, 2010
we are a small team of student developers and we are making a website with a silverlight application hosted on the sample website of VS 2010(i mean the one you go New website new asp.net website).But we cant understand how the login works or how we can put roles like administrator and such.Also we are using master pages and pages and i would like to know how can we make container to not being visible to an unregistered user and how to be visible in registered or better to a spesific user.
View 1 Replies
Sep 8, 2010
I'm building a site using the .NET 4 framework using routing and MasterPages.
Because I'm using both routing and MasterPages, I can't see any way how to get value from control on the previous page. To solve this I've used the code behind to store the control's value in a session variable. Is there a way to retrieve a value from a control using PreviousPage or something when using Routing and MasterPages?
This works fine in VWD debug mode and in IIS 5.1, but when I try to deploy it on my Windows Server 2008 (IIS7.5) machine, it get this error:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.
Here is a copy of my web.config file:
[Code]....
View 4 Replies
Feb 1, 2011
Have a project that was created in Visual Studio 2008 and deployed to a 64-bit Windows 2003 server. This application references a 32-bit Interop.ActiveDs.dll. The applications were originally compiled for 'Any CPU', however, explicitly compiling as 'x86' doesn't solve the problem. The project targets the 3.5 framework.
The server is running IIS 6.0 in 64-bit mode. When we deploy the version compiled in Visual Studio 2008, the app runs perfectly fine; all pages show up. In retrospect, this is actually surprising.We migrated the application to Visual Studio 2010 (we did not change the targeted framework) and redeployed. Now we get a BadImageFormatException loading Interop.ActiveDs.dll. Which actually makes more sense than the 2008 version running.To solve the problem, we set Enable32bitAppOnWin64 to true and ran aspnet_regiis.exe -i from the 32-bit folder of the 2.0 framework (as per various instructions on the web). In IIS, web service extensions, there were two versions of ASP.NET 2.0, one for 32-bit and one for 64-bit. We prohibited the 64-bit version, restarted IIS, and launched the website.
What we expected: The app to run as 32-bit, load the interop, and display
What we got: "Service Unavailable"All other web pages that were previously working displayed the same message, as did the Visual Studio 2008 version.The support page here describes the problem exactly, but tells us to do exactly what we did to resolve the problem (enable 32-bit mode).We've rolled back to 64-bit mode in IIS and deployed the Visual Studio 2008 version for now, but we really need to figure out how to make this app run and load the interop (there are also 32-bit Oracle DLLs that are referenced)Two questions:Why does the Visual Studio 2008 version work at all??
How do we get the Visual Studio 2010
View 1 Replies
Mar 26, 2011
I have a simple asp.net web page that lists and inserts records into an access db. It works fine by pressing F5 to run in the VS 2008 IDE (Localhost:port) but won't work when it is published. The log shows this error 500 0 0 207.
View 5 Replies
May 26, 2010
I am running on Windows Server 2003. The former site was a .Net 2.0 website built using VWD 2005 as I recall. I downloaded VWD2010 and upgraded the project (from the fileset on the server). Initially I got an error stating: 'Unrecognized attribute 'targetFramework'.
I went into IIS, clicked properties for my application, and set the ASP.NET version to: 4.0.30319. When I restarted IIS, the project could not find any of the 'pages' (i.e., Page Not Found) for all pages. I ran: aspnet_regiis -i Essentially, the web server acts like the application doesn't even exist with the 'Page Not Found' error. I'm sure this has to be a simple issue - but I can't figure it out so far
View 3 Replies
Aug 9, 2010
I created a web application (VS 2008 + SP1) and deployed it on my shared hosting with ASP.NET 2.0 support. I started getting errors
could not load type <page class name>
I tried resolving it but it did not work. The hosting provider told me that they have full support of .NET 2.0 framework. I tried a few inline code samples and they worked fine. Then I again deployed a small compiled website project and it also worked fine.
I dont understand. why is that when i deploy a web application project it fails and if i convert the same thing into website project it works.
View 2 Replies
Mar 19, 2010
i once downloaded it from the express site but now i can not find it again.
View 1 Replies