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

RE: Re: Master Page & BlogEngine

$
0
0

I loaded my blog (BlogEngine) into Visual Studio 2010 via the FTP feature… BTW, very cool…

AnyWho, when I go to click on "Design" that's at the bottom left-hand corner of the window… I get this error message:

"This page has controls that require a master page reference, but none is specified.

Correct the problem in code view."

I'm still trying to learn the ropes with Visual Studio & BlogEngine, any help with this would be much appreciated.

I have already posted this at the blog engine/visual studio forums as well… Just trying to get an answer as quickly as possible or maybe even a special tip and/or trick…


Handles clause requires a WithEvents variable defined in the containing type

$
0
0

Hi all

I have 100 aspx pages. Only 1 of them have problemes. I use VS 2010 and doesn't recognize my handles sentences either the controls. I can't figure it out why.

In spanish the error is la cláusula handles requiere una variable withevents definida en el tipo contenedor

I have in markup

<%@PageLanguage="VB"MasterPageFile="maestro.master"CodeFile="publicarobras.aspx.vb"Inherits="codigo" %>

and in codebehind, publicarobras.aspx.vb

Partial Classcodigo

 Inherits System.Web.UI.Page

can u give me some ideas?

Thanks in advance

Calling powershell in VB

$
0
0

Dear Expert,

Need your support to working with VB, this is my first time i am trying to develop program in VB and calling powershell command,

following below microsoft link , but did not success however could any one guide me steps by steps for initailly...

http://msdn.microsoft.com/en-us/library/bb332449(v=exchg.80).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

Imports

System.Management.Automation

Imports

System.Management.Automation.Host

Imports

System.Management.Automation.Runspaces

Imports

System.Collections.Generic

Imports

System.Collections.ObjectModel

Public

Class

Form1

Dim Out As

Object

PrivateProperty info As

Object

PrivateSub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)HandlesMyBase

.Load

Dim rsConfig As

RunspaceConfiguration

rsConfig =

RunspaceConfiguration

.Create()

Dim snapInException As

PSSnapInException

Diminfo = rsConfig.AddPSSnapIn(

"Microsoft.Exchange.Management.PowerShell.Admin"

, snapInException)

Dim myRunSpace As

Runspace

myRunSpace =

RunspaceFactory

.CreateRunspace(rsConfig)

myRunSpace.Open()

Dim pipeLine As

Pipeline

pipeLine = myRunSpace.CreatePipeline()

Dim myCommand AsNewCommand("Get-Command"

)

pipeLine.Commands.Add(myCommand)

Dim commandResults AsCollection(OfPSObject

)

commandResults = pipeLine.Invoke()

End

Sub

End

Class

Release Configuration

$
0
0

I'm using 2012 Professional and I've been trying to create a release configuration for my website, and also use the new web.config transforms. However, I'm not able to create a release configuration. Even when I go into configuration manager and create a new configuration, the only option I'm given is Debug.

Also, when I right-click the web.config file, as MSDN says, I don't have the option to add a new transform.

I've been looking around, but I can't find anyone else with a similar problem. How can I fix this?

It's getting very annoying as I have to keep changing my connection string, and other settings every time I want to try a debug build on the beta server, and then I have to change them again when I'm publishing to the live server. Sometimes I forget to make the change, and everything goes down.

Thanks.

Creating reports

$
0
0

What is the best/easiest/free-ist way to create a report to be printed from a web page?

VS2012 -- Web Site rebuilding every time I run it

$
0
0

I've just updated to Visual Studio 2012 and am having a new problem: every time I tell the website to debug, it rebuilds the entire site even though I made no changes to the code.  It takes 5 to 10 minutes to do the build and is very frustrating. VS2010 did not do this, allowing the site to just restart in debug mode without the recompile (very quickly) as long as I did not change any code.  Is there some new setting in VS2012 for this?

TIA,

Visual Studio Documentation missing "Web Development" topic

$
0
0

How come the MSDN library online has the topic "MSDN > Web Development" but the Visual Studio 2010 / 2012 documentation doesn't have this topic ?

 

Yes there is .NET Framework ... ASP.NET...  but why the disparity ?

Change owner of event google calendar

$
0
0

Hi,

Has any way to change owner of google calendar event.

I'm using GOAuthRequestFactory to call CalendarService by service.Requestfactory

I get entry by (eventid, email, requesfactory) after that i clear old author and add new author typeAtomperson again.

It update successfully, but when i get evententry again, the author do not change.

Any body tell me why? Is there another way to do it?

And any help will be appreciate.


Nuget Packages - Freezing on Install

$
0
0

Hi there,

I have an issue installing Nuget packages on my MVC3 projects in Visual Web Developer. If I use the GUI via Visual Studio, it hangs not long after I click install. I have to kill Visual Web Developer via Task Manager to get out of it.

Up untill yesterday, I could still install packages to my projects via the Package Manager Console but now that too hangs every time. Again, the only way out of it is to kill Visual Web Developer via the Task Manager.

I've repaired the VWD install twice to no avail.

I had MVC4 installed (but I'm not using it so I uninstalled that). - no luck.

My set up is:

Visual Web Developer 2010
MVC3
Visual Studio Service Pack 1

Like I say, it's all been working ok until recently. Can anyone help? I need to get this up and running asap.

Thanks,

B2B booking system(web services)!

$
0
0
  • can someone provide me the link to source code for the B2B booking system, where business has to consume to web serivce of supplier.

it would be greate if the project provide a step by step PDF guide to learn!help!

references for b2b website(web services)

$
0
0

  Hi,im currently handling a new projeect on B2B e-commerce website. This project requires us to make the suppliers website and we as the company can consume the web service.

The business Process Workflow:

1.The company admin raise the puchase order and send purchase order(PO)

2.Then, the supplier receive the PO and create delivery order(DO) and deliver customer order

3.Then, the company admin update stock.(bought on credit)

4.Then supplier create invoice and send invoice to us.

5.the company admin make payment

6.Then, the supplier receive payment and update invoice. So, i would like to request for any references, help,examples,samples that would assist my projeect. =p

RE: Re: Publishing puts files/folders in "bin" directory instead of "root"?

$
0
0

Hi All: I just ran into an issue where a website I'm publishing using webdeploy from VS2010 is putting certain folders/files in the bin diretory instead of the root of the website where they exist. It used to put them in the correct place...not sure what I changed to create this behavior?

The folder in question has PDFs in it...if I drag a PDF from Windows Explorer into Solution Explorer it copies it into the project, but the default "build action" for the PDF is "do not copy"...if I manually change it "copy if newer" it does upload the PDF when I publish.

my output log shows:

Copying all files to temporary location below for package/publish:
obj\Release\Package\PackageTmp.
Start Web Deploy Publish the Application/package to https://[website]:8172/msdeploy.axd?site=forms ...
Updating setAcl (forms).
Updating setAcl (forms).
Updating filePath (forms\bin\forms.dll).
Updating filePath (forms\bin\forms.pdb).
Updating filePath (forms\bin\forms.xml).
Adding child filePath (forms\bin\pdfTemplates\Kit.pdf).
Updating setAcl (forms).
Updating setAcl (forms).
Publish is successfully deployed.


the folder "pdfTemplates" is in the root of the project...but I see it now in the "bin" directory as well...what is causing it to be placed there?

visual studio 2012 start page displays old news.

$
0
0

Hey all.  I've been searching for info on this, with no luck.

I've installed VS 2012, and I've always appreciated the start page's "Latest News" section.  Unfortunately, the most recent news displayed is from September 16, 2010.  WTF...?

The RSS feed displayed is: http://go.microsoft.com/fwlink/?linkid=83428&clcid=409

The refresh button appears to function, but the data is the same.

Any help on getting the start page to display recent news would be oober-appreciated.

Prevent to retain textbox value on postback when enableviewstate=false

$
0
0

i have a registration form after submit the form i have cleared the textbox value and also enableviewstate=false.  but after postback previous 

value are retaining in textbox . please give me solution how to complete clear my textbox after postback.

problem with place of controls event handler!!!

$
0
0

hi all.one of my visual studio web pages has encountrated with an error! when i add a control like button and double click on it too write its code,instead of open in code behind it opens in markup as following:

<script runat="server">

         protected void Button3_Click(object sender, EventArgs e)
         {

         }
</script>

how can i fix it to open in code behind?


Visual Studio 2012 buggy

$
0
0

I've installed VS 2012 recently to use it for web development, and it feels like that I file bugs for it more than I use it for productive work. Who's let this dog out?

MSDN Library -> Web Development topic missing from local Visual Studio documentation

$
0
0

Why is it that the help library installed with visual studio 2010 / 2012 doesn't have the "Web Development" top level topic in the table of contents but it's visible on the MSDN web site http://msdn.microsoft.com/en-us/library/aa155073.aspx ?

Is this "by design" or is there a way to download it ? There's no "Web Development" topic in the Help Library Manager > Install content from online list. 

I understand that ASP.NET is covered in various other parts of the docs but it's better organized on the web site under that topic and I would prefer to have it locally.

Insert image in SQL db

$
0
0

Hi,

 

Can someone guide me through this issue? Here is code:

       

        protected void cmdSaveImage_Click(object sender, EventArgs e)
        {
            try
            {
                //Read Image Bytes into a byte array
                byte[] imageData = ReadFile("C:\\Users\\Public\\Pictures\\Sample Pictures\\Jellyfish.jpg");
                //Initialize SQL Server Connection
                SqlConnection conn = getConnection("Data Source=L4037\\SQLSERVEREXPRESS;Initial Catalog=DatingWS;Integrated Security=True");

                //Initialize SqlCommand object for insert.
                SqlCommand cmd = new SqlCommand("insert into [dbo].[tbImageUtilisateur] (userID,userPicture,isMainPicture) values(@userID, @userPicture,, @isMainPicture)",conn);

                cmd.CommandType = CommandType.Text;

                bool blIsProfilePicture = true;
                SqlParameter param = new SqlParameter();
                param = cmd.Parameters.Add(new SqlParameter("@userID", "1"));
                //param = cmd.Parameters.Add(new SqlParameter("@userPicture", (object)imageData));
                param = cmd.Parameters.Add(new SqlParameter("@userPicture", imageData));
                param = cmd.Parameters.Add(new SqlParameter("@isMainPicture", blIsProfilePicture));
                param.Direction = ParameterDirection.Input;

                //Open connection and execute insert query.
                cmd.ExecuteNonQuery();
                conn.Close();

            }
            catch (Exception ex)
            {
                Response.Write(ex.ToString());
            }

        }


Here is the error code:

System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near ','. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Dating._Default.cmdSaveImage_Click(Object sender, EventArgs e) in C:\Users\Maison\Documents\Visual Studio 2010\Projects\Dating\Dating\Default.aspx.cs:line 219 


 Thanks in advance for all the support.

 

 

migration to vs 2012 test project error

$
0
0

I tried to migrate  Framework 4.0 to 4.5. Everything works fine, but  i get this error on the test project.

Test Failed:" The current test instance has a TestContext that does not have a known result member.  This is not supported. Check that you are using the Visual Studio unit testing framework."

 

I tried to use  Microsoft.VisualStudio.QualityTools.UnitTestFramework from Framework  4.0 and 4.5, neither works.  Please, help.

 

Adding files to EnvDTE80.solution

$
0
0

I have used  EnvDTE80.Solution for creating the solution folder in the existing solution.

While adding the files to these solution folder by c# codeing, the files get opened automatically.

solutionFolder.ProjectItems.AddFromFile("filePath");

I dont want to open such files.. how to suppress that.

I need simply to add files to that folder.. how to do it..

Thanks in advance

Viewing all 3509 articles
Browse latest View live




Latest Images