在使用Oracle时,我唯一没有自动化工具的是可以创建INSERT INTO脚本的程序.
我并不急需它,所以我不打算花钱.我只是想知道是否有任何东西可用于生成INSERT INTO脚本给定现有数据库而不花费很多钱.
我在搜索Oracle时没有找到这样的功能.
它存在于PL/SQL Developer中,但是BLOB字段存在错误.
我在我的解决方案中使用csproj中的Windows应用程序,并且我想使用命令行生成发布(bat,cmd).
我的剧本是(我\r\n为了更好的阅读):
SET MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe"
SET CARWIN="..\..\Security.CarWin.csproj"
rem msbuild para publish
%MSBUILD% /target:rebuild;publish %CARWIN%
/p:ApplicationVersion="1.0.0.0"
/p:Configuration=release
/p:PublishUrl="C:\ClickOnce\CarWin.WebInstall\Publicacion\"
/p:InstallUrl="http://desserver/carwinclickonce/Publicacion/"
/p:PublishDir="C:\ClickOnce\CarWin.WebInstall\Publicacion\"
Run Code Online (Sandbox Code Playgroud)
注意:我也会尝试使用 /target:publish
但在路径PublishDir或PublishUrl(C:\ ClickOnce\CarWin.WebInstall\Publicacion)中不生成任何文件.
我在这个网站和谷歌看过很多帖子,但我找不到任何解决方案.
我正在使用Filestream读取大文件(> 500 MB),我得到了OutOfMemoryException.
任何解决方案.
我的代码是:
using (var fs3 = new FileStream(filePath2, FileMode.Open, FileAccess.Read))
{
byte[] b2 = ReadFully(fs3, 1024);
}
public static byte[] ReadFully(Stream stream, int initialLength)
{
// If we've been passed an unhelpful initial length, just
// use 32K.
if (initialLength < 1)
{
initialLength = 32768;
}
byte[] buffer = new byte[initialLength];
int read = 0;
int chunk;
while ((chunk = stream.Read(buffer, read, buffer.Length - read)) > 0)
{
read += chunk;
// If we've reached the …Run Code Online (Sandbox Code Playgroud) 我正在使用WCF在我的服务器上运行一个简单的服务; 该服务托管在WebDev.WebServer.exe(本地)中.
当我在本地调用服务时,我得到以下异常:
未处理的异常:System.ServiceModel.Security.SecurityNegotiationException:无法打开安全通道,因为与远程端点的安全协商失败.这可能是由于在用于创建通道的EndpointAddress中缺少或错误指定了EndpointIdentity.请验证EndpointAddress指定或暗示的EndpointIdentity是否正确标识远程端点.---> System.ServiceModel.FaultException:由于ContractFilter不匹配,无法在接收方处理带有Action" http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue " 的消息EndpointDispatcher.这可能是由于合同不匹配(发送方与接收方之间的操作不匹配)或发送方与接收方之间的绑定/安全性不匹配.检查发送方和接收方是否具有相同的合同和相同的绑定(包括安全要求,例如消息,传输,无).
这是来自客户端和服务器的两个app.config文件.我使用svcutil-Tool从客户端创建了app.config,所以它应该是正确的:
<client>
<endpoint address="http://localhost:1634/UsuarioContexto.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IUsuarioContexto"
contract="CarWin.ServiceContracts.Interfaces.IUsuarioContexto" name="LOCAL_WSHttpBinding_IUsuarioContexto">
<identity><dns value="localhost" /></identity>
</endpoint>
</client>
<binding name="WSHttpBinding_IUsuarioContexto" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
Run Code Online (Sandbox Code Playgroud)
<services>
<service behaviorConfiguration="UsuarioContextoBehavior" name="UserContext.Host.UsuarioContexto">
<endpoint address="" binding="wsHttpBinding" bindingNamespace="http://CarWin" bindingConfiguration="wsHttpBinding_IUsuarioContexto"
contract="CarWin.ServiceContracts.Interfaces.IUsuarioContexto">
<identity>
<dns value="localhost" />
</identity> …Run Code Online (Sandbox Code Playgroud) 我有WinForms应用程序.net 3.5.我使用内部网中的clickonce和几台客户端机器部署它.我在Intranet Web服务器(http:// desbiz/CarwinClickOnce)中发布应用程序.
在开发人员环境(我的PC)中,我的应用程序使用GAC程序集,如Fk.Security.Common.dll v.1.0.0.0.
在选项卡发布 - >在WinForms属性应用程序csproj中的应用程序文件,我为Fk.Security.Common.dll引用设置值Include.
现在,
某些客户端计算机在GAC中具有Fk.Security.Common.dll v.1.0.0.0参考
其他客户端在GAC中没有Fk.Security.Common.dll v.1.0.0.0参考
如果客户端使用ClickOnce安装winform应用程序,则会出现以下问题:
1.)如果Fk.Security.Common.dll v.1.0.0.0引用在GAC中,则ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0引用不适用.
问题:可能在Fk.Security.Common.dll v.1.0.0.0中编译代码包含在ClickOnce中的代码比Fk.Security.Common.dll v.1.0.0.0中的代码更新更多参考在GAC中
解决方案:在GAC中卸载Fk.Security.Common.dll v.1.0.0.0参考,并在GAC中安装ClickOnce Publish中包含的Fk.Security.Common.dll v.1.0.0.0参考...
(如何使用ClickoNce在GAC中卸载/安装程序集????)
2.)如果Fk.Security.Common.dll引用NOT在GAC中,则ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0引用适用.没问题.
注意:客户端计算机中的用户具有管理员权限.
有关此问题的任何解决方案
提前致谢.
我使用VS 2008专业版,并使用单元测试.
有时,我得到错误:错误:"调用的目标抛出了异常."
http://peitor.blogspot.com/2009/10/sometimes-it-works-sometimes-not.html
我做了什么,没有帮助:
以安全模式启动Visual Studio(参数/ SafeMode)启动Visual Studio并重置用户数据(参数/ resetuserdata)我这样做"devenv/safemode","Open solution","Build","Clean","Rebuild" ,"交叉手指","运行所有测试"......
没有解决方案......:'(这是噩梦......
任何解决方案,请????