Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Issues getting wrapper to work in Master page

$
0
0

We are trying to deploy a ASP.NET web app that needs a wrapper which puts a background outside the website.  The starting page doesn't use the Master page and I am able to get the wrapper to work fine.  I put the exact same code and CSS reference in the Master page and it completely ignores it.  The Master page is pulling in the CSS reference because the top menu in it and the starting page uses the same CSS file and the menu is working in the Master page as it should.  Am I missing some basic rule here on wrapper CSS and Master page interaction?

This code should center the website and add the background GIF outside the website.  It does on the Starter page, and does neither on the Master page file.

CSS
.wrapper { border: 0px; margin: 0px; padding: 0px; background: url(../images/menu/wrapperbkgd.gif); width: 100%; }
.content { margin: 0px auto; width: 1000px; text-align:left; }

Starter Page & Master Page
<body>
<div class="wrapper">
<div class="content">
... rest of page ...
</div>
</div>


Difference between Visual Studio Developer 2010 and Visual Studio 2010

$
0
0

I want to create MVC project, Visual Studio Developer 2010 and Visual Studio 2010, which one I can choose? please help me

What's the latest VWD version?

$
0
0

Sir,

I use WIndows 7, I want to know what the latest VWD version is? and where can I download it? thanks in advance.

note: If anyone can provide some MVC video/documents tutorials, it will be awesome.

How to leave out some script from page if running page locally

$
0
0

Hi,

I have some Google analytics code on my pages. It is in a layout MVC tempate which my pages use. When I run in Visual Studio, I think the code is triggering a hit which I do not want. I only really want it on the published live version.

How would I prevent this from happening?


Thanks,

I need visual web development

$
0
0

I'm a studiant and need visual web development

VS 2013 WCF DataService and IIS Request Error

$
0
0

Hi!

Hope someone can help with this. Been working on it all day!

I have Visual Studio 2013 Professional and am using .NET 4.5.1 to make a "WCF Service Application" that uses the System.Data.Services.DataService class.

All of the code gets generated ok. But when I press F5 to run in either IIS or IIS Express, the response is "Request Error".

I have:

* Registered .NET

* Enabled the .NET 3.5 HTTP Activation

* Started IIS Express manually (works fine)

Since the code is generated for me and I am not doing anything special (nothing at all!), I cannot see what is wrong. Setting a breakpoint shows me that it goes into the framework and bombs out immediately. Any help to setup logging or tracing would be appreciated.

Thanks,

Eamonn J.

HyperLink

$
0
0

I'm using visual express for windows phone and want to write code for a hyperlink text. How do I write the code for a user clicking on the link and then being transferred to the linked paged?

Secure asp.net application in VWD

$
0
0

Sir,

I developed a simple asp.net application in VWD 2010, I want to secure it, how can I handle it? please help me


ASP.NET Infrastructure

$
0
0

Sir,

I want to learn ASP.NET Infrastructure, but few resources give systematic explanation, any help

work with Visual Web Developer and ASP.NET

$
0
0

Sir,

Can you provide some guide to work with Visual Web Developer and ASP.NET? thanks

How to prevent flash light of Ajax Real Time Chart - MS Chart

Add reference to winSCP not working in Production

$
0
0
<div class="body">

Hi,

I have basic knowledge in c#, I'm developing a website by using visual studio 2012, one fuction is to sftp file to remote server, I noticed that sftp is not supported by asp.net, I downloaded third party dll file (winSCP), in the visual studio I did add reference to the dll file and I could sftp and work normally. but then when I needed to transfer my website to the production server, I got error below:

Compiler Error Message: CS0246: The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)

Line 10: using System.IO;

Line 11: using System.Xml.XPath;

Line 12: using WinSCP;

Line 13: using System.Web.SessionState;

Line 14: using System.Threading;

<div id="x_x_compilerOutputDiv">
C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror-  "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.13.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.3.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.1.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.18.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.11.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.6.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.4.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.16.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.5.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.14.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.2.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.12.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.17.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.7.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.10.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.15.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.9.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\07c93e6a\1853e4e4\App_Web_1p011v4r.8.cs"


Microsoft (R) Visual C# Compiler version 4.0.30319.18408

for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.

d:\inetpub\wwwroot\Dev_Final\intermediateLoad.aspx.cs(12,7): error CS0246: The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)
d:\inetpub\wwwroot\Dev_Final\Profile_result.aspx.cs(12,7): error CS0246: The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)
d:\inetpub\wwwroot\Dev_Final\Search.aspx.cs(12,7): error CS0246: The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)
</div>

Please I need your help ... thanks a lot in advance,

Firas</div>

cant invoke a fileupload

$
0
0

i need to call a fileupload field that is generated in c#, but my problem is that teh name that i am calling does not exist , can someone help ? i only put part of code that matters , if you need all code you can just ask and ill post it here 

            topico.Controls.Add(topico2);
            dr.Cells.Add(topico);
            TableCell descricao = new TableCell();
            FileUpload descricao2 = new FileUpload();
            descricao2.ID = "descricao_"+a;
            // Add the control to the TableCell
            descricao.Controls.Add(descricao2);
            dr.Cells.Add(descricao);
            tableResult.Rows.Add(dr);
            resultHolder.Controls.Add(tableResult);


            string filename = Path.GetFileName(descricao_ + a.PostedFile.FileName);

            Stream str = descricao_ + a.PostedFile.InputStream;
            BinaryReader br = new BinaryReader(str);

Website publish failing due to file path being too long

$
0
0
<div class="body">

I am trying to publish a Website project from a vendor that has ridiculously long paths to some of its files. When publishing, the error is:

    The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

When I publish, Visual Studio 2012 Update 3 is attempting to write to a temp directory, and the prefix is quite long:

     C:\Users\cuser\AppData\Local\Temp\WebSitePublish\MidasCMS400v9-1580334405\obj\Debug\Package\PackageTmp\

I thought I might be able to redirect VS to a different temporary directory at `c:\tem` by following this SO answer: http://stackoverflow.com/questions/16526022/temp-path-too-long-when-publishing-a-web-site-project

I create my publication profile, and as soon as I open it, there is an error indicating that `WebPublishMethod` is not an element of `PropertyGroup`. Regardless, I updated the file so it looks like this:

    <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <WebPublishMethod>FileSystem</WebPublishMethod>
        <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
        <LastUsedPlatform>Any CPU</LastUsedPlatform>
        <SiteUrlToLaunchAfterPublish />
        <ExcludeApp_Data>False</ExcludeApp_Data>
        <publishUrl>C:\Sites\MidasPublish</publishUrl>
        <DeleteExistingFiles>False</DeleteExistingFiles>
        <AspnetCompileMergeIntermediateOutputPath>c:\tem\</AspnetCompileMergeIntermediateOutputPath>
      </PropertyGroup>
    </Project>

When I try to publish, I get the a modal box pop-up entitled "File Modification Detected", with the message "The project YourWebsite has been modified outside the environment", and it asks me if I want to reload. In my error list, I continue to get the error about the path being too long, as it is not attempting to use the `c:\tem` directory I identified.

I need to put this bloody thing onto a server, I am up for any solution that allows me to publish it. I don't know much about the Website project template, so please let me know if there is a better way.

Thanks!

</div>

Map a Folder to a Different Local Path

$
0
0

How to change a local path mapping of a single application folder?

I read some suggestions about changing work spaces, but I am afraid this will affect the mapping of the entire application and maybe other applications that belong to the same workspace.

All I want is to remove that tie between source control and that single folder.


Visual Studio 2013 - Cannot debug javascript after uninstalling IE 11

$
0
0

Hi,

I am using VS 2013 Update 4. I develop web applications using MVC4+.

I WAS using IE 10. The checkbox to automatically update was checked, so one morning aftger a corporate Windows update push I discovered that I now had IE 11. IE 11 turned out to be a tremendous nuisance in my development environment. There were so many time-consuming issues that I uninstalled IE 11. After the uninstall, I saw that now I had IE 9. I had thought that IE 10 would have been restored.

But something else was disturbed during the uninstall, or so I surmise. Now, I am completely unable to debug javascript, even if it is placed in an external file. Visual Studio USED to display script documents when I began to debug. I would select the page and set what ever breakpoints I wanted and all worked well. Now, Visual Studio no longer displays script documents.

What should I do now?

Should I download IE 10 again, presuming I can find a version for download in English?

Should I download IE 11 and just put up with its shennanigans, knowing that improvements will be forthcoming?

Is there someway to configure Visual Studio to operate as it did before I uninstalled IE 11 (i.e. displaying script documents and debugging code that way)?

Is there some patch I need to install in order to debug javascript?

Thank you in advance,

Arnold

How to publish a website

$
0
0

Hello

I created a new website using VS EXPRESS for web 2013

I want to publish it to a local server 

what steps should I do?

thank you

enabling visual studio er diagram creating feature on asp.net web page

$
0
0

i need help regarding "how to enabling visual studio er diagram creating feature on asp.net web page" . can plz anyone help me how i can do this . ?? what reference assemblies i will be needing to augment this feature on my web page

vs2015 msbuild

$
0
0

Not sure if it's the right place for the question, but here it goes:

I installed Vs2015, and everything looks cool.  Then I want to setup a build environment on my build server.  I copied the MSBuild\14.0 folder from my VS 2015 machine to the build server, but the MSBuild won't run. It ask for a System.Threading.Tasks.Dataflow dll.

So copied that file over, it worked, but it uses the old CSC, i.e. the one under .Net 4.0.3019

I need it to use the csc2 under the 14.0 folder.

Who got it to work?

Enable Breakpoints in a Single Document

$
0
0

Currently I could go to 'Debug menu --> Enable All Breakpoints' to enable all points.

How to do this for just a single document? 

Viewing all 3509 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>